[PATCH v2 01/15] powerpc/boot: fix do_div for 64bit wrapper

2014-04-24 Thread Cédric Le Goater
When the boot wrapper is compiled in 64bit, there is no need to use __div64_32. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/stdio.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/boot/stdio.c b/arch/powerpc/boot/stdio.c index 5b57800bbc67

[PATCH v2 00/15] powerpc/boot: 64bit little endian wrapper (rebased on v3.15-rc2)

2014-04-24 Thread Cédric Le Goater
Le Goater (15): powerpc/boot: fix do_div for 64bit wrapper powerpc/boot: use a common prom_args struct in oflib powerpc/boot: use prom_arg_t in oflib powerpc/boot: add byteswapping routines in oflib powerpc/boot: add PROM_ERROR define in oflib powerpc/boot: rework of_claim() to make it

[PATCH v2 07/15] powerpc/boot: define typedef ihandle as u32

2014-04-14 Thread Cédric Le Goater
This makes ihandle 64bit friendly. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|2 +- arch/powerpc/boot/oflib.c | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/of.h b/arch/powerpc/boot/of.h index 504a0a31b685

[PATCH v2 15/15] powerpc/boot: add support for 64bit little endian wrapper

2014-04-14 Thread Cédric Le Goater
Le Goater --- Changes since v1: - merge last 3 patches to preserve bisectability arch/powerpc/boot/Makefile | 16 +--- arch/powerpc/boot/crt0.S |1 + arch/powerpc/boot/ppc_asm.h| 12 arch/powerpc/boot/pseries-head.S

[PATCH v2 14/15] powerpc/boot: add a global entry point for pseries

2014-04-14 Thread Cédric Le Goater
When entering the boot wrapper in little endian, we will need to fix the endian order using a fixup trampoline like in the kernel. This patch overrides the _zimage_start entry point for this purpose. Signed-off-by: Cédric Le Goater --- Changes since v1: - pseries is not the only platform

[PATCH v2 12/15] powerpc/boot: define a routine to enter prom

2014-04-14 Thread Cédric Le Goater
Little endian order. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/crt0.S | 71 + arch/powerpc/boot/oflib.c |6 2 files changed, 77 insertions(+) diff --git a/arch/powerpc/boot/crt0.S b/arch/powerpc/boot/crt0.S index 0f7428a37efb..dbd99

[PATCH v2 11/15] powerpc/boot: add little endian support to elf utils

2014-04-14 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/elf_util.c |4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/boot/elf_util.c b/arch/powerpc/boot/elf_util.c index 1567a0c0f05c..316552dea4d8 100644 --- a/arch/powerpc/boot/elf_util.c +++ b/arch/powerpc/boot/elf_util.c

[PATCH v2 13/15] powerpc/boot: modify entry point for 64bit

2014-04-14 Thread Cédric Le Goater
This patch adds support a 64bit wrapper entry point. As in 32bit, the entry point does its own relocation and can be loaded at any address by the firmware. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/crt0.S | 108 -- 1 file changed, 104

[PATCH v2 10/15] powerpc/boot: add 64bit and little endian support to addnote

2014-04-14 Thread Cédric Le Goater
It could certainly be improved using Elf macros and byteswapping routines, but the initial version of the code is organised to be a single file program with limited dependencies. yaboot is the same. Please scream if you want a total rewrite. Signed-off-by: Cédric Le Goater --- Changes since

[PATCH v2 06/15] powerpc/boot: rework of_claim() to make it 64bit friendly

2014-04-14 Thread Cédric Le Goater
This patch fixes 64bit compile warnings and updates the wrapper code to converge the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- Changes since v1: - use PROM_ERROR to test return addr arch/powerpc/boot/of.c|4 ++-- arch/powerpc/boot/of.h|3 ++- arch/powerpc

[PATCH v2 09/15] powerpc/boot: define byteswapping routines for little endian

2014-04-14 Thread Cédric Le Goater
These are not the most efficient versions of swab but the wrapper does not do much byte swapping. On a big endian cpu, these routines are a no-op. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h |7 +++ arch/powerpc/boot/swab.h | 29 + 2 files

[PATCH v2 05/15] powerpc/boot: add PROM_ERROR define in oflib

2014-04-14 Thread Cédric Le Goater
This is mostly useful to make to the boot wrapper code closer with the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- Changes since v1: - moved PROM_ERROR definition in of.h. of_try_claim() will make use of it in the next patch. arch/powerpc/boot/of.h|2 ++ arch

[PATCH v2 08/15] powerpc/boot: fix compile warning in 64bit

2014-04-14 Thread Cédric Le Goater
as in the kernel, but this would break the device tree ops API. Let it be for the moment. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c index 95

[PATCH v2 04/15] powerpc/boot: add byteswapping routines in oflib

2014-04-14 Thread Cédric Le Goater
Values will need to be byte-swapped when calling prom (big endian) from a little endian boot wrapper. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|3 +++ arch/powerpc/boot/ofconsole.c |6 -- arch/powerpc/boot/oflib.c | 22 +++--- 3 files

[PATCH v2 03/15] powerpc/boot: use prom_arg_t in oflib

2014-04-14 Thread Cédric Le Goater
This patch updates the wrapper code to converge with the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c index

[PATCH v2 02/15] powerpc/boot: use a common prom_args struct in oflib

2014-04-14 Thread Cédric Le Goater
does not seem to be any good reason to have 12 in the wrapper, so the patch changes this value to args[10] in the prom_args struct. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|2 ++ arch/powerpc/boot/oflib.c | 29 +++-- 2 files changed, 17 insertions

[PATCH v2 00/15] powerpc/boot: 64bit little endian wrapper

2014-04-14 Thread Cédric Le Goater
Cheers, C. Changes since v1 : - Fixed Makefile for platforms generating a zImage.pseries - used PROM_ERROR (-1u) to test return addr when claiming memory - removed patch modifying the call to the kernel entry point - merged last 3 patches to preserve bisectability Cédric Le Goater

[PATCH v2 01/15] powerpc/boot: fix do_div for 64bit wrapper

2014-04-14 Thread Cédric Le Goater
When the boot wrapper is compiled in 64bit, there is no need to use __div64_32. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/stdio.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/boot/stdio.c b/arch/powerpc/boot/stdio.c index 5b57800bbc67

[PATCH] powerpc/boot: fix global entry point for pseries

2014-03-24 Thread Cédric Le Goater
Patch 15/18 "powerpc/boot: add a global entry point for pseries" introduced a pseries-head.S file to fix the endian order when entering the boot wrapper. This patch is a fix for some platforms which also generate the zImage.pseries boot wrapper. Signed-off-by: Cédric Le Goater --- Ben

[PATCH 18/18] powerpc/boot: add PPC64_BOOT_WRAPPER config option

2014-03-20 Thread Cédric Le Goater
The previous patch broke compatibility for 64bit big endian kernel. This patch adds a config option to compile the boot wrapper in 64bit only when CPU_LITTLE_ENDIAN is selected. It restores 32bit compilation and linking for the big endian kernel. Signed-off-by: Cédric Le Goater --- arch

[PATCH 04/18] powerpc/boot: add byteswapping routines in oflib

2014-03-20 Thread Cédric Le Goater
Values will need to be byte-swapped when calling prom (big endian) from a little endian boot wrapper. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|3 +++ arch/powerpc/boot/ofconsole.c |6 -- arch/powerpc/boot/oflib.c | 22 +++--- 3 files

[PATCH 01/18] powerpc/boot: fix do_div for 64bit wrapper

2014-03-20 Thread Cédric Le Goater
When the boot wrapper is compiled in 64bit, there is no need to use __div64_32. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/stdio.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/boot/stdio.c b/arch/powerpc/boot/stdio.c index 5b57800bbc67

[PATCH 11/18] powerpc/boot: add little endian support to elf utils

2014-03-20 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/elf_util.c |4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/boot/elf_util.c b/arch/powerpc/boot/elf_util.c index 1567a0c0f05c..316552dea4d8 100644 --- a/arch/powerpc/boot/elf_util.c +++ b/arch/powerpc/boot/elf_util.c

[PATCH 09/18] powerpc/boot: define byteswapping routines for little endian

2014-03-20 Thread Cédric Le Goater
These are not the most efficient versions of swab but the wrapper does not do much byte swapping. On a big endian cpu, these routines are a no-op. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h |7 +++ arch/powerpc/boot/swab.h | 29 + 2 files

[PATCH 07/18] powerpc/boot: define typedef ihandle as u32

2014-03-20 Thread Cédric Le Goater
This makes ihandle 64bit friendly. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|2 +- arch/powerpc/boot/oflib.c | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/of.h b/arch/powerpc/boot/of.h index 3f35cf0ec432

[PATCH 15/18] powerpc/boot: add a global entry point for pseries

2014-03-20 Thread Cédric Le Goater
When entering the boot wrapper in little endian, we will need to fix the endian order using a fixup trampoline like in the kernel. This patch overrides the _zimage_start entry point for this purpose. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/Makefile |2 ++ arch/powerpc

[PATCH 14/18] powerpc/boot: modify how we enter kernel on 64bit

2014-03-20 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/main.c |4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c index a28f02165e97..46a7464e13c2 100644 --- a/arch/powerpc/boot/main.c +++ b/arch/powerpc/boot/main.c @@ -205,7 +205,11

[PATCH 16/18] powerpc/boot: add support for 64bit big endian wrapper

2014-03-20 Thread Cédric Le Goater
independent executable (-pie) which makes it loadable at any address by the firmware. This is subject to comment as I am not sure what are the requirement for the different boot loaders. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/Makefile |9 - arch/powerpc/boot/wrapper

[PATCH 12/18] powerpc/boot: define a routine to enter prom

2014-03-20 Thread Cédric Le Goater
Little endian order. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/crt0.S | 71 + arch/powerpc/boot/oflib.c |6 2 files changed, 77 insertions(+) diff --git a/arch/powerpc/boot/crt0.S b/arch/powerpc/boot/crt0.S index 0f7428a37efb..dbd99

[PATCH 06/18] powerpc/boot: rework of_claim() to make it 64bit friendly

2014-03-20 Thread Cédric Le Goater
This patch fixes 64bit compile warnings and updates the wrapper code to converge the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.c|4 ++-- arch/powerpc/boot/of.h|3 ++- arch/powerpc/boot/oflib.c | 15 --- 3 files changed, 12

[PATCH 03/18] powerpc/boot: use prom_arg_t in oflib

2014-03-20 Thread Cédric Le Goater
This patch updates the wrapper code to converge with the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c index

[PATCH 10/18] powerpc/boot: add 64bit and little endian support to addnote

2014-03-20 Thread Cédric Le Goater
It could certainly be improved using Elf macros and byteswapping routines, but the initial version of the code is organised to be a single file program with limited dependencies. yaboot is the same. Please scream if you want a total rewrite. Signed-off-by: Cédric Le Goater --- From the comment

[PATCH 02/18] powerpc/boot: use a common prom_args struct in oflib

2014-03-20 Thread Cédric Le Goater
does not seem to be any good reason to have 12 in the wrapper, so the patch changes this value to args[10] in the prom_args struct. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|2 ++ arch/powerpc/boot/oflib.c | 29 +++-- 2 files changed, 17 insertions

[PATCH 13/18] powerpc/boot: modify entry point for 64bit

2014-03-20 Thread Cédric Le Goater
This patch adds support a 64bit wrapper entry point. As in 32bit, the entry point does its own relocation and can be loaded at any address by the firmware. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/crt0.S | 108 -- 1 file changed, 104

[PATCH 17/18] powerpc/boot: add support for 64bit little endian wrapper

2014-03-20 Thread Cédric Le Goater
Compilation is changed for little endian and entry points between the wrapper and the kernel are modified to fix endian order with the FIXUP_ENDIAN trampoline. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/Makefile |7 +-- arch/powerpc/boot/crt0.S |1 + arch

[PATCH 00/18] powerpc/boot: 64bit little endian wrapper

2014-03-20 Thread Cédric Le Goater
is available. Best, C. Cédric Le Goater (18): powerpc/boot: fix do_div for 64bit wrapper powerpc/boot: use a common prom_args struct in oflib powerpc/boot: use prom_arg_t in oflib powerpc/boot: add byteswapping routines in oflib powerpc/boot: add PROM_ERROR define in oflib powerpc

[PATCH 08/18] powerpc/boot: fix compile warning in 64bit

2014-03-20 Thread Cédric Le Goater
as in the kernel, but this would break the device tree ops API. Let it be for the moment. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c index 5a

[PATCH 05/18] powerpc/boot: add PROM_ERROR define in oflib

2014-03-20 Thread Cédric Le Goater
This is mostly useful to make to the boot wrapper code closer with the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c

[RFC PATCH 09/18] powerpc/boot: define byteswapping routines for little endian

2014-02-07 Thread Cédric Le Goater
These are not the most efficient versions of swab but the wrapper does not do much byte swapping. On a big endian cpu, these routines are a no-op. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h |7 +++ arch/powerpc/boot/swab.h | 29 + 2 files

[RFC PATCH 18/18] powerpc/boot: add PPC64_BOOT_WRAPPER config option

2014-02-07 Thread Cédric Le Goater
The previous patch broke compatibility for 64bit big endian kernels. This patch adds a config option to compile the boot wrapper in 64bit only when CPU_LITTLE_ENDIAN is selected. It restores 32bit compilation and linking for the big endian kernel. Signed-off-by: Cédric Le Goater --- arch

[RFC PATCH 17/18] powerpc/boot: add support for 64bit little endian wrapper

2014-02-07 Thread Cédric Le Goater
Compilation is changed for little endian and entry points between the wrapper and the kernel are modified to fix endian order with the famous FIXUP_ENDIAN trampoline. This is PowerPC magic. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/Makefile |7 +-- arch/powerpc/boot

[RFC PATCH 11/18] powerpc/boot: add little endian support to elf utils

2014-02-07 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/elf_util.c |4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/boot/elf_util.c b/arch/powerpc/boot/elf_util.c index 1567a0c0f05c..316552dea4d8 100644 --- a/arch/powerpc/boot/elf_util.c +++ b/arch/powerpc/boot/elf_util.c

[RFC PATCH 16/18] powerpc/boot: add support for 64bit big endian wrapper

2014-02-07 Thread Cédric Le Goater
independent executable (-pie) which makes it loadable at any address by the firmware. This is subject to comment as I am not sure what are the requirement for the different boot loaders. Signed-off-by: Cédric Le Goater --- There is probably a better way to compile in 64bit than what this patch is

[RFC PATCH 15/18] powerpc/boot: add a global entry point for pseries

2014-02-07 Thread Cédric Le Goater
When entering the boot wrapper in little endian, we will need to fix the endian order using a fixup trampoline like in the kernel. This patch overrides the _zimage_start entry point for this purpose. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/Makefile |2 ++ arch/powerpc

[RFC PATCH 14/18] powerpc/boot: modify how we enter kernel on 64bit

2014-02-07 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/main.c |4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c index a28f02165e97..46a7464e13c2 100644 --- a/arch/powerpc/boot/main.c +++ b/arch/powerpc/boot/main.c @@ -205,7 +205,11

[RFC PATCH 13/18] powerpc/boot: modify entry point for 64bit

2014-02-07 Thread Cédric Le Goater
This patch adds support a 64bit wrapper entry point. As in 32bit, the entry point does its own relocation and can be loaded at any address by the firmware. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/crt0.S | 108 -- 1 file changed, 104

[RFC PATCH 02/18] powerpc/boot: use a common prom_args struct in oflib

2014-02-07 Thread Cédric Le Goater
does not seem to be any good reason to have 12 in the wrapper, so the patch changes this value to args[10] in the prom_args struct. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|2 ++ arch/powerpc/boot/oflib.c | 29 +++-- 2 files changed, 17 insertions

[RFC PATCH 12/18] powerpc/boot: define a routine to enter prom

2014-02-07 Thread Cédric Le Goater
Little endian order. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/crt0.S | 71 + arch/powerpc/boot/oflib.c |6 2 files changed, 77 insertions(+) diff --git a/arch/powerpc/boot/crt0.S b/arch/powerpc/boot/crt0.S index 0f7428a37efb..dbd99

[RFC PATCH 05/18] powerpc/boot: add PROM_ERROR define in oflib

2014-02-07 Thread Cédric Le Goater
This is mostly useful to make to the boot wrapper code closer with the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c

[RFC PATCH 04/18] powerpc/boot: add byteswapping routines in oflib

2014-02-07 Thread Cédric Le Goater
Values will need to be byte-swapped when calling prom (big endian) from a little endian boot wrapper. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|3 +++ arch/powerpc/boot/ofconsole.c |6 -- arch/powerpc/boot/oflib.c | 22 +++--- 3 files

[RFC PATCH 03/18] powerpc/boot: use prom_arg_t in oflib

2014-02-07 Thread Cédric Le Goater
This patch updates the wrapper code to converge with the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c index

[RFC PATCH 08/18] powerpc/boot: fix compile warning in 64bit

2014-02-07 Thread Cédric Le Goater
as in the kernel, but this would break the device tree ops API. Let it be for the moment. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/oflib.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c index 5a

[RFC PATCH 10/18] powerpc/boot: add 64bit and little endian support to addnote

2014-02-07 Thread Cédric Le Goater
It could certainly be improved using Elf macros and byteswapping routines, but the initial version of the code is organised to be a single file program with limited dependencies. yaboot is the same. Please scream if you want a total rewrite. Signed-off-by: Cédric Le Goater --- From the comment

[RFC PATCH 06/18] powerpc/boot: rework of_claim() to make it 64bit friendly

2014-02-07 Thread Cédric Le Goater
This patch fixes 64bit compile warnings and updates the wrapper code to converge the kernel code in prom_init. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.c|4 ++-- arch/powerpc/boot/of.h|3 ++- arch/powerpc/boot/oflib.c | 15 --- 3 files changed, 12

[RFC PATCH 07/18] powerpc/boot: define typedef ihandle as u32

2014-02-07 Thread Cédric Le Goater
This makes ihandle 64bit friendly. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/of.h|2 +- arch/powerpc/boot/oflib.c | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/of.h b/arch/powerpc/boot/of.h index 3f35cf0ec432

[RFC PATCH 00/18] powerpc/boot: 64bit little endian wrapper for pseries

2014-02-07 Thread Cédric Le Goater
compiled as a position independent executable. This might not be an issue though. This patchset is based on a 3.13 and was tested on qemu with the -kernel option on little and big endian guests. It was also tested with a custom yaboot supporting Little Endian kernels. Yours, C. Cédric Le

[RFC PATCH 01/18] powerpc/boot: fix do_div for 64bit wrapper

2014-02-07 Thread Cédric Le Goater
When the boot wrapper is compiled in 64bit, there is no need to use __div64_32. Signed-off-by: Cédric Le Goater --- arch/powerpc/boot/stdio.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/boot/stdio.c b/arch/powerpc/boot/stdio.c index 5b57800bbc67

[PATCH] of/irq: Fix device_node refcount in of_irq_parse_raw()

2013-12-17 Thread Cédric Le Goater
par' and 'newpar' is maintained in the skiplevel: goto label. This patch also removes the usage of the device_node variable 'old' which seems useless after the latest changes. Signed-off-by: Cédric Le Goater --- This patch was tested on powerpc, pseries and powernv. This i

[PATCH v3 1/2] offb: little endian fixes

2013-12-04 Thread Cédric Le Goater
The "screen" properties : depth, width, height, linebytes need to be converted to the host endian order when read from the device tree. The offb_init_palette_hacks() routine also made assumption on the host endian order. Signed-off-by: Cédric Le Goater --- Changes in v3:

[PATCH v3 2/2] offb: add palette hack for little endian

2013-12-04 Thread Cédric Le Goater
The pseudo palette color entries need to be ajusted for little endian. This patch byteswaps the values in the pseudo palette depending on the host endian order and the screen depth. Signed-off-by: Cédric Le Goater --- Tested on powerpc, little endian and big endian, for 8, 15, 16 and 32 bpp

[PATCH] DMA-API: ppc: vio: use dma_coerce_mask_and_coherent()

2013-11-18 Thread Cédric Le Goater
initial dev->dma_mask for the device. Signed-off-by: Cédric Le Goater Cc: Russell King Cc: Paul Mackerras --- arch/powerpc/kernel/vio.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index e7d0c88f..76a6482 100644 --

[PATCH v2] offb: make the screen properties endian safe

2013-10-31 Thread Cédric Le Goater
The "screen" properties : depth, width, height, linebytes need to be converted to the host endian order when read from the device tree. Signed-off-by: Cédric Le Goater --- Changes in v2: - replaced be32_to_cpu() by be32_to_cpup() - fixed setcolreg ops drivers/video/off

[PATCH] offb: make the screen properties endian safe

2013-10-30 Thread Cédric Le Goater
The "screen" properties : depth, width, height, linebytes need to be converted to the host endian order when read from the device tree. Signed-off-by: Cédric Le Goater --- drivers/video/offb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/vi

[PATCH 2/3] powerpc/nvram: fix endian issue when reading the NVRAM size

2013-10-30 Thread Cédric Le Goater
From: Cedric Le Goater Signed-off-by: Cedric Le Goater --- arch/powerpc/platforms/chrp/nvram.c|4 ++-- arch/powerpc/platforms/pseries/nvram.c |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/chrp/nvram.c b/arch/powerpc/platforms/chrp/nv

[PATCH 3/3] powerpc/nvram: fix endian issue when using the partition length

2013-10-30 Thread Cédric Le Goater
From: Cedric Le Goater When reading partitions, the length has to be translated from big endian to the endian order of the host. Similarly, when writing partitions, the length needs to be in big endian order. The userspace tool 'nvram' needs a similar fix as it is reading and writing partition

[PATCH 0/3] nvram fixes

2013-10-30 Thread Cédric Le Goater
Hi, Here are a few fixes for nvram, mostly endian issues. The patches are based on 3.12-rc7. Cedric Le Goater (3): powerpc/nvram: scan partitions only once powerpc/nvram: fix endian issue when reading the NVRAM size powerpc/nvram: fix endian issue when reading the partition length arch/p

[PATCH 1/3] powerpc/nvram: scan partitions only once

2013-10-30 Thread Cédric Le Goater
From: Cedric Le Goater nvram_scan_partitions() is called twice when initializing the "lnx,oops-log" partition and the "ibm,rtas-log" partition. This fills the partition list with duplicate entries. This patch moves the partition scan in the init routine pseries_nvram_init_log_partitions() which i

[PATCH] powerpc/kernel: fix endian issue in rtas_pci

2013-09-23 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- arch/powerpc/kernel/rtas_pci.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c index 6e7b7cd..7d4c717 100644 --- a/arch/powerpc/kernel/rtas_pci.c +++ b/arch/powerpc

<    4   5   6   7   8   9