Re: oops in proc_sys_compare

2008-08-14 Thread Hugh Dickins
On Fri, 15 Aug 2008, Al Viro wrote: > On Thu, Aug 14, 2008 at 07:31:06PM +0100, Hugh Dickins wrote: > > I got this oops below, after several hours of swap-heavy kernel builds > > in tmpfs, on 2.6.27-rc1-mm1 a couple of weeks ago. Tried to reproduce > > it without success, then got a very similar t

Re: [RFC 2/2] powerpc: copy_4K_page tweaked for Cell - add CPU feature

2008-08-14 Thread Mark Nelson
On Thu, 14 Aug 2008 10:10:48 pm Michael Ellerman wrote: > On Thu, 2008-08-14 at 21:48 +1000, Mark Nelson wrote: > > Hi Michael, > > > > On Thu, 14 Aug 2008 08:51:35 pm Michael Ellerman wrote: > > > On Thu, 2008-08-14 at 16:18 +1000, Mark Nelson wrote: > > > > Add a new CPU feature, CPU_FTR_CP_USE_

Re: [PATCH 2/2] port ndfc driver to of platform

2008-08-14 Thread Sean MacLennan
Hopefully the last change. I decided to remove all the rev A fixups from the cuboot-warp file. I am the only person using a rev A, and I can use the command line to specify any needed partitions. There is really only one partition needed to boot from nand since u-boot can be used to flash the image

Re: oops in proc_sys_compare

2008-08-14 Thread Al Viro
On Thu, Aug 14, 2008 at 07:31:06PM +0100, Hugh Dickins wrote: > I got this oops below, after several hours of swap-heavy kernel builds > in tmpfs, on 2.6.27-rc1-mm1 a couple of weeks ago. Tried to reproduce > it without success, then got a very similar trace (not saved) from > 2.6.27-rc3 itself do

Re: [PATCH v3] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread Mitch Bradley
David Gibson wrote: On Thu, Aug 14, 2008 at 12:43:48PM -0500, Scott Wood wrote: On Thu, Aug 14, 2008 at 08:28:19AM -0500, Kumar Gala wrote: - if (*path != '/') - return -FDT_ERR_BADPATH; + /* see if we have an alias */ + if (*path != '/') { +

Re: [PATCH v3] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread David Gibson
On Thu, Aug 14, 2008 at 12:43:48PM -0500, Scott Wood wrote: > On Thu, Aug 14, 2008 at 08:28:19AM -0500, Kumar Gala wrote: > > - if (*path != '/') > > - return -FDT_ERR_BADPATH; > > + /* see if we have an alias */ > > + if (*path != '/') { > > + const char *q; > > +

Re: [PATCH V2] DTC: Remove support for the legacy DTS source file format.

2008-08-14 Thread David Gibson
On Thu, Aug 14, 2008 at 06:02:43PM -0500, Jon Loeliger wrote: > Now that all in-kernel-tree DTS files are properly /dts-v1/, > remove direct support for the older, un-numbered DTS > source file format. Um.. why? I just don't see a compelling reason to remove this backwards compatibility. It cost

[PATCH 2.6.27] [POWERPC] Invalidate all TLB entries in a specified range

2008-08-14 Thread Rocky Craig
From: Rocky Craig <[EMAIL PROTECTED]> The apparent intent of "flush_tlbs" is to invalidate TLB entries that might match in the address range 0 to 0x0040. A loop counter is set up at the high value and decremented by page size. However, the loop is only done once as the sense of the conditi

mpc52xx localplus bus and dm9000

2008-08-14 Thread Sinisa Denic
Hi,I have mpc52xx based board very similar to lite5200b. There is Davicom DM9000 connected to Local Plus Bus CS0. Does anybody have idea how should DTS part look like in order to add this resource in system. I've written something like this: lpb { device_type = "network";

mpc52xx_uart and rs485

2008-08-14 Thread Sinisa Denic
>From bf050adbc092043c1ba6e43373563bb761bb2e40 Mon Sep 17 00:00:00 2001 From: Sinisa Denic <[EMAIL PROTECTED]> Date: Wed, 13 Aug 2008 15:57:52 +0200 Subject: [PATCH] mpc52xx_uart RS485 support added Hi Wolfgang and others, below is patch for mpc52xx_usrt.c which add software rs485 support to thi

Re: [PATCH 2/2] port ndfc driver to of platform

2008-08-14 Thread Sean MacLennan
The only real change from the last version was the updating of the dts to use the chip select and offset for the NAND address rather than the chip select and address. Cheers, Sean Changes to the warp platform with the ndfc as an of platform device. The main changes are: * moving the NAND inf

Re: [PATCH 1/2] port ndfc driver to of platform

2008-08-14 Thread Sean MacLennan
Port the ndfc driver to an OF platform driver. Signed-off-by: Sean MacLennan <[EMAIL PROTECTED]> --- diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 41f361c..ab0d77e 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -165,7 +165,7 @@ config MTD_NAND_S3C2

[PATCH V2] DTC: Remove support for the legacy DTS source file format.

2008-08-14 Thread Jon Loeliger
Now that all in-kernel-tree DTS files are properly /dts-v1/, remove direct support for the older, un-numbered DTS source file format. Convert existing tests to /dts-v1/ and remove support for the conversion tests themselves. For now, though, the conversion tool still exists. Signed-off-by: Jon L

Re: [PATCH 2.6.27] [POWERPC] Invalidate all TLB entries in a specified range

2008-08-14 Thread Benjamin Herrenschmidt
On Thu, 2008-08-14 at 07:11 -0600, Rocky Craig wrote: > From: Rocky Craig <[EMAIL PROTECTED]> > > The apparent intent of "flush_tlbs" is to invalidate TLB entries that > might match in the address range 0 to 0x0040. A loop counter is > set up at the high value and decremented by page size.

[PATCH] DTC: Remove support for the legacy DTS source file format.

2008-08-14 Thread Jon Loeliger
Now that all in-kernel-tree DTS files are properly /dts-v1/, remove direct support for the older, un-numbered DTS source file format. Convert existing tests to /dts-v1/ and remove support for the conversion tests themselves. For now, though, the conversion tool still exists. Signed-off-by: Jon

Re: [PATCH 1/2] port ndfc driver to of platform

2008-08-14 Thread Sean MacLennan
On Thu, 14 Aug 2008 22:16:45 +0200 "Arnd Bergmann" <[EMAIL PROTECTED]> wrote: > If of_iomap and of_address_to_resource don't work properly, there > is probably something wrong in your device tree, maybe an incorrect > #size-cells or #address-cells or ranges property in one of > the parents. You ne

Re: [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init()

2008-08-14 Thread Grant Likely
On Thu, Aug 14, 2008 at 1:59 PM, Kumar Gala <[EMAIL PROTECTED]> wrote: > > On Aug 14, 2008, at 11:43 AM, Grant Likely wrote: > >> On Thu, Aug 14, 2008 at 10:24 AM, Kumar Gala <[EMAIL PROTECTED]> >> wrote: > > what happens if we run out of bats? Then it returns NULL and the caller

__attribute_used__ in 2.6.24

2008-08-14 Thread Kevin Diggs
Hi, Something in a function signature called "__attribute_used__" would compile in 2.6.24. This does not compile in 2.6.26. Using the "store_##NAME" template from arch/powerpc/kernel/sysfs.c as a guide, this appears to have changed to "__used". Anything work in both? "__used" seems to have c

Re: [PATCH 1/2] port ndfc driver to of platform

2008-08-14 Thread Arnd Bergmann
On Thursday 14 August 2008, Sean MacLennan wrote: > On Thu, 14 Aug 2008 11:53:07 +0200 > "Arnd Bergmann" <[EMAIL PROTECTED]> wrote: > > > > + ndfc->ndfcbase = ioremap(reg[1], reg[2]); > > > > This could be better expressed as of_iomap(). > > I tried of_iomap(), but it doesn't seem to like the 3

Re: [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init()

2008-08-14 Thread Kumar Gala
On Aug 14, 2008, at 11:43 AM, Grant Likely wrote: On Thu, Aug 14, 2008 at 10:24 AM, Kumar Gala <[EMAIL PROTECTED] > wrote: what happens if we run out of bats? Then it returns NULL and the caller must handle it. The board port maintainer needs understand the board/CPU/SoC and not depend on m

oops in proc_sys_compare

2008-08-14 Thread Hugh Dickins
I got this oops below, after several hours of swap-heavy kernel builds in tmpfs, on 2.6.27-rc1-mm1 a couple of weeks ago. Tried to reproduce it without success, then got a very similar trace (not saved) from 2.6.27-rc3 itself doing the same test yesterday: again oopsing in proc_sys_compare on addr

Re: [PATCH v3] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread Scott Wood
On Thu, Aug 14, 2008 at 08:28:19AM -0500, Kumar Gala wrote: > - if (*path != '/') > - return -FDT_ERR_BADPATH; > + /* see if we have an alias */ > + if (*path != '/') { > + const char *q; > + int aliasoffset = fdt_path_offset(fdt, "/aliases"); > + > +

Re: [PATCH 1/2] port ndfc driver to of platform

2008-08-14 Thread Sean MacLennan
Second version of patch with cleanups. Note that this patch is slightly different I diffed the last patch against my master git rather than Linus' master git :( The difference is that my git already had the ports to arch/powerpc. Cheers, Sean Port of the ndfc driver to an of platform drive

[PATCH] powerpc/83xx: mpc836x_mds: add support for the nor flash

2008-08-14 Thread Anton Vorontsov
This patch adds the localbus node, moves the bcsr node into the localbus node, and adds the flash node. Also enable MTD support in the defconfig. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc836x_mds.dts | 23 ++- arch/powerpc/configs/83xx/mpc83

Re: [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init()

2008-08-14 Thread Grant Likely
On Thu, Aug 14, 2008 at 10:24 AM, Kumar Gala <[EMAIL PROTECTED]> wrote: >>> what happens if we run out of bats? >> >> Then it returns NULL and the caller must handle it. The board port >> maintainer needs understand the board/CPU/SoC and not depend on more >> BATs than are available. They also ne

Re: [PATCH 2/2] port ndfc driver to of platform

2008-08-14 Thread Jon Loeliger
Arnd Bergmann wrote: Did we ever come to a conclusion on how this could be done, e.g. with preprocessed dts files or simpler dynamic patching of binary device trees? I am working on it. jdl ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org http

Re: [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init()

2008-08-14 Thread Kumar Gala
what happens if we run out of bats? Then it returns NULL and the caller must handle it. The board port maintainer needs understand the board/CPU/SoC and not depend on more BATs than are available. They also need to understand that there is a tradeoff between BATs for IO and BATs for RAM. If t

Re: [PATCH 1/2] port ndfc driver to of platform

2008-08-14 Thread Sean MacLennan
On Thu, 14 Aug 2008 11:53:07 +0200 "Arnd Bergmann" <[EMAIL PROTECTED]> wrote: > > + ndfc->ndfcbase = ioremap(reg[1], reg[2]); > > This could be better expressed as of_iomap(). I tried of_iomap(), but it doesn't seem to like the 3 value reg. i.e. It doesn't skip the chip select. And since I nee

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-14 Thread Anton Vorontsov
On Thu, Aug 14, 2008 at 04:45:52PM +0200, Laurent Pinchart wrote: > On Thursday 14 August 2008, Anton Vorontsov wrote: > > On Thu, Aug 14, 2008 at 04:04:18PM +0200, Laurent Pinchart wrote: > > > On Friday 08 August 2008, Anton Vorontsov wrote: > > > > We'll need this function to write platform-spec

Re: [PATCH v3] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread Jon Loeliger
> If the path doesn't start with '/' check to see if it matches some alias > under "/aliases" and substitute the matching alias value in the path > and retry the lookup. > > Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> Applied. jdl ___ Linuxppc-dev ma

Re: [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init()

2008-08-14 Thread Grant Likely
On Thu, Aug 14, 2008 at 7:00 AM, Kumar Gala <[EMAIL PROTECTED]> wrote: > > On Aug 12, 2008, at 10:03 PM, Grant Likely wrote: > >> +/** >> + * ioremap_early - Allow large persistant IO regions to be mapped early. >> + * @addr: physical address of region >> + * @size: size of region >> + * >> + * Thi

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-14 Thread Laurent Pinchart
On Thursday 14 August 2008, Anton Vorontsov wrote: > On Thu, Aug 14, 2008 at 04:04:18PM +0200, Laurent Pinchart wrote: > > On Friday 08 August 2008, Anton Vorontsov wrote: > > > We'll need this function to write platform-specific hooks to deal > > > with pin's dedicated functions. Quite obviously t

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-14 Thread Anton Vorontsov
On Thu, Aug 14, 2008 at 04:04:18PM +0200, Laurent Pinchart wrote: > On Friday 08 August 2008, Anton Vorontsov wrote: > > We'll need this function to write platform-specific hooks to deal > > with pin's dedicated functions. Quite obviously this will work only > > for the platforms with 1-to-1 GPIO t

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-14 Thread Laurent Pinchart
On Friday 08 August 2008, Anton Vorontsov wrote: > We'll need this function to write platform-specific hooks to deal > with pin's dedicated functions. Quite obviously this will work only > for the platforms with 1-to-1 GPIO to PIN mapping. > > This is stopgap solution till we think out and impleme

Re: [PATCH v3] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread David Gibson
On Thu, Aug 14, 2008 at 08:28:19AM -0500, Kumar Gala wrote: > If the path doesn't start with '/' check to see if it matches some alias > under "/aliases" and substitute the matching alias value in the path > and retry the lookup. > > Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> Acked-by: David G

[PATCH v3] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread Kumar Gala
If the path doesn't start with '/' check to see if it matches some alias under "/aliases" and substitute the matching alias value in the path and retry the lookup. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- Simplify down the aliases.dts to only whats needed for the test. - k libfdt/fdt_

Re: [PATCH v2] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread David Gibson
On Thu, Aug 14, 2008 at 07:51:47AM -0500, Kumar Gala wrote: > If the path doesn't start with '/' check to see if it matches some alias > under "/aliases" and substitute the matching alias value in the path > and retry the lookup. > > Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> > --- > > Fixed t

Re: [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init()

2008-08-14 Thread Kumar Gala
On Aug 12, 2008, at 10:03 PM, Grant Likely wrote: +/** + * ioremap_early - Allow large persistant IO regions to be mapped early. + * @addr: physical address of region + * @size: size of region + * + * This routine uses setbat() to set up IO ranges before the MMU is + * fully configured. + *

[PATCH v2] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread Kumar Gala
If the path doesn't start with '/' check to see if it matches some alias under "/aliases" and substitute the matching alias value in the path and retry the lookup. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- Fixed the bug pointed out by David Gibson and added tests. - k libfdt/fdt_ro.c

Re: [PATCH 0/3] Patches to support QE USB Host Controller

2008-08-14 Thread Laurent Pinchart
On Friday 08 August 2008, Anton Vorontsov wrote: > Hi all, > > Most patches that were needed to support QE USB Host were merged during > 2.6.27 merge window, and only three more patches left over. Here they > are. > > David, could you bear with gpio_to_chip() exported function, just as > a stopga

Re: [RFC 2/2] powerpc: copy_4K_page tweaked for Cell - add CPU feature

2008-08-14 Thread Michael Ellerman
On Thu, 2008-08-14 at 21:48 +1000, Mark Nelson wrote: > Hi Michael, > > On Thu, 14 Aug 2008 08:51:35 pm Michael Ellerman wrote: > > On Thu, 2008-08-14 at 16:18 +1000, Mark Nelson wrote: > > > Add a new CPU feature, CPU_FTR_CP_USE_DCBTZ, to be added to the CPUs that > > > benefit > > > from having

Re: [PATCH] libfdt: Add support for using aliases in fdt_path_offset()

2008-08-14 Thread Kumar Gala
On Aug 13, 2008, at 11:15 PM, David Gibson wrote: On Wed, Aug 13, 2008 at 10:52:26PM -0500, Kumar Gala wrote: If the path doesn't start with '/' check to see if it matches some alias under "/aliases" and substitute the matching alias value in the path and retry the lookup. Kumar, this is b

Re: [RFC 2/2] powerpc: copy_4K_page tweaked for Cell - add CPU feature

2008-08-14 Thread Mark Nelson
Hi Michael, On Thu, 14 Aug 2008 08:51:35 pm Michael Ellerman wrote: > On Thu, 2008-08-14 at 16:18 +1000, Mark Nelson wrote: > > Add a new CPU feature, CPU_FTR_CP_USE_DCBTZ, to be added to the CPUs that > > benefit > > from having dcbt and dcbz instructions used in copy_4K_page(). So far Cell, >

Re: bug in lmb_enforce_memory_limit()

2008-08-14 Thread Michael Ellerman
On Thu, 2008-08-14 at 01:20 -0700, David Miller wrote: > I just mentioned this to Ben H. on IRC and promised I would report it > here. :-) > > The first loop over lmb.memory in this function interprets the > memory_limit as a raw size limit, and that's fine so far. > > But the second loop over lm

Re: [RFC 2/2] powerpc: copy_4K_page tweaked for Cell - add CPU feature

2008-08-14 Thread Michael Ellerman
On Thu, 2008-08-14 at 16:18 +1000, Mark Nelson wrote: > Add a new CPU feature, CPU_FTR_CP_USE_DCBTZ, to be added to the CPUs that > benefit > from having dcbt and dcbz instructions used in copy_4K_page(). So far Cell, > PPC970 > and Power4 benefit. > > This way all the other 64bit powerpc chips

Re: [PATCH 2/2] port ndfc driver to of platform

2008-08-14 Thread Arnd Bergmann
On Wednesday 13 August 2008, Sean MacLennan wrote: > Changes to the warp platform with the ndfc as an of platform device. > The main changes are: > > * moving the NAND information to the DTS > * removing warp-nand.c > * moving the NAND fixups to cuboot-warp.c The device tree stuff looks good, but

Re: [PATCH 1/2] port ndfc driver to of platform

2008-08-14 Thread Arnd Bergmann
On Wednesday 13 August 2008, Sean MacLennan wrote: > Port of the ndfc driver to an of platform driver. Look good overall, thanks for following up on this. > +struct ndfc_ctrl { > + struct device *dev; > + void __iomem *ndfcbase; > + struct mtd_info mtd; > + struct nand_chip chip;

[PATCH 2/2][V3] kexec-tools: create a new linux, drconf-usable-memory property

2008-08-14 Thread Chandru
Add a new linux,drconf-usable-memory property to the device tree. This property stores the usable memory regions for kexec/kdump kernel. The other changes to kexec-tools which do not affect the kernel are not attached here. These are the changes to kexec-tools. Patch 1/2 are the changes in kern

[PATCH 1/2][V3] powerpc: add support for dynamic reconfiguration memory in kexec/kdump kernels

2008-08-14 Thread Chandru
kdump kernel needs to use only those memory regions that it is allowed to use (crashkernel, rtas, tce ..etc ). Each of these regions have their own sizes and are currently added under 'linux,usable-memory' property under each memory@ node of the device tree. ibm,dynamic-memory property of ibm

Re: [PATCH] gianfar: Call gfar_halt_nodisable() from gfar_halt().

2008-08-14 Thread Jeff Garzik
Scott Wood wrote: gfar_halt() was factored out into halting and disabling by commit d87eb12785c14de1586e3bad86ca2c0991300339, as the suspend() method only wants to do the former. However, the call to gfar_halt_nodisable() from gfar_halt() apparently got lost during the patch respin process. Thi

bug in lmb_enforce_memory_limit()

2008-08-14 Thread David Miller
I just mentioned this to Ben H. on IRC and promised I would report it here. :-) The first loop over lmb.memory in this function interprets the memory_limit as a raw size limit, and that's fine so far. But the second loop over lmb.reserved interprets this value instead as an "address limit." I h

Re: [PATCH / RFC] net: fix locking in ibm_newemac

2008-08-14 Thread Sebastian Siewior
* Benjamin Herrenschmidt | 2008-08-14 13:45:54 [+1000]: >> The fix is to defer phy init until netdevice is registered / initialized. > >I think it's better instead to take the dev_mc_add() statement >out of emac_configure(). I looked yesterday into that code and I saw that dev_mc_add() was called