Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-14 Thread Scott Wood
On Mon, Oct 13, 2008 at 02:01:55PM +0200, Joakim Tjernlund wrote: Secondly i2c, I have this in my platform driver: static struct i2c_board_info __initdata tmcu_i2c_devices[] = { { I2C_BOARD_INFO(rtc-ds1307, 0x68), .type = ds1337, }, }; int __init

[PATCH] powerpc/chrp: Fix detection of Python PCI host bridge on IBM CHRPs

2008-10-14 Thread Benjamin Herrenschmidt
The detection of the IBM Python PCI host bridge on IBM CHRP machines such as old RS6000 was broken when we changed of_device_is_compatible() from strncasecmp to strcasecmp (dropped the n variant) due to the way IBM encodes the chip version. We fix that by instead doing a match on the model

Re: [RFC 1/3] hvc_console: rework setup to replace irq functions with callbacks

2008-10-14 Thread Christian Borntraeger
Am Dienstag, 14. Oktober 2008 schrieb Benjamin Herrenschmidt: Hmmm. Can you try if this patch fixes the lockdep trace? Yup, the patch fixes it, I'll commit it via the powerpc.git tree if you don't have any objection. Sure, go ahead. ___

[PATCH] powerpc: Fix CHRP PCI config access for indirect_pci

2008-10-14 Thread Benjamin Herrenschmidt
Recently, indirect_pci was changed to test if the bus number requested is the one hanging straight off the PHB, then it substitutes the bus number with another one contained in a new self_busno field of the pci_controller structure. However, this breaks CHRP which didn't initialize this new

Re: [patch] powerpc: implement optimised mutex fastpaths

2008-10-14 Thread Nick Piggin
On Mon, Oct 13, 2008 at 11:20:20AM -0500, Scott Wood wrote: On Mon, Oct 13, 2008 at 11:15:47AM -0500, Scott Wood wrote: On Sun, Oct 12, 2008 at 07:47:32AM +0200, Nick Piggin wrote: +static inline int __mutex_cmpxchg_lock(atomic_t *v, int old, int new) +{ + int t; + + __asm__

Re: [RFC 1/3] hvc_console: rework setup to replace irq functions with callbacks

2008-10-14 Thread Benjamin Herrenschmidt
On Tue, 2008-10-14 at 08:42 +0200, Christian Borntraeger wrote: Am Dienstag, 14. Oktober 2008 schrieb Benjamin Herrenschmidt: Hmmm. Can you try if this patch fixes the lockdep trace? Yup, the patch fixes it, I'll commit it via the powerpc.git tree if you don't have any objection.

Re: [patch] mutex: optimise generic mutex implementations

2008-10-14 Thread Benjamin Herrenschmidt
On Sun, 2008-10-12 at 07:46 +0200, Nick Piggin wrote: Speed up generic mutex implementations. - atomic operations which both modify the variable and return something imply full smp memory barriers before and after the memory operations involved (failing atomic_cmpxchg, atomic_add_unless,

[RFC PATCH 1/5] hvc_console: Adding hangup notifier

2008-10-14 Thread Hendrik Brueckner
From: Hendrik Brueckner [EMAIL PROTECTED] I have added a hangup notifier that can be used by hvc console backends to handle a tty hangup. The default irq hangup notifier calls the notifier_del_irq() for compatibility. Acked-by: Christian Borntraeger [EMAIL PROTECTED] Signed-off-by: Hendrik

Re: gigE 2.6.27 USB

2008-10-14 Thread Kevin Diggs
Kevin Diggs wrote: Hi, I managed to wrestle my gigE to the ground and get it to boot 2.6.27. I have, however, noticed that some messages are showing up in dmesg. There are alot of them. They are continuous. They appear to come from drivers/usb/core/hub.c:2916. It looks like they come in

[RFC][USB] powerpc: Workaround for the PPC440EPX USBH_23 errata [take 2]

2008-10-14 Thread Vitaly Bordug
A published errata for ppc440epx states, that when running Linux with both EHCI and OHCI modules loaded, the EHCI module experiences a fatal error when a high-speed device is connected to the USB2.0, and functions normally if OHCI module is not loaded. There used to be recommendation to use only

[OT] Re: Floating inputs on unused GPIO pins

2008-10-14 Thread Gabriel Paubert
[Marked off-topic because it is exclusively hardware related] On Mon, Oct 13, 2008 at 08:12:02AM -0500, Bill Gatliff wrote: Laurent Pinchart wrote: There are no internal pull-up or pull-down resistors on the MPC8248 GPIO pins. I know our hardware engineer has a valid point

Re: [BUILD_FAILURE] 2.6.27-git2 - allyesconfig on powerpc selectsCONFIG_INTEL_IOATDMA=y

2008-10-14 Thread Adrian Bunk
On Tue, Oct 14, 2008 at 11:12:30AM +0200, Brice Goglin wrote: Adrian Bunk wrote: But considering that igb is in a similar situation it would be nice if all 3 drivers would handle it the same way. Jesse, What do you think of the below patch? I am not very familiar with Kconfig, but

Re: [PATCH V2 4/4] POWERPC: Merge 32 and 64-bit dma code

2008-10-14 Thread Benjamin Herrenschmidt
On Tue, 2008-10-14 at 06:24 -0400, Josh Boyer wrote: I pointed out to Stephen that kisskb.ellerman.id.au hasn't been updating.. there is a chrp32 defconfig in there that would normally catch something like this. Except if kissb catches it, it's already committed in tree. Better

Re: [PATCH V2 4/4] POWERPC: Merge 32 and 64-bit dma code

2008-10-14 Thread Josh Boyer
On Mon, 13 Oct 2008 20:52:25 -0500 Kumar Gala [EMAIL PROTECTED] wrote: On Oct 13, 2008, at 6:30 PM, Benjamin Herrenschmidt wrote: On Mon, 2008-10-13 at 13:22 -0500, Kumar Gala wrote: I don't think it matters much when it gets fixed, pre or post -rc1. But it should probably get fixed.

Re: [RFC][USB] powerpc: Workaround for the PPC440EPX USBH_23 errata [take 2]

2008-10-14 Thread Alan Stern
On Tue, 14 Oct 2008, Vitaly Bordug wrote: A published errata for ppc440epx states, that when running Linux with both EHCI and OHCI modules loaded, the EHCI module experiences a fatal error when a high-speed device is connected to the USB2.0, and functions normally if OHCI module is not

Re: [PATCH]IB/ehca:reject dynamic memory add/remove

2008-10-14 Thread Dave Hansen
On Tue, 2008-10-14 at 14:23 +0200, Stefan Roscher wrote: On Monday 13 October 2008 07:09:26 pm Dave Hansen wrote: On Mon, 2008-10-13 at 13:10 +0200, Stefan Roscher wrote: Since the ehca device driver does not support dynamic memory add and remove operations, the driver must explicitly

Re: [RFC][USB] powerpc: Workaround for the PPC440EPX USBH_23 errata [take 2]

2008-10-14 Thread Vitaly Bordug
Have you tried building this on a non-PPC440EPx system? It looks like this patch would cause a compile error. yes, correct, last minute fix didn't make it into the patch, sorry about that. Will refresh, test and resubmit. -Vitaly ___ Linuxppc-dev

RE: [BUILD_FAILURE] 2.6.27-git2 - allyesconfig on powerpc selectsCONFIG_INTEL_IOATDMA=y

2008-10-14 Thread Brandeburg, Jesse
Brice Goglin wrote: Adrian Bunk wrote: But considering that igb is in a similar situation it would be nice if all 3 drivers would handle it the same way. Jesse, What do you think of the below patch? Seems like a much better solution. I can have Jeff Kirsher work on the equivalent

Re: [PATCH] Add new framebuffer driver for Fujitsu MB862xx GDCs

2008-10-14 Thread Matteo Fortini
Carminefb driver, though, supports 800x600 resolution. BTW, I tried this patch and I get wrong colors on a patched DirectFB which is changing the endianness on the fly. Is this driver already taking care of this? Regards, M Anton Vorontsov ha scritto: On Tue, Oct 14, 2008 at 03:50:52PM

[RFC PATCH 2/5] hvc_console: Add tty driver flag TTY_DRIVER_RESET_TERMIOS

2008-10-14 Thread Hendrik Brueckner
From: Hendrik Brueckner [EMAIL PROTECTED] After a tty hangup() or close() operation, processes might not reset the termio settings to a sane state. In order to reset the termios to its default settings the tty driver flag TTY_DRIVER_RESET_TERMIOS has been added. TTY driver flag description from

Re: [RFC PATCH 4/5] hvc_console: Add tty window resizing

2008-10-14 Thread Hendrik Brueckner
On Tue, Oct 14, 2008 at 10:44:28AM +0100, Alan Cox wrote: + hp = container_of(work, struct hvc_struct, tty_resize); + if (!hp || !hp-tty) + return; What locks hp-tty here, it can go NULL after the test on a hangup it seems ? You are right. Thanks. See tty_do_resize() for

Re: [PROBLEM] Soft lockup on Linux 2.6.27, 2 patches, Cell/PPC64

2008-10-14 Thread Geert Uytterhoeven
On Mon, 13 Oct 2008, Geert Uytterhoeven wrote: On Sun, 12 Oct 2008, Aaron Tokhy wrote: I recently built 2.6.27 with these patches on my PS3. http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-linux-patches/ps3-wip/ps3vram-driver.patch

Re: [PATCH] Add new framebuffer driver for Fujitsu MB862xx GDCs

2008-10-14 Thread Anton Vorontsov
On Tue, Oct 14, 2008 at 07:10:55PM +0200, Matteo Fortini wrote: Carminefb driver, though, supports 800x600 resolution. BTW, I tried this patch and I get wrong colors on a patched DirectFB which is changing the endianness on the fly. Is this driver already taking care of this? Yup. But

Re: [BUILD_FAILURE] 2.6.27-git2 - allyesconfig on powerpc selectsCONFIG_INTEL_IOATDMA=y

2008-10-14 Thread Adrian Bunk
On Tue, Oct 14, 2008 at 09:10:33AM -0700, Brandeburg, Jesse wrote: Brice Goglin wrote: Adrian Bunk wrote: But considering that igb is in a similar situation it would be nice if all 3 drivers would handle it the same way. Jesse, What do you think of the below patch? Seems like a

[PATCH] [POWERPC] unsigned speed cannot be negative

2008-10-14 Thread roel kluin
unsigned speed cannot be negative Signed-off-by: Roel Kluin [EMAIL PROTECTED] --- N.B. It could be possible that a different fix is needed. diff --git a/arch/powerpc/kernel/udbg_16550.c b/arch/powerpc/kernel/udbg_16550.c index cb01ebc..7b7da8c 100644 --- a/arch/powerpc/kernel/udbg_16550.c +++

Re: [PATCH]IB/ehca:reject dynamic memory add/remove

2008-10-14 Thread Dave Hansen
On Tue, 2008-10-14 at 14:23 +0200, Stefan Roscher wrote: On Monday 13 October 2008 07:09:26 pm Dave Hansen wrote: On Mon, 2008-10-13 at 13:10 +0200, Stefan Roscher wrote: Since the ehca device driver does not support dynamic memory add and remove operations, the driver must explicitly

Re: [PATCH] Add new framebuffer driver for Fujitsu MB862xx GDCs

2008-10-14 Thread Anton Vorontsov
On Tue, Oct 14, 2008 at 03:50:52PM +, Dmitry Baryshkov wrote: Anatolij Gustschin wrote: This patch adds framebuffer driver for Fujitsu Carmine/Coral-P(A)/Lime graphics controllers. Lime GDC support is known to work on PPC440EPx based lwmon5 and MPC8544E based socrates embedded boards,

[PATCH] Add new framebuffer driver for Fujitsu MB862xx GDCs

2008-10-14 Thread Anatolij Gustschin
This patch adds framebuffer driver for Fujitsu Carmine/Coral-P(A)/Lime graphics controllers. Lime GDC support is known to work on PPC440EPx based lwmon5 and MPC8544E based socrates embedded boards, both equipped with Lime GDC. Carmine/Coral-P PCI GDC support is known to work on PPC440EPx based

Re: [BUILD_FAILURE] 2.6.27-git2 - allyesconfig on powerpc selectsCONFIG_INTEL_IOATDMA=y

2008-10-14 Thread Brice Goglin
Adrian Bunk wrote: But considering that igb is in a similar situation it would be nice if all 3 drivers would handle it the same way. Jesse, What do you think of the below patch? I am not very familiar with Kconfig, but it seems to solve the problem. If a Kconfig guru could double-check...

Re: [PATCH] powerpc: enforce a non-spe kernel build even on broken compilers

2008-10-14 Thread Nate Case
On Mon, 2008-09-01 at 16:23 +0200, Sebastian Siewior wrote: those two are requried on my fresh gcc 4.3.1 Signed-off-by: Thiemo Seufer [EMAIL PROTECTED] Signed-off-by: Sebastian Siewior [EMAIL PROTECTED] --- Not sure if this is intendent or a gcc bug but with -mno-spe the spe opcodes were

Re: [2.6.26 Power5 64bit] oops in ._spin_unlock_irqrestore

2008-10-14 Thread Andrew Morton
(cc's added) On Fri, 10 Oct 2008 16:06:23 +0200 Folkert van Heusden [EMAIL PROTECTED] wrote: Hi, While running my modrobe/rmmod script I got the following oops on a Linux LPAR on a Power5 system: [ 1867.960287] ipr: IBM Power RAID SCSI Device Driver version: 2.4.1 (April 24, 2007) [

Re: [RFC PATCH 2/5] hvc_console: Add tty driver flag TTY_DRIVER_RESET_TERMIOS

2008-10-14 Thread Alan Cox
On Tue, 14 Oct 2008 11:12:49 +0200 Hendrik Brueckner [EMAIL PROTECTED] wrote: From: Hendrik Brueckner [EMAIL PROTECTED] After a tty hangup() or close() operation, processes might not reset the termio settings to a sane state. That is the job of the getty task normally. pty is special as the

Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-14 Thread Joakim Tjernlund
On Tue, 2008-10-14 at 10:27 -0500, Scott Wood wrote: On Tue, Oct 14, 2008 at 09:55:31AM +0200, Joakim Tjernlund wrote: On Mon, 2008-10-13 at 14:03 -0500, Scott Wood wrote: Joakim Tjernlund wrote: Because all the kernel comments I can see still implies that this should work

Re: [PATCH 1/2] powerpc: don't pass unused regs around in head_.*.S

2008-10-14 Thread Sebastian Andrzej Siewior
* Benjamin Herrenschmidt | 2008-10-14 10:25:12 [+1100]: On Sun, 2008-10-12 at 16:08 +0200, Sebastian Andrzej Siewior wrote: From: Sebastian Andrzej Siewior [EMAIL PROTECTED] This looks like a relict from arch/ppc. machine_init() is accepting only two parameters (dtb, phys) and is using only

Re: [PATCH] Add new framebuffer driver for Fujitsu MB862xx GDCs

2008-10-14 Thread Dmitry Baryshkov
Anatolij Gustschin wrote: This patch adds framebuffer driver for Fujitsu Carmine/Coral-P(A)/Lime graphics controllers. Lime GDC support is known to work on PPC440EPx based lwmon5 and MPC8544E based socrates embedded boards, both equipped with Lime GDC. Carmine/Coral-P PCI GDC support is known

[RFC PATCH 3/5] hvc_console: Fix loop if put_char() returns 0

2008-10-14 Thread Hendrik Brueckner
From: Hendrik Brueckner [EMAIL PROTECTED] If put_char() routine of a hvc console backend returns 0, then the hvc console starts looping in the following scenarios: 1. hvc_console_print() If put_char() returns 0 then the while loop may loop forever. I have added the missing check

Re: [RFC PATCH 4/5] hvc_console: Add tty window resizing

2008-10-14 Thread Alan Cox
+ hp = container_of(work, struct hvc_struct, tty_resize); + if (!hp || !hp-tty) + return; What locks hp-tty here, it can go NULL after the test on a hangup it seems ? + * hvc_resize() - Update terminal window size information. + * @hp: HVC console pointer +

Re: Please pull 'next' branch of git://git.secretlab.ca/git/linux-2.6-mpc52xx

2008-10-14 Thread Wolfram Sang
Hello Grant, On Thu, Oct 09, 2008 at 02:02:41AM -0600, Grant Likely wrote: Wolfram Sang (1): powerpc/mpc5200: trivial printk-fixes in mpc52xx_common Thanks. What about these? :) http://oldpatchwork.ozlabs.org/linuxppc-embedded/patch?id=20188 (remove obsolete code from mpc52xx_phy)

[RFC PATCH 4/5] hvc_console: Add tty window resizing

2008-10-14 Thread Hendrik Brueckner
From: Hendrik Brueckner [EMAIL PROTECTED] The patch provides the hvc_resize() function to update the terminal window dimensions (struct winsize) for a specified hvc console. The function stores the new window size and schedules a function that finally updates the tty winsize and signals the

Re: pca9539 I2C gpio expander

2008-10-14 Thread Anton Vorontsov
On Tue, Oct 14, 2008 at 02:10:25PM -0400, Steven A. Falco wrote: I am attempting to use a pca9539 I2C gpio driver on a PPC440EPx board. The driver is drivers/gpio/pca953x.c. I've added an entry to the .dts file: IIC0: [EMAIL PROTECTED] { compatible = ibm,iic-440epx, ibm,iic;

Re: [PATCH] powerpc: enforce a non-spe kernel build even on broken compilers

2008-10-14 Thread Kumar Gala
On Sep 1, 2008, at 9:23 AM, Sebastian Siewior wrote: From: Thiemo Seufer [EMAIL PROTECTED] those two are requried on my fresh gcc 4.3.1 Signed-off-by: Thiemo Seufer [EMAIL PROTECTED] Signed-off-by: Sebastian Siewior [EMAIL PROTECTED] --- Not sure if this is intendent or a gcc bug but with

Re: [PATCH] Add new framebuffer driver for Fujitsu MB862xx GDCs

2008-10-14 Thread Anatolij Gustschin
Matteo Fortini wrote: Carminefb driver, though, supports 800x600 resolution. if you use this patch below diff --git a/drivers/video/mb862xx/mb862xxfb.c b/drivers/video/mb862xx/mb862xxfb.c index 26b66cb..904a111 100644 --- a/drivers/video/mb862xx/mb862xxfb.c +++

Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-14 Thread Scott Wood
On Tue, Oct 14, 2008 at 09:55:31AM +0200, Joakim Tjernlund wrote: On Mon, 2008-10-13 at 14:03 -0500, Scott Wood wrote: Joakim Tjernlund wrote: Because all the kernel comments I can see still implies that this should work Which kernel comments? The one already mentioned and in

[RFC PATCH 5/5] hvc_console: Remove __devexit annotation of hvc_remove()

2008-10-14 Thread Hendrik Brueckner
From: Hendrik Brueckner [EMAIL PROTECTED] Removed __devexit annotation of hvc_remove() to avoid a section mismatch if the backend initialization fails and hvc_remove() must be used to clean up allocated hvc structs (called in section __init or __devinit). Acked-by: Christian Borntraeger [EMAIL

[RFC PATCH 0/5] patches for a network-based hvc backend (s390)

2008-10-14 Thread Hendrik Brueckner
Hello, I work on a network-based hvc console backend for s390 that allows to get full-screen terminal access to z/VM guest machines. The solution consists of a HVC backend that provides the terminal interface; and a tool to connect to the terminal via a z/VM specific communication protocol. The

Re: [2.6.26 Power5 64bit] oops in ._spin_unlock_irqrestore

2008-10-14 Thread Folkert van Heusden
(cc's added) While running my modrobe/rmmod script I got the following oops on a Linux LPAR on a Power5 system: [ 1867.960287] ipr: IBM Power RAID SCSI Device Driver version: 2.4.1 (April 24, 2007) [ 1867.961133] ipr :c0:01.0: Found IOA with IRQ: 321 [ 1867.967519] ipr

Re: [PATCH] powerpc: enforce a non-spe kernel build even on broken compilers

2008-10-14 Thread Nate Case
On Tue, 2008-10-14 at 16:23 -0500, Kumar Gala wrote: Why does -mno-spe work? From my gcc-4.3 info pages: `-mspe=YES/NO' This option has been deprecated. Use `-mspe' and `-mno-spe' instead. +KBUILD_CFLAGS += $(call cc-option,-mabi=no-spe) is the -mabi=no-spe really

Re: [PATCH] powerpc: enforce a non-spe kernel build even on broken compilers

2008-10-14 Thread Sebastian Andrzej Siewior
* Kumar Gala | 2008-10-14 16:23:05 [-0500]: Not sure if this is intendent or a gcc bug but with -mno-spe the spe opcodes were not used floating point anymore but for 64bit save/restore for instance. what code is getting generated for you that is causing issue? Without the patch do_syslog() looks

Re: [PATCH V2 4/4] POWERPC: Merge 32 and 64-bit dma code

2008-10-14 Thread Becky Bruce
On Oct 14, 2008, at 7:05 AM, Benjamin Herrenschmidt wrote: On Tue, 2008-10-14 at 06:24 -0400, Josh Boyer wrote: I pointed out to Stephen that kisskb.ellerman.id.au hasn't been updating.. there is a chrp32 defconfig in there that would normally catch something like this. Except if kissb

[git pull] Please pull from powerpc.git next branch

2008-10-14 Thread Benjamin Herrenschmidt
Hi Linus ! Here's the powerpc main batch for 2.6.28. It's a bit late mostly due to both Paul and I being distracted by other things at the wrong time, and me trying to run some more tests ( fixing regressions) before sending it all to you. There's a bunch of stuff in there, most of it in

Re: performance: memcpy vs. __copy_tofrom_user

2008-10-14 Thread Matt Sealey
Scott Wood wrote: BTW, it's actually simpler than I originally described (I had implemented this years ago in the TimeSys kernel for x86 and some other arches that already use FP or similar resources for memcpy, but the memory was a little fuzzy); the FP restore code doesn't need to test

Re: [PATCH] powerpc: dtb and purgatory support for ppc32

2008-10-14 Thread Simon Horman
On Sun, Oct 12, 2008 at 03:39:55PM +0200, Sebastian Andrzej Siewior wrote: * Simon Horman | 2008-10-08 14:03:26 [+1100]: +#ifdef WITH_GAMECUBE +static int go_purgatory = 0; +#else +static int go_purgatory = 1; +#endif Can you just use WITH_GAMECUBE inside elf_ppc_load() and remove

[PATCH] powerpc: Silent SW timebase sync

2008-10-14 Thread Benjamin Herrenschmidt
When no HW method is provided to sync the timebase, linux uses a software algorithm. The code for that is very verbose using straight printk's without log level. A lot of this is mostly useless unless you want to debug the process, and we didn't have any problem with it for years anyway so this

[PATCH] edac/cell: Fix incorrect edac_mode in csrow causing oops

2008-10-14 Thread Benjamin Herrenschmidt
The cell_edac driver is setting the edac_mode field of the csrow's to an incorrect value, causing the sysfs show routine for that field to go out of an array bound and Oopsing the kernel when used. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- drivers/edac/cell_edac.c |2 +- 1

Re: gigE 2.6.27 USB

2008-10-14 Thread Benjamin Herrenschmidt
On Tue, 2008-10-14 at 03:52 -0700, Kevin Diggs wrote: Kevin Diggs wrote: Hi, I managed to wrestle my gigE to the ground and get it to boot 2.6.27. I have, however, noticed that some messages are showing up in dmesg. There are alot of them. They are continuous. They appear to come

Re: [PROBLEM] Soft lockup on Linux 2.6.27, 2 patches, Cell/PPC64

2008-10-14 Thread Benjamin Herrenschmidt
On Tue, 2008-10-14 at 11:32 +0200, Geert Uytterhoeven wrote: which points again to smp_call_function_single... Yup, it doesn't bring more information. At this stage, your 'other' CPU is stuck with interrupts disabled. Hard to tell what's happening without some HW assist. Do you have ways to