Re: [PATCH 1/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-28 Thread David Gibson
On Tue, Aug 28, 2007 at 08:56:10PM +0400, Valentine Barshak wrote: > Bootwrapper code for AMCC PPC440EPx Sequoia. > > Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> [snip] > +static void sequoia_fixups(void) > +{ > + unsigned long sysclk = ; > + > + ibm440ep_fixup_clocks(sysc

Re: Document and implement an improved flash device binding

2007-08-28 Thread David Gibson
for powerpc (v3) Reply-To: This patch replaces the binding for flash chips in booting-without-of.txt with an clarified and improved version. It also makes drivers/mtd/maps/physmap_of.c recognize this new binding. Finally it revises the Ebony device tree source to use the new binding as an exampl

Re: [PATCH 6/9] mpc82xx: Rename mpc82xx_ads to mpc8272_ads.

2007-08-28 Thread David Gibson
On Tue, Aug 28, 2007 at 03:19:26PM -0500, Scott Wood wrote: > This is just a rename patch; internal references to mpc82xx_ads will be > changed in the next one. > > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> > --- > arch/powerpc/platforms/82xx/Kconfig|8 > arch/pow

Re: [PATCH 3/3] Add early debug console for CPM serial ports.

2007-08-28 Thread David Gibson
On Tue, Aug 28, 2007 at 03:16:21PM -0500, Scott Wood wrote: > This code assumes that the ports have been previously set up, with > buffers in DPRAM, and the descriptor address defined by platform code. > > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> > --- > arch/powerpc/Kconfig.debug |

Re: [PATCH 2/3] Introduce new CPM device bindings.

2007-08-28 Thread David Gibson
On Tue, Aug 28, 2007 at 03:16:19PM -0500, Scott Wood wrote: > This introduces a new device binding for the CPM and other devices on > these boards. Some of the changes include: > > 1. Proper namespace scoping for Freescale compatibles and properties. > > 2. Use compatible rather than things like

Re: [PATCH 1/3] fsl_soc.c cleanup

2007-08-28 Thread David Gibson
Hrm.. in future could you add a separate 0/N for each of your series, and make sure the In-Reply-To fields are right... as it is, my mailer has threaded together these 4 or so patch series you posted into one great wodge. -- David Gibson| I'll have my music baroque, and my cod

Re: Document and implement an improved flash device binding for powerpc

2007-08-28 Thread David Gibson
On Tue, Aug 28, 2007 at 01:39:26PM -0500, Josh Boyer wrote: > On Tue, 28 Aug 2007 13:47:51 +1000 > David Gibson <[EMAIL PROTECTED]> wrote: > > > This patch replaces the binding for flash chips in > > booting-without-of.txt with an clarified and improved version. It > > also makes drivers/mtd/maps

Re: wmb vs mmiowb

2007-08-28 Thread Peter Chubb
> "Brent" == Brent Casavant <[EMAIL PROTECTED]> writes: Brent> That reminds me. Are the people who are working on the Brent> user-level driver effort including a capability similar to Brent> mmiowb()? If we had that capability we could eventually do Brent> away with the change mentioned abov

Re: wmb vs mmiowb

2007-08-28 Thread Brent Casavant
On Thu, 23 Aug 2007, Jesse Barnes wrote: > On Thursday, August 23, 2007 12:27 am Benjamin Herrenschmidt wrote: > > > Of course, the normal memory barrier would usually be a > > > "spin_unlock()" or something like that, not a "wmb()". In fact, I > > > don't think the powerpc implementation (as an e

Re: wmb vs mmiowb

2007-08-28 Thread Brent Casavant
On Fri, 24 Aug 2007, Nick Piggin wrote: > And all platforms other than sn2 don't appear to reorder IOs after > they leave the CPU, so only sn2 needs to do the mmiowb thing before > spin_unlock. I'm sure all of the following is already known to most readers, but I thought the paragraph above might

Where to put tip to fix very jerky mouse on iBook G3?

2007-08-28 Thread Jarrod O'Flaherty
Hi All, SHORT VERSION: -- 1. I had a problem with my USB mouse on an iBook G3. 2. It took a lot of hard work to solve the problem. 3. I'd like to know where to put my solution for others to find (and find easily! ;). For more details read on... LONG VERSION: - I am

libfdt: Fix handling of trailing / in fdt_path_offset()

2007-08-28 Thread David Gibson
Currently, fdt_path_offset() returns FDL_ERR_BADOFFSET if given a path with a trailing '/'. In particular this means that fdt_path_offset("/") returns FDT_ERR_BADOFFSET rather than 0 as one would expect. This patch fixes the function to accept and ignore trailing '/' characters. As well as allow

dtc: Fix summary calculation in testsuite

2007-08-28 Thread David Gibson
The bookkeeping for producing the testsuite summary (total number of tests passed, failed and so forth) is broken. It uses $? across several tests, but for checks after the first, the value of $? will no longer contain the original return code, but just that from the previous test. This patch fix

Re: wmb vs mmiowb

2007-08-28 Thread Nick Piggin
On Tue, Aug 28, 2007 at 03:56:28PM -0500, Brent Casavant wrote: > On Fri, 24 Aug 2007, Nick Piggin wrote: > > > And all platforms other than sn2 don't appear to reorder IOs after > > they leave the CPU, so only sn2 needs to do the mmiowb thing before > > spin_unlock. > > I'm sure all of the follo

Re: [PATCH, RFC] linkstation: implement standby

2007-08-28 Thread Guennadi Liakhovetski
Implement suspend/resume for "mpc10x" compatible fsl host PCI controllers, use it for linkstation standby. This is version 2, taking into account comments to the previous version and re-implementing MPC10x suspend in a separate pci driver. Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread David Miller
From: Jan-Bernd Themann <[EMAIL PROTECTED]> Date: Tue, 28 Aug 2007 13:21:09 +0200 > So I guess one solution is to "force" an HW interrupt when two many > RQs are processed on the same CPU (when no IRQ pinning is > used). This is something the driver has to handle. No, the solution is to lock the

[PATCH 8/9] mpc82xx: Update mpc8272ads, and factor out PCI and reset.

2007-08-28 Thread Scott Wood
1. PCI and reset are factored out into pq2.c. I renamed them from m82xx to pq2 because they won't work on the Integrated Host Processor line of 82xx chips (i.e. 8240, 8245, and such). 2. The PCI PIC, which is nominally board-specific, is used on multiple boards, and thus is used into pq2ads-pci-p

[PATCH 9/9] mpc82xx: Add pq2fads board support.

2007-08-28 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/pq2fads.dts | 240 arch/powerpc/configs/pq2fads_defconfig | 928 arch/powerpc/platforms/82xx/Kconfig| 11 + arch/powerpc/platforms/82xx/Makefile |1 + arch/powerpc/p

[PATCH 7/9] mpc8272ads: Change references from 82xx_ADS to 8272_ADS.

2007-08-28 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/82xx/mpc8272_ads.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/platforms/82xx/mpc8272_ads.c b/arch/powerpc/platforms/82xx/mpc8272_ads.c index 64e8ca9..994a

[PATCH 6/9] mpc82xx: Rename mpc82xx_ads to mpc8272_ads.

2007-08-28 Thread Scott Wood
This is just a rename patch; internal references to mpc82xx_ads will be changed in the next one. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/82xx/Kconfig|8 arch/powerpc/platforms/82xx/Makefile |2 +- .../82xx/{mpc82xx_ad

[PATCH 5/9] mpc82xx: Remove a bunch of cruft that duplicates generic functionality.

2007-08-28 Thread Scott Wood
m82xx_calibrate_decr(), mpc82xx_ads_show_cpuinfo(), and mpc82xx_halt() do anything useful beyond what the generic code does. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/82xx/Makefile |1 - arch/powerpc/platforms/82xx/mpc82xx.c | 109 -

[PATCH 4/9] cpm2: Add cpm2_set_pin().

2007-08-28 Thread Scott Wood
This provides a generic way for board code to set up CPM pins, rather than directly poking magic values into registers. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c | 33 + include/asm-powerpc/cpm2.h|9 +

[PATCH 3/9] cpm2: Add SCCs to cpm2_clk_setup(), and cpm2_smc_clk_setup().

2007-08-28 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c | 100 +++-- include/asm-powerpc/cpm2.h|5 ++- 2 files changed, 99 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/cpm2_common.c b/arch/powerpc/sysdev/c

[PATCH 2/9] cpm2: Fix off-by-one error in setbrg().

2007-08-28 Thread Scott Wood
The hardware adds one to the BRG value to get the divider, so it must be subtracted by software. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/cpm2_common.c b/arch/

[PATCH 1/9] cpm2: Infrastructure code cleanup.

2007-08-28 Thread Scott Wood
Mostly sparse fixes (__iomem annotations, etc); also, cpm2_immr is used rather than creating many temporary mappings. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c | 56 +--- arch/powerpc/sysdev/cpm2_pic.c|2 +- inclu

[PATCH 9/9] 8xx: Adder 875 support

2007-08-28 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/adder875.dts| 158 +++ arch/powerpc/configs/adder875_config | 802 + arch/powerpc/platforms/8xx/Kconfig|8 + arch/powerpc/platforms/8xx/Makefile |1 + arch/powerpc/platf

[PATCH 8/9] 8xx: Embedded Planet EP88xC support

2007-08-28 Thread Scott Wood
This board is also resold by Freescale under the names "QUICCStart MPC885 Evaluation System" and "CWH-PPC-885XN-VE". Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile|3 +- arch/powerpc/boot/dts/ep88xc.dts | 192 + arch/powerpc/boot/ep88xc.

[PATCH 7/9] 8xx: mpc885ads cleanup

2007-08-28 Thread Scott Wood
It now uses the new CPM binding and the generic pin/clock functions, and has assorted fixes and cleanup. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc885ads.dts | 192 ++- arch/powerpc/configs/mpc885_ads_defconfig| 445 +++--

[PATCH 6/9] 8xx: Set initial memory limit.

2007-08-28 Thread Scott Wood
From: John Traill <[EMAIL PROTECTED]> The 8xx can only support a max of 8M during early boot (it seems a lot of 8xx boards only have 8M so the bug was never triggered), but the early allocator isn't aware of this. The following change makes it able to run with larger memory. Signed-off-by: Vital

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread David Miller
From: Jan-Bernd Themann <[EMAIL PROTECTED]> Date: Tue, 28 Aug 2007 13:21:09 +0200 > Problem for multi queue driver with interrupt distribution scheme set to > round robin for this simple example: > Assuming we have 2 SLOW CPUs. CPU_1 is under heavy load (applications). CPU_2 > is not under heavy l

[PATCH 6/9] 8xx: Set initial memory limit.

2007-08-28 Thread John Traill
The 8xx can only support a max of 8M during early boot (it seems a lot of 8xx boards only have 8M so the bug was never triggered), but the early allocator isn't aware of this. The following change makes it able to run with larger memory. Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]> Signed-off

[PATCH 5/9] 8xx: Don't call non-existent Soft_emulate_8xx from SoftwareEmulation.

2007-08-28 Thread Scott Wood
On arch/ppc, Soft_emulate_8xx was used when full math emulation was turned off to emulate a minimal subset of floating point load/store instructions, to avoid needing a soft-float toolchain. This function is called, but not present, on arch/powerpc, causing a build error if floating point emulatio

[PATCH 4/9] 8xx: Work around CPU15 erratum.

2007-08-28 Thread Scott Wood
The CPU15 erratum on MPC8xx chips can cause incorrect code execution under certain circumstances, where there is a conditional or indirect branch in the last word of a page, with a target in the last cache line of the next page. This patch implements one of the suggested workarounds, by forcing a

[PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-08-28 Thread Scott Wood
1. Keep a global mpc8xx_immr mapping, rather than constantly creating temporary mappings. 2. Look for new fsl,cpm1 and fsl,cpm1-pic names. 3. Always reset the CPM when not using the udbg console; this is required in case the firmware initialized a device that is incompatible with one that the kerne

[PATCH 3/9] 8xx: Add pin and clock setting functions.

2007-08-28 Thread Scott Wood
These let board code set up pins and clocks without having to put magic numbers directly into the registers. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/commproc.c | 201 include/asm-powerpc/commproc.h | 41 2 files ch

[PATCH 1/9] 8xx: Fix CONFIG_PIN_TLB.

2007-08-28 Thread Scott Wood
1. Only map 512K of the IMMR, rather than 8M, to avoid conflicting with the default ioremap region. 2. The wrong register was being loaded into SPRN_MD_RPN. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/kernel/head_8xx.S | 10 +- 1 files changed, 5 insertions(+), 5 dele

[PATCH 3/4] cpm_uart: sparse fixes

2007-08-28 Thread Scott Wood
Mostly a bunch of direct access to in/out conversions, plus a few cast removals, __iomem annotations, and miscellaneous cleanup. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/serial/cpm_uart/cpm_uart.h | 42 +++-- drivers/serial/cpm_uart/cpm_uart_core.c | 299 -

[PATCH 4/4] cpm_uart: Issue STOP_TX command before initializing console.

2007-08-28 Thread Scott Wood
This prevents some bootloader/bootwrapper characters from being lost. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/serial/cpm_uart/cpm_uart_core.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_

[PATCH 2/4] cpm_uart: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set.

2007-08-28 Thread Scott Wood
The existing OF glue code was crufty and broken. Rather than fix it, it has been removed, and the serial driver now talks to the device tree directly. The non-CONFIG_PPC_CPM_NEW_BINDING code can go away once CPM platforms are dropped from arch/ppc (which will hopefully be soon), and existing arch

[PATCH 1/4] ppc: Add clrbits8 and setbits8.

2007-08-28 Thread Scott Wood
These I/O accessors will be used in code under drivers/, which is expected to still work in arch/ppc. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- include/asm-ppc/io.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index

[PATCH 1/3] fsl_soc.c cleanup

2007-08-28 Thread Scott Wood
1. Fix get_immrbase() to use ranges, rather than reg. It is not always the case that the SoC's first reg property points to the beginning of the entire SoC block. 2. Update the way get_brgfreq() finds things in the device tree. It now uses names that are less namespace polluting. The old names

[PATCH 2/3] Introduce new CPM device bindings.

2007-08-28 Thread Scott Wood
This introduces a new device binding for the CPM and other devices on these boards. Some of the changes include: 1. Proper namespace scoping for Freescale compatibles and properties. 2. Use compatible rather than things like device_type and model to determine which particular variant of a device

[PATCH 3/3] Add early debug console for CPM serial ports.

2007-08-28 Thread Scott Wood
This code assumes that the ports have been previously set up, with buffers in DPRAM, and the descriptor address defined by platform code. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig.debug |9 +++ arch/powerpc/kernel/head_32.S| 16 + arch/

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread David Miller
From: Jan-Bernd Themann <[EMAIL PROTECTED]> Date: Tue, 28 Aug 2007 13:19:03 +0200 > I will try the following scheme (once we get hrtimers): Each device > (queue) has a hrtimer. Schedule the timer in the poll function > instead of reactivating IRQs when a high load situation has been > detected an

[PATCH v3 7/8] fs_enet: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set.

2007-08-28 Thread Scott Wood
The existing OF glue code was crufty and broken. Rather than fix it, it will be removed, and the ethernet driver now talks to the device tree directly. The old, non-CONFIG_PPC_CPM_NEW_BINDING code can go away once CPM platforms are dropped from arch/ppc (which will hopefully be soon), and existin

[PATCH v3 8/8] fs_enet: sparse fixes

2007-08-28 Thread Scott Wood
Mostly a bunch of __iomem annotations. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/net/fs_enet/fs_enet-main.c | 16 +- drivers/net/fs_enet/fs_enet.h | 30 +- drivers/net/fs_enet/mac-fcc.c | 60 --- drivers/net/f

[PATCH v3 6/8] fs_enet: Align receive buffers.

2007-08-28 Thread Scott Wood
At least some hardware driven by this driver needs receive buffers to be aligned on a 16-byte boundary. This usually happens by chance, but it breaks if slab debugging is enabled. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/net/fs_enet/fs_enet-main.c | 21 +++-- d

[PATCH v3 5/8] fs_enet: mac-fcc: Eliminate __fcc-* macros.

2007-08-28 Thread Scott Wood
These macros accomplish nothing other than defeating type checking. This patch also fixes one instance of the wrong register size being used that was revealed by enabling type checking. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/net/fs_enet/mac-fcc.c | 25 ---

[PATCH v3 4/8] fs_enet: Don't share the interrupt.

2007-08-28 Thread Scott Wood
This driver can't handle an interrupt immediately after request_irq (making it fail with CONFIG_DEBUG_SHIRQ), and has unshared interrupts on all hardware I'm aware of. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/net/fs_enet/fs_enet-main.c |2 +- 1 files changed, 1 insertions(+),

[PATCH v3 3/8] fs_enet: Include linux/string.h from linux/fs_enet_pd.h

2007-08-28 Thread Scott Wood
It is needed for strstr(). Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- include/linux/fs_enet_pd.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/fs_enet_pd.h b/include/linux/fs_enet_pd.h index 543cd3c..815c6f9 100644 --- a/include/linux/fs_enet_pd.h +

[PATCH v3 2/8] fs_enet: Whitespace cleanup.

2007-08-28 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/net/fs_enet/fs_enet-main.c | 85 --- drivers/net/fs_enet/fs_enet.h |4 +- drivers/net/fs_enet/mac-fcc.c |1 - drivers/net/fs_enet/mii-fec.c |1 - 4 files changed, 41 insertions(+)

[PATCH v3 1/8] Generic bitbanged MDIO library

2007-08-28 Thread Scott Wood
Previously, bitbanged MDIO was only supported in individual hardware-specific drivers. This code factors out the higher level protocol implementation, reducing the hardware-specific portion to functions setting direction, data, and clock. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers

Re: [PATCH 1/1] Fix bus probe on Bamboo board

2007-08-28 Thread Josh Boyer
On Tue, 28 Aug 2007 12:51:00 -0500 Josh Boyer <[EMAIL PROTECTED]> wrote: > Commit 804ace8881d21 changed the behavior of how compatible nodes are found. > This highlighted a bug on the Bamboo board where it wasn't probing the bus > specified in the DTS file. We fix it by being explicit about which

Re: [PATCH] PS3: fix the bug the major version part is not compared

2007-08-28 Thread Geoff Levand
Masakazu Mokuno wrote: > Fix the bug that the major version part of the firmware > is not compared. > > Signed-off-by: Masakazu Mokuno <[EMAIL PROTECTED]> > CC: Geoff Levand <[EMAIL PROTECTED]> > --- > arch/powerpc/platforms/ps3/setup.c |2 +- > include/asm-powerpc/ps3.h |2 +- >

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia board support

2007-08-28 Thread Josh Boyer
On Tue, 28 Aug 2007 13:14:37 -0500 Olof Johansson <[EMAIL PROTECTED]> wrote: > Hi, > > On Tue, Aug 28, 2007 at 09:50:22PM +0400, Valentine Barshak wrote: > > > diff -ruN linux-2.6.orig/arch/powerpc/kernel/head_44x.S > > linux-2.6/arch/powerpc/kernel/head_44x.S > > --- linux-2.6.orig/arch/powerp

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia board support

2007-08-28 Thread Olof Johansson
Hi, On Tue, Aug 28, 2007 at 09:50:22PM +0400, Valentine Barshak wrote: > diff -ruN linux-2.6.orig/arch/powerpc/kernel/head_44x.S > linux-2.6/arch/powerpc/kernel/head_44x.S > --- linux-2.6.orig/arch/powerpc/kernel/head_44x.S 2007-08-27 > 14:08:43.0 +0400 > +++ linux-2.6/arch/powerpc/

ide/libata and powerpc arch/device tree

2007-08-28 Thread Gerhard Pircher
Hi, I'm currently/still trying to describe legacy ports and interrupts for a VIA southbridge PCI IDE controller in a device tree. While the legacy ports can be described in the PCI device node (as suggested to me by some developers here in a previous discussion thread - by imitating the Pegasos),

Re: Document and implement an improved flash device binding for powerpc

2007-08-28 Thread Josh Boyer
On Tue, 28 Aug 2007 13:47:51 +1000 David Gibson <[EMAIL PROTECTED]> wrote: > This patch replaces the binding for flash chips in > booting-without-of.txt with an clarified and improved version. It > also makes drivers/mtd/maps/physmap_of.c recognize this new binding. > Finally it revises the Ebony

Re: [PATCH 1/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-28 Thread Josh Boyer
On Tue, 28 Aug 2007 20:56:10 +0400 Valentine Barshak <[EMAIL PROTECTED]> wrote: > +/* 4xx DDR1/2 Denali memory controller support */ > +/* DDR0 registers */ > +#define DDR0_02 2 > +#define DDR0_08 8 > +#define DDR0_10 10 > +#define DDR

[PATCH 3/4] PowerPC 440EPx: Sequoia board support

2007-08-28 Thread Valentine Barshak
Same as above, just corrected the plb bus entry in the sequoia_of_bus array It should be "ibm,plb4" instead of "ibm,plb". The original bamboo code has the same problem. AMCC PPC440EPx Sequoia board support. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/kernel/cputable.c

[PATCH 1/1] Fix bus probe on Bamboo board

2007-08-28 Thread Josh Boyer
Commit 804ace8881d21 changed the behavior of how compatible nodes are found. This highlighted a bug on the Bamboo board where it wasn't probing the bus specified in the DTS file. We fix it by being explicit about which bus to probe. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia board support

2007-08-28 Thread Josh Boyer
On Tue, 28 Aug 2007 21:00:07 +0400 Valentine Barshak <[EMAIL PROTECTED]> wrote: > diff -ruN linux-2.6.orig/arch/powerpc/platforms/44x/sequoia.c > linux-2.6/arch/powerpc/platforms/44x/sequoia.c > --- linux-2.6.orig/arch/powerpc/platforms/44x/sequoia.c 1970-01-01 > 03:00:00.0 +0300 >

[PATCH 4/4] PowerPC 440EPx: Sequoia defconfig

2007-08-28 Thread Valentine Barshak
AMCC PPC440EPx Sequoia default config. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/configs/sequoia_defconfig | 776 + 1 files changed, 776 insertions(+) diff -ruN linux-2.6.orig/arch/powerpc/configs/sequoia_defconfig linux-2.6/arch/powe

[PATCH 3/4] PowerPC 440EPx: Sequoia board support

2007-08-28 Thread Valentine Barshak
AMCC PPC440EPx Sequoia board support. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/kernel/cputable.c | 18 + arch/powerpc/kernel/head_44x.S |2 - arch/powerpc/platforms/44x/Kconfig | 17 - arch/powerpc/platforms/44x/Makefile |1

[PATCH 2/4] PowerPC 440EPx: Sequoia device tree

2007-08-28 Thread Valentine Barshak
AMCC PPC440EPx Sequoia device tree. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/sequoia.dts | 286 ++ 1 files changed, 286 insertions(+) diff -ruN linux-2.6.orig/arch/powerpc/boot/dts/sequoia.dts linux-2.6/arch/powerpc/boot

[PATCH 1/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-28 Thread Valentine Barshak
Bootwrapper code for AMCC PPC440EPx Sequoia. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/boot/4xx.c| 108 + arch/powerpc/boot/4xx.h|1 arch/powerpc/boot/Makefile |4 + arch/powerpc/boot/cuboot-

[PATCH 0/4] PowerPC 440EPx: Initial Sequoia support take 3

2007-08-28 Thread Valentine Barshak
The following patches add initial PowerPC 440EPx Sequoia board support. The code is based mainly on the Bamboo board support by Josh Boyer. These patches have been modified according the comments for the previous 440EPx Sequoia patch series. ___ Linuxppc-

Re: what is ~1MB of memory allocated at fffea000-fffff000 on ppc64?

2007-08-28 Thread Chris Friesen
Paul Mackerras wrote: > Chris Friesen writes: >>For some background, we're running an emulator that uses a null pointer >>value of 0x and we want any accesses to that address to trap. > Can you fix this in userspace instead by moving the stack down below > 0x and then doing munma

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread James Chapman
Jan-Bernd Themann wrote: > On Tuesday 28 August 2007 11:22, James Chapman wrote: >>> So in this scheme what runs ->poll() to process incoming packets? >>> The hrtimer? >> No, the regular NAPI networking core calls ->poll() as usual; no timers >> are involved. This scheme simply delays the napi_com

Re: [PATCH 3/4] Use strcasecmp() rather than strncasecmp() when determining device node compatibility.

2007-08-28 Thread Josh Boyer
On Mon, 20 Aug 2007 11:36:59 -0500 Scott Wood <[EMAIL PROTECTED]> wrote: > The current code assumes "foo-bar" must always be compatible with a node > compatible with "foo", which breaks device trees where this is not so. > > The "case" part is also wrong according to Open Firmware, but it's more

Re: [Cbe-oss-dev] [patch 1/5] spu_manage: use newer physical-id

2007-08-28 Thread Christian Krafft
On Thu, 23 Aug 2007 18:12:19 +0200 Arnd Bergmann <[EMAIL PROTECTED]> wrote: > On Thursday 23 August 2007, [EMAIL PROTECTED] wrote: > > Please check "unit-id" if "physical-id" doesn't exist. Because Celleb > > uses "unit-id" to provide spe_id. Sorry for the late answer, wasn't on cc and had to rec

Re: [PATCH] PS3: fix the bug the major version part is not compared

2007-08-28 Thread Andreas Schwab
Masakazu Mokuno <[EMAIL PROTECTED]> writes: > Fix the bug that the major version part of the firmware > is not compared. > > Signed-off-by: Masakazu Mokuno <[EMAIL PROTECTED]> > CC: Geoff Levand <[EMAIL PROTECTED]> > --- > arch/powerpc/platforms/ps3/setup.c |2 +- > include/asm-powerpc/ps3.h

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-28 Thread Valentine Barshak
David Gibson wrote: > On Wed, Aug 15, 2007 at 04:22:58PM +0400, Valentine Barshak wrote: >> David Gibson wrote: >>> On Tue, Aug 14, 2007 at 10:53:55PM +0400, Valentine Barshak wrote: Bootwrapper code for AMCC 440EPx Sequoia board. The DDR2 Denali controller support has been moved to

[PATCH] PS3: fix the bug the major version part is not compared

2007-08-28 Thread Masakazu Mokuno
Fix the bug that the major version part of the firmware is not compared. Signed-off-by: Masakazu Mokuno <[EMAIL PROTECTED]> CC: Geoff Levand <[EMAIL PROTECTED]> --- arch/powerpc/platforms/ps3/setup.c |2 +- include/asm-powerpc/ps3.h |2 +- 2 files changed, 2 insertions(+), 2 del

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread Evgeniy Polyakov
On Tue, Aug 28, 2007 at 01:48:20PM +0200, Jan-Bernd Themann ([EMAIL PROTECTED]) wrote: > I'm not sure if I understand your approach correctly. > This approach may reduce the number of interrupts, but it does so > by blocking the CPU for up to 1 jiffy (that can be quite some time > on some platform

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread Jan-Bernd Themann
On Tuesday 28 August 2007 11:22, James Chapman wrote: > > So in this scheme what runs ->poll() to process incoming packets? > > The hrtimer? > > No, the regular NAPI networking core calls ->poll() as usual; no timers > are involved. This scheme simply delays the napi_complete() from the > driver

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread Jan-Bernd Themann
Hi On Monday 27 August 2007 23:02, David Miller wrote: > But there are huger fish to fry for you I think. Talk to your > platform maintainers and ask for an interface for obtaining > a flat static distribution of interrupts to cpus in order to > support multiqueue NAPI better. > > In your previo

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread Jan-Bernd Themann
On Monday 27 August 2007 22:37, David Miller wrote: > From: Jan-Bernd Themann <[EMAIL PROTECTED]> > Date: Mon, 27 Aug 2007 11:47:01 +0200 > > > So the question is simply: Do we want drivers that need (benefit > > from) a timer based polling support to implement their own timers > > each, or should

Re: RFC: issues concerning the next NAPI interface

2007-08-28 Thread James Chapman
David Miller wrote: > From: James Chapman <[EMAIL PROTECTED]> > Date: Mon, 27 Aug 2007 22:41:43 +0100 > >> I don't recall saying anything in previous posts about this. Are you >> confusing my posts with Jan-Bernd's? > > Yes, my bad. > >> Jan-Bernd has been talking about using hrtimers to _resch

Re: [PATCH 1/5] Add an optional device_node pointer to the irq_host

2007-08-28 Thread Michael Ellerman
On Tue, 2007-08-28 at 18:47 +1000, Michael Ellerman wrote: > The majority of irq_host implementations (3 out of 4) are associated > with a device_node, and need to stash it somewhere. Rather than having > it somewhere different for each host, add an optional device_node pointer > to the irq_host st

[PATCH 5/5] Export virq mapping via debugfs

2007-08-28 Thread Michael Ellerman
This patch adds a debugfs file "powerpc/virq_mapping", which shows the virtual to real mapping of irq numbers. Enable it with CONFIG_VIRQ_DEBUG. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> Signed-off-by: Chen Gong <[EMAIL PROTECTED]> Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> --- arch/p

[PATCH 4/5] Initialise hwirq for legacy irqs

2007-08-28 Thread Michael Ellerman
Although no one uses the hwirq value for legacy irqs at the moment, we should really setup the correct value in the irq_map. Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> --- arch/powerpc/kernel/irq.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/ker

[PATCH 3/5] Provide a default irq_host match, which matches on an exact of_node

2007-08-28 Thread Michael Ellerman
The most common match semantic is an exact match based on the device node. So provide a default implementation that does this, and hook it up if no match routine is specified. Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> --- arch/powerpc/kernel/irq.c | 10 +- arch

[PATCH 2/5] Invert null match behaviour for irq_hosts

2007-08-28 Thread Michael Ellerman
Currently if you don't specify a match callback for your irq_host it's assumed you match everything. This is a kind of opt-out approach, and turns out to be the exception rather than the rule. So change the semantics to be opt-in, ie. you don't match anything unless you provide a match callback. T

[PATCH 1/5] Add an optional device_node pointer to the irq_host

2007-08-28 Thread Michael Ellerman
The majority of irq_host implementations (3 out of 4) are associated with a device_node, and need to stash it somewhere. Rather than having it somewhere different for each host, add an optional device_node pointer to the irq_host structure. Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> ---

Re: Move bootwrapper's strchr() and strncmp() from .h to string.S

2007-08-28 Thread Geert Uytterhoeven
On Tue, 28 Aug 2007, David Gibson wrote: > Currently the bootwrapper has implementations of strchr() and > strncmp(), but they're inlines in flatdevtree_env.h, rather than in > string.S with all the rest of the string functions. This patch moves