Re: [PATCH 3/5] x86/of: Add building device tree blob(s) into image.

2010-11-16 Thread Dirk Brandewie
On 11/16/2010 10:02 PM, Grant Likely wrote: On Tue, Nov 16, 2010 at 02:41:38PM -0800, dirk.brande...@gmail.com wrote: From: Dirk Brandewie This patch adds linking device tree blobs into vmlinux. DTB's are added by adding the blob object name to list of objects to be linked into the image. e.g:

Re: [PATCH 4/5] of/powerpc: Move build to use generic dts->dtb rule

2010-11-16 Thread Dirk Brandewie
On 11/16/2010 10:06 PM, Grant Likely wrote: > On Tue, Nov 16, 2010 at 02:41:39PM -0800, dirk.brande...@gmail.com wrote: >> From: Dirk Brandewie >> >> This patch changes arch/powerpc/boot/Makefile to use the generic >> rule build the device tree blobs in scripts/Makefile.lib >> >> Signed-off-by: Dir

Re: [PATCH 1/5] scripts: dtc: Merge in changes from the dtc repository

2010-11-16 Thread John Bonesio
Arg! I had this working. I'll look into it. - John On 11/16/2010 10:11 PM, Grant Likely wrote: > On Tue, Nov 16, 2010 at 1:49 PM, John Bonesio wrote: >> Pull in recent changes from the main dtc repository. These changes primarily >> allow multiple device trees to be declared which are merged by

Re: [PATCH 1/5] of: Add support for linking device tree blobs into vmlinux

2010-11-16 Thread Dirk Brandewie
On 11/16/2010 06:58 PM, Grant Likely wrote: On Tue, Nov 16, 2010 at 7:21 PM, Dirk Brandewie wrote: On 11/16/2010 04:39 PM, David Daney wrote: Thanks for doing this. However I have a few comments... On 11/16/2010 02:41 PM, dirk.brande...@gmail.com wrote: From: Dirk Brandewie /* .data sec

Re: [PATCH 1/5] scripts: dtc: Merge in changes from the dtc repository

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 1:49 PM, John Bonesio wrote: > Pull in recent changes from the main dtc repository. These changes primarily > allow multiple device trees to be declared which are merged by dtc. This > feature allows us to include a basic dts file and then provide more > information > for

Re: [PATCH 4/5] of/powerpc: Move build to use generic dts->dtb rule

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 02:41:39PM -0800, dirk.brande...@gmail.com wrote: > From: Dirk Brandewie > > This patch changes arch/powerpc/boot/Makefile to use the generic > rule build the device tree blobs in scripts/Makefile.lib > > Signed-off-by: Dirk Brandewie > --- > arch/powerpc/boot/Makefile

Re: [PATCH 3/5] x86/of: Add building device tree blob(s) into image.

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 02:41:38PM -0800, dirk.brande...@gmail.com wrote: > From: Dirk Brandewie > > This patch adds linking device tree blobs into vmlinux. DTB's are > added by adding the blob object name to list of objects to be linked > into the image. > e.g: > obj-$(CONFIG_TEST_DTB) += test

Re: [PATCH 1/5] scripts: dtc: Merge in changes from the dtc repository

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 10:56 PM, Kyle Moffett wrote: > On Tue, Nov 16, 2010 at 15:49, John Bonesio wrote: >> Pull in recent changes from the main dtc repository. These changes primarily >> allow multiple device trees to be declared which are merged by dtc. This >> feature allows us to include a

Re: [PATCH 1/5] scripts: dtc: Merge in changes from the dtc repository

2010-11-16 Thread Kyle Moffett
On Tue, Nov 16, 2010 at 15:49, John Bonesio wrote: > Pull in recent changes from the main dtc repository. These changes primarily > allow multiple device trees to be declared which are merged by dtc. This > feature allows us to include a basic dts file and then provide more > information > for th

Re: [PATCH 4/5] powerpc/5200: dts: Remove incorrect combatible strings

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 12:50:19PM -0800, John Bonesio wrote: > This patch removes some incorrect compatible strings on the local plus bus > node > in dts files for MPC5200b based systems. > > Signed-off-by: John Bonesio > --- > > arch/powerpc/boot/dts/lite5200b.dts |2 +- > arch/powerpc/b

Re: [PATCH 3/5] powerpc/5200: dts: remove unused properties

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 12:50:10PM -0800, John Bonesio wrote: > This patch remove unused properties in dts files in preparation of refactoring > the dts files for MPC5200b based boards. > > Signed-off-by: John Bonesio > --- > > arch/powerpc/boot/dts/cm5200.dts|2 -- > arch/powerpc/boot/

Re: [PATCH 2/5] powerpc/5200: dts: rename nodes to prepare for refactoring dts files

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 12:50:02PM -0800, John Bonesio wrote: > This patch renames nodes in dts fils for MPC5200b files to prepare for > refactoring of these files later. When refactoring it will be easier to verify > the results if the node names aren't changing at the same time. > > Signed-off-b

[PATCH] Fix SPE float to integer conversion failure

2010-11-16 Thread Shan Hai
Conversion from float to integer should based on both the instruction encoding and the sign of the operand. Signed-off-by: Shan Hai --- arch/powerpc/math-emu/math_efp.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/math-emu/math_efp.c b/arch/pow

math_efp.c: Fixed SPE data type conversion failure

2010-11-16 Thread Shan Hai
The following test case failed on Powerpc sbc8548 with CONFIG_SPE static float fm; static signed int si_min = (-2147483647 - 1); static unsigned int ui; int main() { fm = (float) si_min; ; ui = (unsigned int)fm; printf("ui=%d, should be %d\n", ui, si_min); return

Re: [PATCH] Fix float to unsigned conversion failure with SPE enabled

2010-11-16 Thread haishan
Josh Boyer wrote: On Sat, Nov 13, 2010 at 11:11 PM, Hai Shan wrote: Fixed the failure on converting minus float to unsigned int with SPE enabled Signed-off-by: Hai Shan You should make sure to send PowerPC patches to linuxppc-dev. Thanks for your suggestion, I will send it to

Re: [PATCH 1/5] of: Add support for linking device tree blobs into vmlinux

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 7:21 PM, Dirk Brandewie wrote: > > On 11/16/2010 04:39 PM, David Daney wrote: >> >> Thanks for doing this. However I have a few comments... >> >> On 11/16/2010 02:41 PM, dirk.brande...@gmail.com wrote: >>> >>> From: Dirk Brandewie >>> >>> /* .data section */ >>> #define DAT

Re: [PATCH 1/5] of: Add support for linking device tree blobs into vmlinux

2010-11-16 Thread Dirk Brandewie
On 11/16/2010 04:39 PM, David Daney wrote: Thanks for doing this. However I have a few comments... On 11/16/2010 02:41 PM, dirk.brande...@gmail.com wrote: From: Dirk Brandewie /* .data section */ #define DATA_DATA \ *(.data) \ @@ -468,7 +482,8 @@ MCOUNT_REC() \ DEV_DISCARD(init.rodata) \ CPU_

Re: Can't boot benh/powerpc.git kernel

2010-11-16 Thread Michael Neuling
In message <1289958663.3028.175.ca...@localhost> you wrote: > On Tue, 2010-11-16 at 14:26 +1100, Michael Neuling wrote: > > In message <1289520464.4752.12.ca...@localhost> you wrote: > > > On Thu, 2010-11-11 at 09:06 +1100, Benjamin Herrenschmidt wrote: > > > > On Wed, 2010-11-10 at 11:54 -0800,

Re: Can't boot benh/powerpc.git kernel

2010-11-16 Thread Jim Keniston
On Tue, 2010-11-16 at 14:26 +1100, Michael Neuling wrote: > In message <1289520464.4752.12.ca...@localhost> you wrote: > > On Thu, 2010-11-11 at 09:06 +1100, Benjamin Herrenschmidt wrote: > > > On Wed, 2010-11-10 at 11:54 -0800, Jim Keniston wrote: > > > > I got Ben's linux/kernel/git/benh/powerpc.

Re: [PATCH 1/5] of: Add support for linking device tree blobs into vmlinux

2010-11-16 Thread David Daney
Thanks for doing this. However I have a few comments... On 11/16/2010 02:41 PM, dirk.brande...@gmail.com wrote: From: Dirk Brandewie This patch adds support for linking device tree blobs into vmlinux. Modifies asm-generic/vmlinux.lds.h to add linking .dtb.init.rodata sections into the .init.da

[PATCH] powerpc: Per process DSCR

2010-11-16 Thread Anton Blanchard
In order to add per process control of the DSCR, the following patch emulates read/write of the DSCR from userspace and saves and restores it on context switch. We add emulated stats to track how many times we do this. While writing this patch a few things were apparent: - How will this work with

Re: [PATCH 2/5] of/fdt: add kernel command line option for dtb_compat string

2010-11-16 Thread Grant Likely
On Tue, Nov 16, 2010 at 3:41 PM, wrote: > From: Dirk Brandewie > > Adds a kernel command line option "dtb_compat=" and functions > for architecture/platform specific code to retrieve the command line > string and locate the compatible DTB linked into the kernel > > of_flat_dt_get_dtb_compatible_

[PATCH 5/5] of/microblaze: Move build to use generic dts->dtb rule

2010-11-16 Thread dirk . brandewie
From: Dirk Brandewie This patch changes arch/microblaze/boot/Makefile to use the generic rule build the device tree blobs in scripts/Makefile.lib Signed-off-by: Dirk Brandewie --- arch/microblaze/boot/Makefile | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git

[PATCH 4/5] of/powerpc: Move build to use generic dts->dtb rule

2010-11-16 Thread dirk . brandewie
From: Dirk Brandewie This patch changes arch/powerpc/boot/Makefile to use the generic rule build the device tree blobs in scripts/Makefile.lib Signed-off-by: Dirk Brandewie --- arch/powerpc/boot/Makefile |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/arch/powerp

[PATCH 3/5] x86/of: Add building device tree blob(s) into image.

2010-11-16 Thread dirk . brandewie
From: Dirk Brandewie This patch adds linking device tree blobs into vmlinux. DTB's are added by adding the blob object name to list of objects to be linked into the image. e.g: obj-$(CONFIG_TEST_DTB) += test.dtb.o The set of DTB linked into the image is controlled the Kconfig file in arch/x86/

[PATCH 2/5] of/fdt: add kernel command line option for dtb_compat string

2010-11-16 Thread dirk . brandewie
From: Dirk Brandewie Adds a kernel command line option "dtb_compat=" and functions for architecture/platform specific code to retrieve the command line string and locate the compatible DTB linked into the kernel of_flat_dt_get_dtb_compatible_string() returns a pointer string passed from the comm

[PATCH 1/5] of: Add support for linking device tree blobs into vmlinux

2010-11-16 Thread dirk . brandewie
From: Dirk Brandewie This patch adds support for linking device tree blobs into vmlinux. Modifies asm-generic/vmlinux.lds.h to add linking .dtb.init.rodata sections into the .init.data section of the vmlinux image. Modifies scripts/Makefile.lib to add a kbuild command to compile DTS files to devi

[PATCH 0/5] Add the ability to link device blobs into vmlinux

2010-11-16 Thread dirk . brandewie
From: Dirk Brandewie This patch set adds the ability to link device tree blob(s) directly into the vmlinux image and specify the blob to be used via a kernel command line option. Patch 1 implements the changes to include/asm-generic/vmlinux.lds.h, add generic rules for building and linking the D

Re: [PATCH 2/2] powerpc: pcm030/032: add pagesize to dts

2010-11-16 Thread Anton Vorontsov
On Tue, Nov 16, 2010 at 10:45:37PM +0100, Wolfram Sang wrote: > > > Even worse, I seem to recall that I had once seen a manufacturer increasing > > the > > page-size from one charge to the next without changing the part-number, so I > > got this feeling "you can't map pagesize to manufacturer/typ

Re: [PATCH] kgdb, ppc: Corrected the address using of current->thread.evr register

2010-11-16 Thread Jason Wessel
On 11/16/2010 06:58 AM, Dongdong Deng wrote: > Passing the address of current->thread.evr register to memcpy function. > > It turns out that out of all of my test configs and targets I did not have any that defined both CONFIG_FSL_BOOKE and CONFIG_SPE else this would have been caught in testing

Re: [PATCH 2/2] powerpc: pcm030/032: add pagesize to dts

2010-11-16 Thread Wolfram Sang
> Even worse, I seem to recall that I had once seen a manufacturer increasing > the > page-size from one charge to the next without changing the part-number, so I > got this feeling "you can't map pagesize to manufacturer/type" which I still > have. Sadly, this was long ago, so I can't proof it r

[PATCH 4/5] powerpc/5200: dts: Remove incorrect combatible strings

2010-11-16 Thread John Bonesio
This patch removes some incorrect compatible strings on the local plus bus node in dts files for MPC5200b based systems. Signed-off-by: John Bonesio --- arch/powerpc/boot/dts/lite5200b.dts |2 +- arch/powerpc/boot/dts/mucmc52.dts |2 +- arch/powerpc/boot/dts/pcm032.dts|2 +- a

[PATCH 3/5] powerpc/5200: dts: remove unused properties

2010-11-16 Thread John Bonesio
This patch remove unused properties in dts files in preparation of refactoring the dts files for MPC5200b based boards. Signed-off-by: John Bonesio --- arch/powerpc/boot/dts/cm5200.dts|2 -- arch/powerpc/boot/dts/lite5200b.dts |3 --- arch/powerpc/boot/dts/media5200.dts |2 -- a

[PATCH 2/5] powerpc/5200: dts: rename nodes to prepare for refactoring dts files

2010-11-16 Thread John Bonesio
This patch renames nodes in dts fils for MPC5200b files to prepare for refactoring of these files later. When refactoring it will be easier to verify the results if the node names aren't changing at the same time. Signed-off-by: John Bonesio --- arch/powerpc/boot/dts/cm5200.dts|8 --

[PATCH 0/5] Series short description

2010-11-16 Thread John Bonesio
The following series implements a set of changes to refactor dts (device tree source) files for systems using the mpc5200b SoC. The dtc changes allow a base dts to be defined in a common dts file included with '/include/ '. This base dts can then be updated and modified by merging in a second devi

Re: [PATCH] Move ams driver to macintosh

2010-11-16 Thread Benjamin Herrenschmidt
On Tue, 2010-11-16 at 08:59 +0100, Jean Delvare wrote: > > Going through backlog... Do you want me to carry this in powerpc or > > you'll deal with it directly ? > > > > > Signed-off-by: Jean Delvare > > > Cc: Guenter Roeck > > > Cc: Stelian Pop > > > Cc: Michael Hanselmann > > > > Acked-by:

[PATCH] powerpc: Update a comment

2010-11-16 Thread Alessio Igor Bogani
The commit 5e3d20a remove bkl from startup code so setup_arch() it isn't called with bkl held anymore. Update the comment on top of that function. Fix also a typo. This work was supported by a hardware donation from the CE Linux Forum. Signed-off-by: Alessio Igor Bogani --- arch/powerpc/kernel/

RE: Corrected data type mismatch

2010-11-16 Thread David Laight
> > OOPS! It is wrong here, The right one should be as following: > > > > - memcpy(mem, current->thread.evr[regno-32], > > + memcpy(mem, (void*)¤t->thread.evr[regno-32], dbg_reg_def[regno].size); The (void *) cast should be unnecessary David _

RE: [PATCH 4/4][v2] rapidio, powerpc/85xx: Error interrupt handler for sRIO.

2010-11-16 Thread Bounine, Alexandre
> From: Shaohui Xie [mailto:b21...@freescale.com] > > The sRIO controller reports errors to the core with one signal, it uses > register EPWISR to provides the core quick access to where the error occurred. > The EPWISR indicates that there are 4 interrupts sources, port1, port2, message > unit an

RE: [PATCH][v3] fsl_rio: move machine_check handler into machine_check_e500 & machine_check_e500mc

2010-11-16 Thread Bounine, Alexandre
> From: Xie Shaohui-B21989 [mailto:b21...@freescale.com] > > Ok, I'll remove the ret, do you have any comment for the error handler > patch? > http://patchwork.ozlabs.org/patch/69962/ > > I will reply to the original patch message. Alex. ___ Linuxppc-

Re: Corrected data type mismatch

2010-11-16 Thread bhs
On Nov 16, 2010, at 8:07 PM, DDD wrote: > Milton Miller wrote: >> [added cc's based on from ff10b88b5a05c8f1646dd15fb9f6093c1384ff6d, >> which added the patched line ] >> https://patchwork.kernel.org/patch/323022/ >> On Sun, 14 Nov 2010 around 02:06:59 -, Hai Shan wrote: >>> Corrected data ty

Re: [Kgdb-bugreport] [PATCH] kgdb, ppc: Corrected the address using of current->thread.evr register

2010-11-16 Thread Sergei Shtylyov
Hello. On 16-11-2010 15:58, Dongdong Deng wrote: Passing the address of current->thread.evr register to memcpy function. Signed-off-by: Dongdong Deng CC: Hai Shan CC: Milton Miller CC: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/kgdb.c |4 ++-- 1 files changed, 2 insertions(

[PATCH] kgdb, ppc: Corrected the address using of current->thread.evr register

2010-11-16 Thread Dongdong Deng
Passing the address of current->thread.evr register to memcpy function. Signed-off-by: Dongdong Deng CC: Hai Shan CC: Milton Miller CC: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/kgdb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/k

Re: Corrected data type mismatch

2010-11-16 Thread DDD
Milton Miller wrote: [added cc's based on from ff10b88b5a05c8f1646dd15fb9f6093c1384ff6d, which added the patched line ] https://patchwork.kernel.org/patch/323022/ On Sun, 14 Nov 2010 around 02:06:59 -, Hai Shan wrote: Corrected data type mismatch This merely hides the type mismatch by fo

Re: [PATCH] powerpc: Update a comment

2010-11-16 Thread Josh Boyer
On Mon, Nov 15, 2010 at 3:21 AM, Alessio Igor Bogani wrote: > The commit 5e3d20a remove bkl from startup code so setup_arch() it isn't > called > with bkl held anymore. Update the comment on top of that function. > > This work was supported by a hardware donation from the CE Linux Forum. You sho

Re: [PATCH] Fix float to unsigned conversion failure with SPE enabled

2010-11-16 Thread Josh Boyer
On Sat, Nov 13, 2010 at 11:11 PM, Hai Shan wrote: > Fixed the failure on converting minus float to unsigned int with SPE enabled > > Signed-off-by: Hai Shan You should make sure to send PowerPC patches to linuxppc-dev. josh > --- >  arch/powerpc/math-emu/math_efp.c |   17 + >  

Re: Corrected data type mismatch

2010-11-16 Thread Milton Miller
[added cc's based on from ff10b88b5a05c8f1646dd15fb9f6093c1384ff6d, which added the patched line ] https://patchwork.kernel.org/patch/323022/ On Sun, 14 Nov 2010 around 02:06:59 -, Hai Shan wrote: > > Corrected data type mismatch > This merely hides the type mismatch by force casting it. L

Re: [PATCH] Move ams driver to macintosh

2010-11-16 Thread Jean Delvare
Hi Benjamin, On Tue, 16 Nov 2010 15:33:25 +1100, Benjamin Herrenschmidt wrote: > On Tue, 2010-10-05 at 12:10 +0200, Jean Delvare wrote: > > The ams driver isn't a hardware monitoring driver, so it shouldn't > > live under driver/hwmon. drivers/macintosh seems much more > > appropriate, as the driv