Re: [PATCH] Add cmd64x IDE driver to default pmac32 config

2010-07-07 Thread Benjamin Herrenschmidt
On Thu, 2010-07-08 at 08:18 +0200, lawrence rust wrote: > > Sure. it would be preferable but unfortunately the PowerMac on-board IDE > controller (CONFIG_BLK_DEV_IDE_PMAC), used for the DVD drive on B/W > G3's, doesn't have a PATA equivalent. So it's pragmatic (until the IDE > code is removed) to

Re: [PATCH] Add cmd64x IDE driver to default pmac32 config

2010-07-07 Thread lawrence rust
On Thu, 2010-07-08 at 15:00 +1000, Benjamin Herrenschmidt wrote: > On Sat, 2010-07-03 at 20:21 +0200, lawrence rust wrote: > > The Blue/White Apple PowerMac G3 and early G4's use a cmd64x compatible > > IDE disk controller. E.g. lspci shows... > > > > 01:01.0 IDE interface: Silicon Image, Inc. PC

Re: [PATCH 1/2] mtd: m25p80: Fix false-positive probing

2010-07-07 Thread Artem Bityutskiy
On Tue, 2010-06-22 at 20:57 +0400, Anton Vorontsov wrote: > Since commit 18c6182bae0acca220ed6611f741034d563cd19f ("Rework > probing/JEDEC code"), m25p80 driver successfully registers chips > even if JEDEC probing fails. > > This was needed to support non-JEDEC flashes. Though, it appears > that s

Re: [PATCH] Adjust arch/powerpc inline asms for recent gcc change

2010-07-07 Thread Benjamin Herrenschmidt
On Fri, 2010-06-25 at 11:56 +0200, Jakub Jelinek wrote: > static inline void sync(void) > diff --git a/arch/powerpc/include/asm/atomic.h > b/arch/powerpc/include/asm/atomic.h > index b8f152e..288d8b2 100644 > --- a/arch/powerpc/include/asm/atomic.h > +++ b/arch/powerpc/include/asm/atomic.h > @@

Re: [PATCH] arch/powerpc/lib/copy_32.S: Use alternate memcpy for MPC512x and MPC52xx

2010-07-07 Thread Grant Likely
On Wed, Jul 7, 2010 at 11:10 PM, Benjamin Herrenschmidt wrote: > On Tue, 2010-06-29 at 11:04 -0500, Steve Deiters wrote: >> These processors will corrupt data if accessing the local bus with >> unaligned >> addresses. This version fixes the typical case of copying from Flash on >> the >> local bus

Re: [PATCH] arch/powerpc/lib/copy_32.S: Use alternate memcpy for MPC512x and MPC52xx

2010-07-07 Thread Benjamin Herrenschmidt
On Tue, 2010-06-29 at 11:04 -0500, Steve Deiters wrote: > These processors will corrupt data if accessing the local bus with > unaligned > addresses. This version fixes the typical case of copying from Flash on > the > local bus by keeping the source address always aligned. Shouldn't this be solve

Re: [PATCH] Add cmd64x IDE driver to default pmac32 config

2010-07-07 Thread Benjamin Herrenschmidt
On Sat, 2010-07-03 at 20:21 +0200, lawrence rust wrote: > The Blue/White Apple PowerMac G3 and early G4's use a cmd64x compatible > IDE disk controller. E.g. lspci shows... > > 01:01.0 IDE interface: Silicon Image, Inc. PCI0646 (rev 07) > > Unfortunately the default pmac32 configuration does not

Re: [PATCH 1/2] edac: mpc85xx: Fix MPC85xx dependency

2010-07-07 Thread Anton Vorontsov
On Wed, Jul 07, 2010 at 02:45:02PM -0700, Andrew Morton wrote: > On Fri, 2 Jul 2010 16:41:11 +0400 > Anton Vorontsov wrote: > > > Since commit 5753c082f66eca5be81f6bda85c1718c5eea6ada ("powerpc/85xx: > > Kconfig cleanup"), there is no MPC85xx Kconfig symbol anymore, so the > > driver became non-s

Re: [PATCH 06/18] spufs: use llseek in all file operations

2010-07-07 Thread Jeremy Kerr
Hi Arnd, > The default for llseek is changing, so we need > explicit operations everywhere. Looks good, but: > @@ -2151,7 +2166,7 @@ static ssize_t spufs_ibox_info_read(struct file *file, > char __user *buf, > static const struct file_operations spufs_ibox_info_fops = { > .open = spufs_i

[PATCHv2 2/2] powerpc: Partition hibernation support

2010-07-07 Thread Brian King
Enables support for HMC initiated partition hibernation. This is a firmware assisted hibernation, since the firmware handles writing the memory out to disk, along with other partition information, so we just mimic suspend to ram. Signed-off-by: Brian King --- arch/powerpc/Kconfig

[PATCHv2 1/2] powerpc: Migration code reorganization / hibernation prep

2010-07-07 Thread Brian King
Partition hibernation will use some of the same code as is currently used for Live Partition Migration. This function further abstracts this code such that code outside of rtas.c can utilize it. It also changes the error field in the suspend me data structure to be an atomic type, since it is set

[PATCH 06/18] spufs: use llseek in all file operations

2010-07-07 Thread Arnd Bergmann
The default for llseek is changing, so we need explicit operations everywhere. Signed-off-by: Arnd Bergmann Cc: Jeremy Kerr Cc: linuxppc-...@ozlabs.org --- arch/powerpc/platforms/cell/spufs/file.c | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/a

Re: [PATCH 1/2] edac: mpc85xx: Fix MPC85xx dependency

2010-07-07 Thread Andrew Morton
On Fri, 2 Jul 2010 16:41:11 +0400 Anton Vorontsov wrote: > Since commit 5753c082f66eca5be81f6bda85c1718c5eea6ada ("powerpc/85xx: > Kconfig cleanup"), there is no MPC85xx Kconfig symbol anymore, so the > driver became non-selectable. hm. 5753c082f66eca5be81f6bda85c1718c5eea6ada got merged into m

[PATCH 1/2] powerpc/crashdump: Fix issues with kexec and 36bit physical addr

2010-07-07 Thread Matthew McClintock
Fix sizes of variables so correct values are exported via /proc. Cast variable in comparison to avoid compiler error. Signed-off-by: Matthew McClintock --- arch/powerpc/kernel/crash_dump.c|4 ++-- arch/powerpc/kernel/machine_kexec.c |4 +++- 2 files changed, 5 insertions(+), 3 deleti

[PATCH 2/2] powerpc/booke: Enable building of a crash dump kernel

2010-07-07 Thread Matthew McClintock
Enable building crash dump kernel as well as expose the flat device tree for kexec to update to boot the crash kernel --- arch/powerpc/Kconfig |2 +- arch/powerpc/kernel/prom.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/K

Problems mapping OCM memory from 460EX to user space

2010-07-07 Thread ayman
I've got an issue with the new rev B 460EX processors that I am trying to isolate. (Rev A worked fine). In order to do that, I am trying to modify my driver to map the OCM (on chip memory) from the 460EX to user space so that the rest of the application and codebase don't really know the differ

Re: kernel boot stuck at udbg_putc_cpm()

2010-07-07 Thread Scott Wood
On Tue, 6 Jul 2010 17:17:16 -0700 Shawn Jin wrote: > >> That was it. The value @0xfa203bf8 is 0x2001. The kernel > >> certainly moved forward till it stuck at the new place > >> cpm_uart_initbd() as shown below. > > > > Do you get any output from the serial port?  I'd have expected > > someth

[PATCH] mpc52xx_gpio: support MPC52xx simple interrupt GPIO

2010-07-07 Thread Roman Fietze
Hello Sascha, hello List Members, I could not find a way to access the MPC5200(B) simple interrupt pins using the 52xx platform GPIO driver. So I added the simple interrupt pins when the mpc5200-gpio is probed. Is there something I overlooked? If not, here's the patch. >From 749b58686384275d253e

Re: [PATCH V5] powerpc/mpc512x: Add gpio driver

2010-07-07 Thread Peter Korsgaard
> "Anatolij" == Anatolij Gustschin writes: Hi, Old mail, I know .. Anatolij> From: Matthias Fuchs Anatolij> This patch adds a gpio driver for MPC512X PowerPCs. Anatolij> It has been tested on our CAN-CBX-CPU5201 module that Anatolij> uses a MPC5121 CPU. This platform comes with a coup

[PATCH] kexec/ppc64: Switch to a static PACA on the way out

2010-07-07 Thread Matt Evans
With dynamic PACAs, the kexecing CPU's PACA won't lie within the kernel static data and there is a chance that something may stomp it when preparing to kexec. This patch switches this final CPU to a static PACA just before we pull the switch. Signed-off-by: Matt Evans --- arch/powerpc/kernel/ma