sfx.c driver build failure

2008-07-25 Thread Benjamin Herrenschmidt
Hi Michael ! The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error: /home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function ‘efx_probe_interrupts’:

[PATCH] Wireup new syscalls

2008-07-25 Thread Tony Breeds
signalfd4, eventfd2, epoll_create1, dup3, pipe2 and inotify_init1 Signed-off-by: Tony Breeds [EMAIL PROTECTED] --- Tested on POWER6. include/asm-powerpc/syscalls.h |1 + include/asm-powerpc/systbl.h |6 ++ include/asm-powerpc/unistd.h |8 +++- 3 files changed, 14

Re: sfx.c driver build failure

2008-07-25 Thread Stephen Rothwell
On Fri, 25 Jul 2008 16:15:59 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error: /home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function

Re: sfx.c driver build failure

2008-07-25 Thread Ingo Molnar
* Stephen Rothwell [EMAIL PROTECTED] wrote: On Fri, 25 Jul 2008 16:15:59 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error:

[PATCH v3 0/4 REPOST] OF infrastructure for SPI devices

2008-07-25 Thread Grant Likely
I don't know what to do with these patches. I'd really like to see them in .27, and now that akpm has cleared his queue, the prerequisite patch has been merged so they are ready to go in. However, even though there has been favourable reception on the SPI and linuxppc lists for these changes I

[PATCH v3 1/4] of: adapt of_find_i2c_driver() to be usable by SPI also

2008-07-25 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] SPI has a similar problem as I2C in that it needs to determine an appropriate modalias value for each device node. This patch adapts the of_i2c of_find_i2c_driver() function to be usable by of_spi also. Signed-off-by: Grant Likely [EMAIL PROTECTED] ---

[PATCH v3 2/4] spi: split up spi_new_device() to allow two stage registration.

2008-07-25 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] spi_new_device() allocates and registers an spi device all in one swoop. If the driver needs to add extra data to the spi_device before it is registered, then this causes problems. This patch splits the allocation and registration portions of code out of

[PATCH v3 3/4] spi: Add OF binding support for SPI busses

2008-07-25 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] This patch adds support for populating an SPI bus based on data in the OF device tree. This is useful for powerpc platforms which use the device tree instead of discrete code for describing platform layout. Signed-off-by: Grant Likely [EMAIL PROTECTED] ---

[PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Wolfgang Grandegger
The I2C driver for the MPC currently uses a fixed speed hard-coded into the driver. This patch adds the FDT properties fdr and dfsrr for the corresponding I2C registers to make the speed configurable via FDT, e.g.: [EMAIL PROTECTED] { compatible = fsl-i2c; reg = 0x3100 0x100;

[PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx

2008-07-25 Thread Wolfgang Grandegger
Since recent modifications to the MPC I2C code, the MPC I2C buses are not found any more. This patch fixes the problem by adding proper OF bus ids. Signed-off-by: Wolfgang Grandegger [EMAIL PROTECTED] --- arch/powerpc/platforms/85xx/tqm85xx.c |6 +++--- 1 file changed, 3 insertions(+), 3

Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless

2008-07-25 Thread Peter Zijlstra
On Thu, 2008-07-24 at 14:18 +0200, Sebastien Dugue wrote: On Thu, 24 Jul 2008 21:11:34 +1000 Nick Piggin [EMAIL PROTECTED] wrote: On Thursday 24 July 2008 20:50, Sebastien Dugue wrote: From: Sebastien Dugue [EMAIL PROTECTED] Date: Tue, 22 Jul 2008 11:56:41 +0200 Subject: [PATCH][RT]

Re: sfx.c driver build failure

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 08:35 +0100, Michael Brown wrote: On Fri, 25 Jul 2008, Benjamin Herrenschmidt wrote: The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error:

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

2008-07-25 Thread Benjamin Herrenschmidt
Hi Linus ! Here's what should be the last batch of 'features' for powerpc for this merge window, unless I missed something. The binfmt_elf change is the one discussed earlier, acked by Andrew, just slightly rebased on top of another binfmt_elf patch that went in in the meantime.

Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 09:49 +0200, Peter Zijlstra wrote: The only advantage of the concurrent radix tree over this model is that it can potentially do multiple modification operations at the same time. Yup, we do not need that for the irq revmap... concurrent lookup is all we need. Cheers,

Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless

2008-07-25 Thread Sebastien Dugue
Hi Peter, On Fri, 25 Jul 2008 09:49:37 +0200 Peter Zijlstra [EMAIL PROTECTED] wrote: On Thu, 2008-07-24 at 14:18 +0200, Sebastien Dugue wrote: On Thu, 24 Jul 2008 21:11:34 +1000 Nick Piggin [EMAIL PROTECTED] wrote: On Thursday 24 July 2008 20:50, Sebastien Dugue wrote: From:

Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless

2008-07-25 Thread Sebastien Dugue
On Fri, 25 Jul 2008 18:27:20 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 09:49 +0200, Peter Zijlstra wrote: The only advantage of the concurrent radix tree over this model is that it can potentially do multiple modification operations at the same time.

Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless

2008-07-25 Thread Sebastien Dugue
On Fri, 25 Jul 2008 18:40:21 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 10:36 +0200, Sebastien Dugue wrote: On Fri, 25 Jul 2008 18:27:20 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 09:49 +0200, Peter Zijlstra wrote:

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Jochen Friedrich
Hi Wolfgang, The I2C driver for the MPC currently uses a fixed speed hard-coded into the driver. This patch adds the FDT properties fdr and dfsrr for the corresponding I2C registers to make the speed configurable via FDT, e.g.: [EMAIL PROTECTED] { compatible = fsl-i2c;

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Wolfgang Grandegger
Jochen Friedrich wrote: Hi Wolfgang, The I2C driver for the MPC currently uses a fixed speed hard-coded into the driver. This patch adds the FDT properties fdr and dfsrr for the corresponding I2C registers to make the speed configurable via FDT, e.g.: [EMAIL PROTECTED] {

Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 10:36 +0200, Sebastien Dugue wrote: On Fri, 25 Jul 2008 18:27:20 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 09:49 +0200, Peter Zijlstra wrote: The only advantage of the concurrent radix tree over this model is that it can

Re: sfx.c driver build failure

2008-07-25 Thread Michael Brown
On Fri, 25 Jul 2008, Benjamin Herrenschmidt wrote: The sfx driver (which happens to be part of some of our test configs) fails to build in current Linus tree on powerpc with this error: /home/benh/kernels/linux-powerpc/drivers/net/sfc/efx.c: In function ÿÿefx_probe_interruptsÿÿ:

[spi][mpc52xx][PATCH] Fix mpc52xx_psc_spi master driver

2008-07-25 Thread Luotao Fu
Hi, this is a fix for full duplex transfer mode on the mpc52xx_psc_spi driver. Details see the patch header. Tested on a mpc5200b board. Cheers Luotao fu -- Dipl.-Ing. Luotao Fu | Phone: +49-5121-206917-3 Pengutronix - Linux Solutions for Science and Industry Entwicklungszentrum Nord

Re: lockdep badness

2008-07-25 Thread Sebastien Dugue
Hi, On Thu, 24 Jul 2008 14:23:00 -0500 Nathan Lynch [EMAIL PROTECTED] wrote: I'm seeing warnings from the lockdep code itself in recent kernels on a Power6 blade (v2.6.26 and benh's -next branch). Something to do with powerpc's lazy interrupt-disabling, perhaps? A couple of stack

Re: [spi-devel-general] [spi][mpc52xx][PATCH] Fix mpc52xx_psc_spi master driver

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 7:43 AM, Luotao Fu [EMAIL PROTECTED] wrote: Hi, this is a fix for full duplex transfer mode on the mpc52xx_psc_spi driver. Details see the patch header. Tested on a mpc5200b board. Cheers Luotao fu Looks pretty good to me. I'll pick this up. For future patches,

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 5:04 AM, Wolfgang Grandegger [EMAIL PROTECTED] wrote: Jochen Friedrich wrote: Hi Wolfgang, The I2C driver for the MPC currently uses a fixed speed hard-coded into the driver. This patch adds the FDT properties fdr and dfsrr for the corresponding I2C registers to make

Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 3:44 AM, Wolfgang Grandegger [EMAIL PROTECTED] wrote: Since recent modifications to the MPC I2C code, the MPC I2C buses are not found any more. This patch fixes the problem by adding proper OF bus ids. Signed-off-by: Wolfgang Grandegger [EMAIL PROTECTED] ---

Re: [PATCH / RFC] net: don't grab a mutex within a timer context in gianfar

2008-07-25 Thread Nate Case
On Wed, 2008-07-23 at 22:03 +0200, Sebastian Siewior wrote: I moved it into a workqueue, this is what tg3 does. I would convert the other three drivers unless $dude suggests a better method or somebody else takes care drivers/net/gianfar.c | 22 ++

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Timur Tabi
On Fri, Jul 25, 2008 at 8:12 AM, Grant Likely [EMAIL PROTECTED] wrote: Yes, please use something like clock-frequency or current-speed and do the calculation. Ditto. I already wrote the code that does that for U-Boot, so all you need to do is port it. Although I'm curious, if U-Boot already

Re: [PATCH v3 0/4 REPOST] OF infrastructure for SPI devices

2008-07-25 Thread Jon Smirl
On 7/25/08, Grant Likely [EMAIL PROTECTED] wrote: I don't know what to do with these patches. I'd really like to see them in .27, and now that akpm has cleared his queue, the prerequisite patch has been merged so they are ready to go in. However, even though there has been favourable

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Jon Smirl
On 7/25/08, Timur Tabi [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 8:12 AM, Grant Likely [EMAIL PROTECTED] wrote: Yes, please use something like clock-frequency or current-speed and do the calculation. Ditto. I already wrote the code that does that for U-Boot, so all you need to

Re: [git pull] Please pull from powerpc.git merge branch

2008-07-25 Thread Kumar Gala
On Jul 25, 2008, at 3:13 AM, Benjamin Herrenschmidt wrote: Benjamin Herrenschmidt (1): Move update_mmu_cache() declaration from tlbflush.h to pgtable.h I'm guessing this was pretty trivial, but please post patches to the list even if you've committed them to your tree. - k

Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx

2008-07-25 Thread Wolfgang Grandegger
Grant Likely wrote: On Fri, Jul 25, 2008 at 3:44 AM, Wolfgang Grandegger [EMAIL PROTECTED] wrote: Since recent modifications to the MPC I2C code, the MPC I2C buses are not found any more. This patch fixes the problem by adding proper OF bus ids. Signed-off-by: Wolfgang Grandegger [EMAIL

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Wolfgang Grandegger
Timur Tabi wrote: On Fri, Jul 25, 2008 at 8:12 AM, Grant Likely [EMAIL PROTECTED] wrote: Yes, please use something like clock-frequency or current-speed and do the calculation. Ditto. I already wrote the code that does that for U-Boot, so all you need to do is port it. I know but we still

Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx

2008-07-25 Thread Jon Loeliger
Wolfgang Grandegger wrote: Ah, I see. For the TQM8548 adding the following compatible line: [EMAIL PROTECTED] { ... compatible = fsl,mpc8548-immr, simple-bus; H. While you are there, I think you should drop the 8548 part of soc8548 to get just [EMAIL

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Wolfgang Grandegger
Grant Likely wrote: On Fri, Jul 25, 2008 at 5:04 AM, Wolfgang Grandegger [EMAIL PROTECTED] wrote: Jochen Friedrich wrote: Hi Wolfgang, The I2C driver for the MPC currently uses a fixed speed hard-coded into the driver. This patch adds the FDT properties fdr and dfsrr for the corresponding

Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx

2008-07-25 Thread Wolfgang Grandegger
Jon Loeliger wrote: Wolfgang Grandegger wrote: Ah, I see. For the TQM8548 adding the following compatible line: [EMAIL PROTECTED] { ... compatible = fsl,mpc8548-immr, simple-bus; H. While you are there, I think you should drop the 8548 part of soc8548 to

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Kumar Gala
On Jul 23, 2008, at 11:10 AM, Luis Machado wrote: On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) if you are going to exclude 40x for now? Otherwise this is still enabled on 405 and setting the

Re: [PATCH v3 1/4] of: adapt of_find_i2c_driver() to be usable by SPI also

2008-07-25 Thread Jon Smirl
On 7/25/08, Grant Likely [EMAIL PROTECTED] wrote: From: Grant Likely [EMAIL PROTECTED] SPI has a similar problem as I2C in that it needs to determine an appropriate modalias value for each device node. This patch adapts the of_i2c of_find_i2c_driver() function to be usable by of_spi also.

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Kumar Gala
On Jul 24, 2008, at 11:00 PM, Benjamin Herrenschmidt wrote: On Wed, 2008-07-23 at 13:10 -0300, Luis Machado wrote: On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) if you are going to exclude 40x for

Re: [PATCH] powerpc: i2c-mpc: make speed registers configurable via FDT

2008-07-25 Thread Timur Tabi
Wolfgang Grandegger wrote: I know but we still need an algorithm for MPC52xx and MPC82xx as well. That's true, but I still think hard-coding values of DFSR and FDR in the device tree is not a good way to do this. -- Timur Tabi Linux kernel developer at Freescale

Re: [PATCH v3 1/4] of: adapt of_find_i2c_driver() to be usable by SPI also

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 11:40 AM, Jon Smirl [EMAIL PROTECTED] wrote: On 7/25/08, Grant Likely [EMAIL PROTECTED] wrote: From: Grant Likely [EMAIL PROTECTED] + * At the moment, a single table is used for all bus types because it is + * assumed that the data size is small and that the

[RFC PATCH] of_gpio: implement of_get_gpio_flags()

2008-07-25 Thread Anton Vorontsov
This function is alike to the of_get_gpio(), but accepts new argument: flags. Now the of_get_gpio() call is a wrapper around of_get_gpio_flags(). This new function will be used by the drivers that need to retrive GPIO information, such as active-low flag. Signed-off-by: Anton Vorontsov [EMAIL

Re: [PATCH 1/4][V2] powerpc : add support for linux, usable-memory properties for drconf memory

2008-07-25 Thread Chandru
On Tuesday 22 July 2008 14:46:20 Paul Mackerras wrote: Chandru writes: Scan for linux,usable-memory properties in case of dynamic reconfiguration memory . Support for kexec/kdump. Signed-off-by: Chandru Siddalingappa [EMAIL PROTECTED] Could we *please* have a more comprehensive

Re: [PATCH v3 1/4] of: adapt of_find_i2c_driver() to be usable by SPI also

2008-07-25 Thread Jon Smirl
On 7/25/08, Grant Likely [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 11:40 AM, Jon Smirl [EMAIL PROTECTED] wrote: On 7/25/08, Grant Likely [EMAIL PROTECTED] wrote: From: Grant Likely [EMAIL PROTECTED] + * At the moment, a single table is used for all bus types because it is

Re: [RFC] cpm_uart: Add generic clock API support to set baudrates

2008-07-25 Thread Kumar Gala
On Jul 24, 2008, at 7:05 AM, Laurent Pinchart wrote: This patch introduces baudrate setting support via the generic clock API. When present the optional device tree clock property is used instead of fsl-cpm-brg. Platforms can then define complex clock schemes, to output the serial clock

Re: [PATCHv4] cpm2: Implement GPIO LIB API on CPM2 Freescale SoC.

2008-07-25 Thread Kumar Gala
On Jul 24, 2008, at 11:00 AM, Laurent Pinchart wrote: This patch implement GPIO LIB support for the CPM2 GPIOs. The code can also be used for CPM1 GPIO port E, as both cores are compatible at the register level. Based on earlier work by Jochen Friedrich. Signed-off-by: Laurent Pinchart

Re: GPIO drivers, other patches?

2008-07-25 Thread Anton Vorontsov
On Tue, Jul 15, 2008 at 09:42:01PM +0400, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 08:00:48PM +0400, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 10:10:21AM -0500, Kumar Gala wrote: Anton, I think I've gotten most of the patches from you, Yes, much thanks! but I

Re: [git pull] Please pull from powerpc.git merge branch

2008-07-25 Thread Linus Torvalds
On Fri, 25 Jul 2008, Benjamin Herrenschmidt wrote: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge Ok, I got a conflict in arch/powerpc/platforms/52xx/Kconfig, you should check that I fixed it up right and send me follow-up patches if required. Linus

Re: GPIO drivers, other patches?

2008-07-25 Thread Kumar Gala
On Jul 25, 2008, at 12:54 PM, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 09:42:01PM +0400, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 08:00:48PM +0400, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 10:10:21AM -0500, Kumar Gala wrote: Anton, I think I've gotten most of the patches

Re: [PATCH v3 4/4] powerpc/mpc5200: Add mpc5200-spi (non-PSC) device driver

2008-07-25 Thread Daniel Walker
On Fri, 2008-07-25 at 03:33 -0400, Grant Likely wrote: + if (status (irq != NO_IRQ)) + dev_err(ms-master-dev, spurious irq, status=0x%.2x\n, + status); + + /* Check if there is another transfer waiting */ + if (list_empty(ms-queue)) +

[PATCH] Allow non-hcall return values for lparcfg writes

2008-07-25 Thread Nathan Fontenot
The code to handle writes to /proc/ppc64/lparcfg incorrectly assumes that the return code from the helper routines to update processor or memory entitlement return a hcall return value. It then assumes any non-hcall return value is bad and sets the return code for the write to be -EIO. The

Re: GPIO drivers, other patches?

2008-07-25 Thread Anton Vorontsov
On Fri, Jul 25, 2008 at 01:14:58PM -0500, Kumar Gala wrote: On Jul 25, 2008, at 12:54 PM, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 09:42:01PM +0400, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 08:00:48PM +0400, Anton Vorontsov wrote: On Tue, Jul 15, 2008 at 10:10:21AM -0500, Kumar

Re: CONFIG_FRAME_POINTER [was [PATCH] x86: BUILD_IRQ say .text]

2008-07-25 Thread Hugh Dickins
On Thu, 24 Jul 2008, Ingo Molnar wrote: * Hugh Dickins [EMAIL PROTECTED] wrote: I've been using -fno-unit-at-a-time (to lessen inlining, for easier debugging) for a long time Should we perhaps enable this automatically on CONFIG_FRAME_POINTER=y builds? Although a separate, default-off

Re: [PATCH v3 1/4] of: adapt of_find_i2c_driver() to be usable by SPI also

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 1:02 PM, Jon Smirl [EMAIL PROTECTED] wrote: On 7/25/08, Grant Likely [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 11:40 AM, Jon Smirl [EMAIL PROTECTED] wrote: On 7/25/08, Grant Likely [EMAIL PROTECTED] wrote: + * First method is to lookup the compatible value

Re: [git pull] Please pull from powerpc.git merge branch

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 2:10 PM, Linus Torvalds [EMAIL PROTECTED] wrote: On Fri, 25 Jul 2008, Benjamin Herrenschmidt wrote: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge Ok, I got a conflict in arch/powerpc/platforms/52xx/Kconfig, you should check that I fixed it up

Re: [PATCH v3 2/4] spi: split up spi_new_device() to allow two stage registration.

2008-07-25 Thread David Brownell
On Friday 25 July 2008, Grant Likely wrote: From: Grant Likely [EMAIL PROTECTED] spi_new_device() allocates and registers an spi device all in one swoop. If the driver needs to add extra data to the spi_device before it is registered, then this causes problems. Mention an example please ...

Re: [PATCH / RFC] net: don't grab a mutex within a timer context in gianfar

2008-07-25 Thread Andy Fleming
On Jul 23, 2008, at 16:03, Sebastian Siewior wrote: From: Sebastian Siewior [EMAIL PROTECTED] I got the following backtrace while network was unavailble: |NETDEV WATCHDOG: eth0: transmit timed out |BUG: sleeping function called from invalid context at /home/bigeasy/

[PATCH] powerpc: clean up the Book-E HW watchpoint support

2008-07-25 Thread Kumar Gala
* CONFIG_BOOKE is selected by CONFIG_44x so we dont need both * Fixed a few comments * Go back to only using DBCR0_IDM to determine if we are using debug resources. Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- Luis, can you test this on 44x. I don't expect any breakage. - k

Re: [PATCH v3 2/4] spi: split up spi_new_device() to allow two stage registration.

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 3:00 PM, David Brownell [EMAIL PROTECTED] wrote: On Friday 25 July 2008, Grant Likely wrote: This change is in preparation for adding an OF device tree parser to generate spi_devices based on data in the device tree. Signed-off-by: Grant Likely [EMAIL PROTECTED]

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Kumar Gala
On Jul 25, 2008, at 10:23 AM, Kumar Gala wrote: On Jul 24, 2008, at 11:00 PM, Benjamin Herrenschmidt wrote: On Wed, 2008-07-23 at 13:10 -0300, Luis Machado wrote: On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) ||

Re: [PATCH] powerpc: clean up the Book-E HW watchpoint support

2008-07-25 Thread Luis Machado
Works for me. I presume you had positive results on the Book-E as well. By the way, thanks for cleaning it up. Luis On Fri, 2008-07-25 at 14:27 -0500, Kumar Gala wrote: * CONFIG_BOOKE is selected by CONFIG_44x so we dont need both * Fixed a few comments * Go back to only using DBCR0_IDM to

Re: [PATCH] powerpc: clean up the Book-E HW watchpoint support

2008-07-25 Thread Kumar Gala
On Jul 25, 2008, at 2:50 PM, Luis Machado wrote: Works for me. I presume you had positive results on the Book-E as well. I havent had a chance to test this on our HW. By the way, thanks for cleaning it up. np. - k ___ Linuxppc-dev mailing

Re: [PATCH v3] leds: implement OpenFirmare GPIO LED driver

2008-07-25 Thread Trent Piepho
Here are my patches for the OF bindings. The first is just a tiny change to the leds code to silence a warning. The second is the real patch. The leds-gpio driver gets two sub-options in Kconfig, one for platform device support and one for openfirmware platform device support. There is support

RE: 82xx performance

2008-07-25 Thread Rune Torgersen
From: Arnd Bergmann [mailto:[EMAIL PROTECTED] On Thursday 17 July 2008, Rune Torgersen wrote: Arnd Bergmann wrote: So again, nothing conclusive. I'm running out of ideas. Is the syscall path different or the same on ppc and powerpc? Any differences in the task switching, irq

[PATCH 1/2] leds: make the default trigger name const

2008-07-25 Thread Trent Piepho
The default_trigger fields of struct gpio_led and thus struct led_classdev are pretty much always assigned from a string literal, which means the string can't be modified. Which is fine, since there is no reason to modify the string and in fact it never is. But they should be marked const to

[PATCH 2/2] leds: Support OpenFirmware led bindings

2008-07-25 Thread Trent Piepho
Add bindings to support LEDs defined as of_platform devices in addition to the existing bindings for platform devices. New options in Kconfig allow the platform binding code and/or the of_platform code to be turned on. The of_platform code is of course only available on archs that have OF

DTC v1.2.0 Released

2008-07-25 Thread Jon Loeliger
Folks, I have tagged and released DTC version 1.2.0 on jdl.com. git://git.jdl.com/software/dtc.git Problems with it to me, please! Enjoy, jdl ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

[PATCH] Memset the kernel copy of rtas args before using

2008-07-25 Thread Nathan Fontenot
The kernel copy of the rtas args struct that is read in from user space is a stack variable. This structure should be zero'ed out before we do any reads/writes to/from the user when handling a rtas call request. This patch adds a memset to do this. I am seeing an issue in testing partition

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Benjamin Herrenschmidt
Josh pointed out that you went ahead and merged this. Curse you :) I've got a patch in my tree to address my initial concerns. Well, I asked Josh on IRC and he was fine, I got your email too late. Cheers, Ben. ___ Linuxppc-dev mailing list

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 10:23 -0500, Kumar Gala wrote: Ben, I want to make sure this works on FSL Book-E before it gets into tree and I need to think about what SMP issues it might have. Hrm.. too late. I merged it. I talked to Josh about this at OLS and if you are ok I can deal with

Re: [git pull] Please pull from powerpc.git merge branch

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 10:07 -0500, Kumar Gala wrote: On Jul 25, 2008, at 3:13 AM, Benjamin Herrenschmidt wrote: Benjamin Herrenschmidt (1): Move update_mmu_cache() declaration from tlbflush.h to pgtable.h I'm guessing this was pretty trivial, but please post patches to the list

Re: CONFIG_FRAME_POINTER [was [PATCH] x86: BUILD_IRQ say .text]

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 19:45 +0100, Hugh Dickins wrote: I've Cc'ed Ben and linuxppc-dev because I wonder if they're aware that several options (I got it from LATENCYTOP, but I think LOCKDEP and FTRACE and some others) are doing a select FRAME_POINTER, which forces CONFIG_FRAME_POINTER=y on

can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Jon Smirl
I've lost my ability to boot on the mpc5200. Reverting this patch fixes it. powerpc: Enable AT_BASE_PLATFORM aux vector 9115d13453dee22473a1e8cacc90a8d64a9c4bc9 commit 9115d13453dee22473a1e8cacc90a8d64a9c4bc9 Author: Nathan Lynch [EMAIL PROTECTED] Date: Wed Jul 16 09:58:51 2008 +1000

Re: can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Nathan Lynch
Jon Smirl wrote: I've lost my ability to boot on the mpc5200. Reverting this patch fixes it. How does it fail? @@ -1652,6 +1655,14 @@ struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) } else *t = *s;

Re: can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 17:00 -0500, Nathan Lynch wrote: Jon Smirl wrote: I've lost my ability to boot on the mpc5200. Reverting this patch fixes it. How does it fail? @@ -1652,6 +1655,14 @@ struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr)

Re: can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Jon Smirl
On 7/25/08, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 17:00 -0500, Nathan Lynch wrote: Jon Smirl wrote: I've lost my ability to boot on the mpc5200. Reverting this patch fixes it. How does it fail? @@ -1652,6 +1655,14 @@ struct cpu_spec *

Re: can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Nathan Lynch
Commit 9115d13453dee22473a1e8cacc90a8d64a9c4bc9 (powerpc: Enable AT_BASE_PLATFORM aux vector) broke boot on 32-bit powerpc systems; we have to use PTRRELOC to initialize powerpc_base_platform this early in boot. Bug reported by Jon Smirl. Signed-off-by: Nathan Lynch [EMAIL PROTECTED] ---

Re: can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Jon Smirl
On 7/25/08, Jon Smirl [EMAIL PROTECTED] wrote: On 7/25/08, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 17:00 -0500, Nathan Lynch wrote: Jon Smirl wrote: I've lost my ability to boot on the mpc5200. Reverting this patch fixes it. How does it

Re: can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Jon Smirl
On 7/25/08, Nathan Lynch [EMAIL PROTECTED] wrote: Commit 9115d13453dee22473a1e8cacc90a8d64a9c4bc9 (powerpc: Enable AT_BASE_PLATFORM aux vector) broke boot on 32-bit powerpc systems; we have to use PTRRELOC to initialize powerpc_base_platform this early in boot. Bug reported by Jon Smirl.

Re: can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

2008-07-25 Thread Nathan Lynch
This works too. Thanks Jon, sorry about that. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH] Fix vio build warnings

2008-07-25 Thread Nathan Lynch
arch/powerpc/kernel/vio.c:1034: warning: function declaration isn’t a prototype arch/powerpc/kernel/vio.c:1035: warning: function declaration isn’t a prototype Signed-off-by: Nathan Lynch [EMAIL PROTECTED] --- arch/powerpc/kernel/vio.c |4 ++-- 1 files changed, 2 insertions(+), 2

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

2008-07-25 Thread Benjamin Herrenschmidt
Hi Linus ! Please pull from:  git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge To get one patch that fixes a boot problem introduced by yesterday's serie. Thanks ! Ben. arch/powerpc/kernel/cputable.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Nathan

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Josh Boyer
On Sat, 26 Jul 2008 07:38:57 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Josh pointed out that you went ahead and merged this. Curse you :) I've got a patch in my tree to address my initial concerns. Well, I asked Josh on IRC and he was fine, I got your email too late. I

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 19:08 -0400, Josh Boyer wrote: On Sat, 26 Jul 2008 07:38:57 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Josh pointed out that you went ahead and merged this. Curse you :) I've got a patch in my tree to address my initial concerns. Well, I

Re: [git pull] Please pull from powerpc.git merge branch

2008-07-25 Thread Linus Torvalds
On Sat, 26 Jul 2008, Benjamin Herrenschmidt wrote: Please pull from:  git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge What odd character do you have there before the 'git://' and why? It cuts-and-pastes into some whitespace that isn't space, and that the shell thus

Cleanup for i2c driver changes.

2008-07-25 Thread Sean MacLennan
This patch removes the i2c code which is now obsolete due to the new ibm iic driver walking the device tree for child nodes. There are two other small cleanups that came indirectly from the ad7414 code review. Make sure Tlow is correct and handle the case where i2c_smbus_read_word_data fails.

Warp DTS changes

2008-07-25 Thread Sean MacLennan
Added support for the new at24 eeprom driver. Documented a new fpga section, the DMA scatter gather list. Removed index from i2c. No longer needed. Fixed the leds section. Signed-off-by: Sean MacLennan [EMAIL PROTECTED] --- diff --git a/arch/powerpc/boot/dts/warp.dts

Re: [PATCH v3 4/4] powerpc/mpc5200: Add mpc5200-spi (non-PSC) device driver

2008-07-25 Thread Grant Likely
On Fri, Jul 25, 2008 at 2:19 PM, Daniel Walker [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 03:33 -0400, Grant Likely wrote: + if (status (irq != NO_IRQ)) + dev_err(ms-master-dev, spurious irq, status=0x%.2x\n, + status); + + /* Check if there is

Re: 82xx performance

2008-07-25 Thread Milton Miller
On Jul 25, 2008, at 3:41 PM, Rune Torgersen wrote: From: Arnd Bergmann [mailto:[EMAIL PROTECTED] On Thursday 17 July 2008, Rune Torgersen wrote: Arnd Bergmann wrote: So again, nothing conclusive. I'm running out of ideas. Is the syscall path different or the same on ppc and powerpc? Any

Re: [RFC,PATCH] scripts/package: add powerpc images to tarball

2008-07-25 Thread Milton Miller
On Jul 24, 2008, at 8:11 PM, Jeremy Kerr wrote: Milton, Yes. How about all dtbImage, zImage, cuboot, treeboot, etc that are newer than vmlinux? The existing arch code doesn't do any checks for timestamps, perhaps this would be better implemented as an arch-independent change? The

Please pull mpc52xx-next

2008-07-25 Thread Grant Likely
Hey Ben, here are a few more patches for .27. I would have had this stuff in earlier, but they depended on another patch that I didn't feel like I should push that was in Andrew's queue. Thanks, g. The following changes since commit 1ff8419871ea757ae0298aa296bcff9b2ca48561: Linus Torvalds

[PATCH] Memset the kernel copy of rtas args before using

2008-07-25 Thread Milton Miller
On Sat Jul 26 at 07:25:47 EST in 2008, Nathan Fontenot wrote: The kernel copy of the rtas args struct that is read in from user space is a stack variable. This structure should be zero'ed out before we do any reads/writes to/from the user when handling a rtas call request. This patch adds a

Re: [git pull] Please pull from powerpc.git merge branch

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 17:38 -0700, Linus Torvalds wrote: On Sat, 26 Jul 2008, Benjamin Herrenschmidt wrote: Please pull from:  git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge What odd character do you have there before the 'git://' and why? Hrm... no idea...

Re: [PATCH v3 4/4] powerpc/mpc5200: Add mpc5200-spi (non-PSC) device driver

2008-07-25 Thread Daniel Walker
On Fri, 2008-07-25 at 22:45 -0400, Grant Likely wrote: On Fri, Jul 25, 2008 at 2:19 PM, Daniel Walker [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 03:33 -0400, Grant Likely wrote: + if (status (irq != NO_IRQ)) + dev_err(ms-master-dev, spurious irq, status=0x%.2x\n, +

Re: [RFC] reorganize cputypes for PPC64

2008-07-25 Thread Milton Miller
On Sun Jul 13 22:20:28 EST 2008, Marvin wrote: On Saturday 12 July 2008 20:00:05 Arnd Bergmann wrote: On Saturday 12 July 2008, Marvin wrote: attached patch introduces a processor type menu similar to ppc32. It _should_ not change anything upto now. The aim is to allow future fine graded

Re: [RFC,PATCH] scripts/package: add powerpc images to tarball

2008-07-25 Thread Grant Likely
On Thu, Jul 24, 2008 at 9:08 PM, Milton Miller [EMAIL PROTECTED] wrote: Currently, tarball builds for powerpc kernels don't have any boot images (other than vmlinux) present. Add support for powerpc builds in the buildtar script, to include a few default images. Signed-off-by: Jeremy Kerr

Re: [PATCH v3 4/4] powerpc/mpc5200: Add mpc5200-spi (non-PSC) device driver

2008-07-25 Thread Grant Likely
On Sat, Jul 26, 2008 at 12:47 AM, Daniel Walker [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 22:45 -0400, Grant Likely wrote: On Fri, Jul 25, 2008 at 2:19 PM, Daniel Walker [EMAIL PROTECTED] wrote: On Fri, 2008-07-25 at 03:33 -0400, Grant Likely wrote: + if (status (irq != NO_IRQ))