Re: [PATCH 1/2] qemu platform, v2

2007-09-30 Thread David Gibson
On Fri, Sep 28, 2007 at 06:53:28PM +0200, Segher Boessenkool wrote: > >> I'd be following this more closely if compiling a device tree didn't > >> currently > >> require an external utility (dtc or some such) that doesn't come with > >> the > >> Linux kernel. No other target platform I've built

Re: [PATCHv2 0/4] Xilinx Virtex support for arch/powerpc

2007-09-30 Thread Grant Likely
On 9/30/07, Josh Boyer <[EMAIL PROTECTED]> wrote: > On Sun, 2007-09-30 at 16:20 -0600, Grant Likely wrote: > > 2nd version of Xilinx Virtex patches. I've addressed all the comments > > that I've received so far. This series is just the arch/powerpc support > > code. I'll send the device driver c

Re: [PATCHv2 0/4] Xilinx Virtex support for arch/powerpc

2007-09-30 Thread Josh Boyer
On Sun, 2007-09-30 at 16:20 -0600, Grant Likely wrote: > 2nd version of Xilinx Virtex patches. I've addressed all the comments > that I've received so far. This series is just the arch/powerpc support > code. I'll send the device driver changes in a seperate series for > each driver. Overall lo

Re: [PATCH 0/3] Bug fixes to Virtex support in arch/ppc

2007-09-30 Thread Josh Boyer
On Sun, 2007-09-30 at 15:46 -0600, Grant Likely wrote: > Josh, > > Here are some small bug fixes to arch/ppc. They are all pretty trivial, > and I think they should go in for 2.6.24. If there are no problems with > them, can you please merge them into your tree and ask paulus to pull > them? Ye

Re: [PATCH v2 2/6] Sysace: Use the established platform bus api

2007-09-30 Thread Grant Likely
On 9/30/07, Christoph Hellwig <[EMAIL PROTECTED]> wrote: > On Sun, Sep 30, 2007 at 04:57:09PM -0600, Grant Likely wrote: > > + if ((rc = platform_driver_register(&ace_platform_driver)) != 0) > > + goto err_plat; > > rc = platform_driver_register(&ace_platform_driver); >

Re: [PATCH v2 2/6] Sysace: Use the established platform bus api

2007-09-30 Thread Christoph Hellwig
On Sun, Sep 30, 2007 at 04:57:09PM -0600, Grant Likely wrote: > + if ((rc = platform_driver_register(&ace_platform_driver)) != 0) > + goto err_plat; rc = platform_driver_register(&ace_platform_driver); if (rc) goto err_plat; please. > + err_p

[PATCH v2 4/6] Sysace: minor rework and cleanup changes

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Miscellanious rework to the sysace driver; Not critical, but makes the subsequent addition of the of_platform bus binding a wee bit cleaner Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/block/xsysace.c | 12 +--- 1 files changed, 9

[PATCH v2 6/6] Sysace: Add of_platform_bus binding

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> The of_platform bus binding is needed to make the device driver usable under arch/powerpc. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/block/xsysace.c | 89 +++ 1 files changed, 89 insertions(+)

[PATCH v2 5/6] Sysace: Move IRQ handler registration to occur after FSM is initialized

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> The FSM needs to be initialized before it is safe to call the ISR Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/block/xsysace.c | 21 ++--- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/block/xsysa

[PATCH v2 0/6] SystemACE: rework and of_platform bus binding patches

2007-09-30 Thread Grant Likely
Here is a set of rework patches on the Xilinx SystemACE driver which ends in the addition of an of_platform bus binding. The of_platform bus binding is needed to use the driver from arch/powerpc. SystemACE is most commonly used in Xilinx Virtex system (ppc405). Jens, I'm hoping I can get these c

[PATCH v2 2/6] Sysace: Use the established platform bus api

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> SystemACE uses the platform bus binding, but it doesn't use the platform bus API. Move to using the correct API for consistency sake and future proofing against platform bus changes. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/block/xsysac

[PATCH v2 3/6] Sysace: Move structure allocation from bus binding into common code

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Split the determination of device registers/irqs/etc from the actual allocation and initialization of the device structure. This cleans up the code a bit in preparation to add an of_platform bus binding Signed-off-by: Grant Likely <[EMAIL PROTECTED]> ---

[PATCH v2 1/6] Add Xilinx SystemACE entry to maintainers

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> I'm the author of the SystemACE driver Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8f80068..cb6323e 100644 --- a/MAINTAINERS

[PATCH 2 6/7] Uartlite: Add of-platform-bus binding

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Add of_platform bus binding so this driver can be used with arch/powerpc Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/serial/uartlite.c | 101 + 1 files changed, 93 insertions(+), 8 deletions(-)

[PATCH 2 2/7] Uartlite: change name of ports to ulite_ports

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Changed to match naming convention used in the rest of the module Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/serial/uartlite.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/serial/uartlite.c b/dr

[PATCH 2 7/7] Uartlite: Let the console be initialized earlier

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> By configuring it earlier we get console output sooner which is helpful for debugging when the kernel crashes before the serial drivers are initialized. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/serial/uartlite.c | 41 ++

[PATCH 2 5/7] Uartlite: Comment block tidy

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Tidy the comments to split the driver into logical section; the main driver, the console driver, the platform bus binding, and module initialization and teardown. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/serial/uartlite.c | 43

[PATCH 2 4/7] Uartlite: Separate the bus binding from the driver proper

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Separate the bus binding code from the driver structure allocation code in preparation for adding the of_platform_bus bindings needed by arch/powerpc Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/serial/uartlite.c | 99 +

[PATCH 2 3/7] Uartlite: Add macro for uartlite device name

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Changed to make the following OF_platform bus binding patch a wee bit cleaner Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/serial/uartlite.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/serial/uartlite

[PATCH 2 1/7] Uartlite: Fix reg io to access documented register size

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> The Uartlite data sheet defines the registers as 32 bit wide. This patch changes the register access to use 32 bit transfers and eliminates the magic +3 offset which is currently required to make the device work. Signed-off-by: Grant Likely <[EMAIL PROTECTE

[PATCHv2 4/4] Virtex: Add generic Xilinx Virtex board support

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Adds support for generic Xilinx Virtex boards. Any board which specifies "xilinx,virtex" in the compatible property will make use of this board support. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- arch/powerpc/platforms/40x/Makefile |1 + arch

[PATCHv2 2/4] Virtex: Add Kconfig macros for Xilinx Virtex board support

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Add the needed kconfig macros to enable Xilinx Virtex board support Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- arch/powerpc/platforms/40x/Kconfig | 38 1 files changed, 25 insertions(+), 13 deletions(-) diff

[PATCHv2 3/4] Virtex: add xilinx interrupt controller driver

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Adds support for the Xilinx opb-intc interrupt controller Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/Makefile |1 arch/powerpc/sysdev/xilinx_intc.c | 151 + include/asm-powerpc/xil

[PATCHv2 1/4] Virtex: Add uartlite bootwrapper driver

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Allows the bootwrapper to use the uartlite device for console output. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile |2 + arch/powerpc/boot/ops.h |1 + arch/powerpc/boot/serial.c |2 + arch/powerpc/boot

[PATCHv2 0/4] Xilinx Virtex support for arch/powerpc

2007-09-30 Thread Grant Likely
2nd version of Xilinx Virtex patches. I've addressed all the comments that I've received so far. This series is just the arch/powerpc support code. I'll send the device driver changes in a seperate series for each driver. Cheers, g. arch/powerpc/boot/Makefile |2 +- arch/powerpc/

Re: [PATCH 0/3] Bug fixes to Virtex support in arch/ppc

2007-09-30 Thread Grant Likely
On 9/30/07, Grant Likely <[EMAIL PROTECTED]> wrote: > Josh, > > Here are some small bug fixes to arch/ppc. They are all pretty trivial, > and I think they should go in for 2.6.24. If there are no problems with > them, can you please merge them into your tree and ask paulus to pull > them? I've a

[PATCH 3/3] Setup default eth addr in embed_config for Xilinx Virtex platforms

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> This simply adds the boilerplate default Ethernet address to embed_config for the Xilinx platform (bug fix). Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- arch/ppc/boot/simple/embed_config.c |8 1 files changed, 8 insertions(+), 0 deleti

[PATCH 1/3] Uartlite: Flush RX fifo in bootwrapper

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Flush the uartlite RX fifo so that characters typed before entry into the zImage wrapper do not muck up the kernel command line. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- arch/ppc/boot/simple/misc-embedded.c |4 +++- arch/ppc/boot/simple/uart

[PATCH 0/3] Bug fixes to Virtex support in arch/ppc

2007-09-30 Thread Grant Likely
Josh, Here are some small bug fixes to arch/ppc. They are all pretty trivial, and I think they should go in for 2.6.24. If there are no problems with them, can you please merge them into your tree and ask paulus to pull them? In particular, I'd like to see the xilinxfb patch go in ASAP. I've g

[PATCH 2/3] XilinxFB: Move xilinxfb_platform_data definition to a shared header file

2007-09-30 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> XilnixFB can be used by more than just arch/ppc. Move the data structure definition into include/linux/xilinxfb.h so it can be used by microblaze and arch/powerpc Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- arch/ppc/syslib/virtex_devices.h |8

[PATCH] fix xics set_affinity code

2007-09-30 Thread Anton Blanchard
On a POWER6 machine running 2.6.23-rc8 I sometimes see the following error: xics_set_affinity: No online cpus in the mask ,,,0001 for irq 20 In a desperate attempt to get a changelog entry in 2.6.23, I took a look into it. It turns out we are passing a real and not

Re: [PATCH 3/7] Celleb: Support for Power/Reset buttons

2007-09-30 Thread Arnd Bergmann
On Sunday 30 September 2007, you wrote: > > > kernel_restart() seems appropriate for that. > > Now a comment to this one says: > >  *  This is not safe to call in interrupt context. > > and AFAIU, this is called from an interrupt. Am I missing anything or > would this be wrong to call kern

Re: [PATCH 3/7] Celleb: Support for Power/Reset buttons

2007-09-30 Thread Guennadi Liakhovetski
On Wed, 26 Sep 2007, Arnd Bergmann wrote: > On Wednesday 26 September 2007, Ishizaki Kou wrote: > > > +static irqreturn_t beat_power_event(int virq, void *arg) > > +{ > > + printk(KERN_DEBUG "Beat: power button pressed\n"); > > + beat_pm_poweroff_flag = 1; > > + if (kill_cad_pid(SIGINT, 1))

Re: Powerbook shuts down hard when hot, patch found

2007-09-30 Thread Michael Buesch
On Sunday 30 September 2007 12:13:36 Michael Buesch wrote: > On Sunday 30 September 2007 00:49:05 Benjamin Herrenschmidt wrote: > > Well, it's possible that they have a too weak pull-up resistor on those > > lines, and thus when asserted to 0, a significant current goes through > > causing the whol

Re: Powerbook shuts down hard when hot, patch found

2007-09-30 Thread Michael Buesch
On Sunday 30 September 2007 00:49:05 Benjamin Herrenschmidt wrote: > Well, it's possible that they have a too weak pull-up resistor on those > lines, and thus when asserted to 0, a significant current goes through > causing the whole thing to heat up. That heat added to the residual heat > of a hot

Re: 2.6.23-rc8-mm2 - PowerPC link failure at arch/powerpc/kernel/head_64.o

2007-09-30 Thread Kamalesh Babulal
Kamalesh Babulal wrote: > Hi Andrew, > > The compilation with the cross compiler for the PowerPC-405 on the powerbox > fails at linking > > LD init/built-in.o > LD .tmp_vmlinux1 > ld: arch/powerpc/kernel/head_64.o(.text+0x80c8): sibling call optimization to > `.text.init.refok' doe