Re: [PATCH 5/5] kernel handling of CPU DLPAR

2009-09-14 Thread Andrey Panin
On 254, 09 11, 2009 at 04:15:33PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove CPUs from the kernel. The creates two new files /sys/devices/system/cpu/probe and /sys/devices/system/cpu/release to handle the DLPAR addition and removal of CPUs respectively.

Re: [PATCH 4/5] kernel handling of memory DLPAR

2009-09-14 Thread Andrey Panin
On 254, 09 11, 2009 at 04:14:35PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove memory from the kernel. The patch extends the powerpc handling of memory_add_physaddr_to_nid(), which is called from the sysfs memory 'probe' file to first ensure that the memory

[PATCH] mpc5200: support for the MAN mpc5200 based board mucmc52

2009-09-14 Thread Heiko Schocher
- serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C with PCF8563 and Temp. Sensor ADM9240 - IDE support Signed-off-by: Heiko Schocher h...@denx.de --- - based on: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git next - checked with: $

[PATCH] mpc5200: support for the MAN mpc5200 based board uc101

2009-09-14 Thread Heiko Schocher
- serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C with PCF8563 and Temp. Sensor ADM9240 - IDE support Signed-off-by: Heiko Schocher h...@denx.de --- - based on: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git next - checked with: $

Re: [FTRACE] Enabling function_graph causes OOPS

2009-09-14 Thread Benjamin Herrenschmidt
On Mon, 2009-09-14 at 06:25 +1000, Benjamin Herrenschmidt wrote: .../... Something is totally messed up here. Could it be that we don't handle R_PPC64_ADDR16_* relocs in arch/powerpc/kernel/modules/module_64.c ? Sachin, do you see a bunch of Unknown ADD relocation in

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board mucmc52

2009-09-14 Thread Wolfram Sang
Hi, + mpc5200_pic: interrupt-control...@500 { + // 5200 interrupts are encoded into two levels; Grant, maybe this comment could be dropped also for the in-kernel dts-files? I think it is sufficently described in mpc5200.txt. I could prepare a patch if you agree.

Oops in IDE probing on ppc_440 when PCI is enabled in strapping

2009-09-14 Thread Ludo Van Put
Hi, we're working with a PPC440GX on a board that has a.o. a compact flash slot. We had the PCI subsystem of the ppc disabled in strapping for quite a while, until we wanted to start using it. However, when we enabled PCI in the strapping and in the (patched 2.6.10) kernel configuration, we

Re: Oops in IDE probing on ppc_440 when PCI is enabled in strapping

2009-09-14 Thread Josh Boyer
On Mon, Sep 14, 2009 at 02:36:15PM +0200, Ludo Van Put wrote: Hi, we're working with a PPC440GX on a board that has a.o. a compact flash slot. We had the PCI subsystem of the ppc disabled in strapping for quite a while, until we wanted to start using it. However, when we enabled PCI in the

Re: How to access DCR registers in powerpc440gx? Got err when use macro def in Linux kernel

2009-09-14 Thread Arnd Bergmann
On Friday 11 September 2009, David Gibson wrote: On Fri, Sep 11, 2009 at 12:14:55PM +0800, g r1x wrote: Now, I'm writing a DMA driver on powerpc 440gx platform(2.6.26.5), as the only way to set up DMA Controller is to access it's dcr registers with 'mfdcr' and 'mtdcr'. I've found some

Re: Oops in IDE probing on ppc_440 when PCI is enabled in strapping

2009-09-14 Thread Ludo Van Put
2009/9/14 Josh Boyer jwbo...@linux.vnet.ibm.com: On Mon, Sep 14, 2009 at 02:36:15PM +0200, Ludo Van Put wrote: Hi, we're working with a PPC440GX on a board that has a.o. a compact flash slot. We had the PCI subsystem of the ppc disabled in strapping for quite a while, until we wanted to start

MPC8323 USB Host

2009-09-14 Thread spa_kk
Hello, This is regarding the MPC8323 in-built USB controller driver, Environment: LTIB: ltib-mpc832x_rdb-20070507 Linux: linux-2.6.20 In built usb driver is been ported from linux-2.6.30 to linux-2.6.20 (File: drivers/usb/host/fhci-hcd.c is been ported from kernel.org/linux-2.6.30) Problem

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board uc101

2009-09-14 Thread Grant Likely
Hi Heiko, Thanks for the patch. Comments below. g. On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher h...@denx.de wrote: - serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C with PCF8563 and Temp. Sensor ADM9240 - IDE support Signed-off-by: Heiko Schocher

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board mucmc52

2009-09-14 Thread Grant Likely
Hi Heiko. Comments below. On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher h...@denx.de wrote: - serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C with PCF8563 and Temp. Sensor ADM9240 - IDE support Signed-off-by: Heiko Schocher h...@denx.de  

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board uc101

2009-09-14 Thread Heiko Schocher
Hello Grant, Grant Likely wrote: Thanks for the patch. Comments below. g. On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher h...@denx.de wrote: - serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C with PCF8563 and Temp. Sensor ADM9240 - IDE support

Re: MPC8323 USB Host

2009-09-14 Thread Anton Vorontsov
Hello, On Mon, Sep 14, 2009 at 05:49:01AM -0700, spa_kk wrote: Hello, [...] The value in this variable are not getting changed even after connecting disconnection the device. Could be pins multiplexing or USB clocks misconfiguration. We have manual checked the USBRXP pin, this pin is

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board mucmc52

2009-09-14 Thread Heiko Schocher
Hello Wolfram, Wolfram Sang wrote: Hi, +mpc5200_pic: interrupt-control...@500 { +// 5200 interrupts are encoded into two levels; Grant, maybe this comment could be dropped also for the in-kernel dts-files? I think it is sufficently described in

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board mucmc52

2009-09-14 Thread Heiko Schocher
Hello Grant, Grant Likely wrote: Comments below. On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher h...@denx.de wrote: - serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C with PCF8563 and Temp. Sensor ADM9240 - IDE support Signed-off-by: Heiko Schocher

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board mucmc52

2009-09-14 Thread Grant Likely
On Mon, Sep 14, 2009 at 2:03 AM, Wolfram Sang w.s...@pengutronix.de wrote: Hi, +             mpc5200_pic: interrupt-control...@500 { +                     // 5200 interrupts are encoded into two levels; Grant, maybe this comment could be dropped also for the in-kernel dts-files? I think it

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board mucmc52

2009-09-14 Thread Grant Likely
On Mon, Sep 14, 2009 at 8:32 AM, Heiko Schocher h...@denx.de wrote: Grant Likely wrote: On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher h...@denx.de wrote: +       soc5...@f000 { +               #address-cells = 1; +               #size-cells = 1; +               compatible =

Re: [PATCH 01/10] Add support for GCC-4.5's __builtin_unreachable() to compiler.h

2009-09-14 Thread David Daney
Geert Uytterhoeven wrote: On Fri, Sep 11, 2009 at 17:58, David Daneydda...@caviumnetworks.com wrote: Michael Buesch wrote: On Friday 11 September 2009 01:56:42 David Daney wrote: +/* Unreachable code */ +#ifndef unreachable +# define unreachable() do { for (;;) ; } while (0) +#endif # define

Re: [PATCH v2 0/5] Suspend/resume support for some 83xx/85xx/86xx boards

2009-09-14 Thread Anton Vorontsov
On Sun, Aug 30, 2009 at 11:36:25PM +0400, Anton Vorontsov wrote: On Fri, Aug 28, 2009 at 12:38:51AM -0500, Kumar Gala wrote: This patch adds suspend/resume support for MPC8540-compatible and MPC8569 CPUs. [...] I'd also like to get Scott's Ack on this and the device tree patches before

Re: [PATCH 2/5] powerpc/85xx/86xx: Add suspend/resume support

2009-09-14 Thread Scott Wood
On Sun, Aug 30, 2009 at 11:37:18PM +0400, Anton Vorontsov wrote: This patch adds suspend/resume support for MPC8540, MPC8569 and MPC8641D-compatible CPUs. MPC8540 and MPC8641D-compatible PMCs are trivial: we just write the SLP bit into the PM control and status register. MPC8569 is a bit

Re: [PATCH v2 0/5] Suspend/resume support for some 83xx/85xx/86xx boards

2009-09-14 Thread Scott Wood
On Mon, Sep 14, 2009 at 07:33:49PM +0400, Anton Vorontsov wrote: On Sun, Aug 30, 2009 at 11:36:25PM +0400, Anton Vorontsov wrote: On Fri, Aug 28, 2009 at 12:38:51AM -0500, Kumar Gala wrote: This patch adds suspend/resume support for MPC8540-compatible and MPC8569 CPUs. [...] I'd

[PATCH] Xilinx: SPI: Fix bits_per_word for transfers

2009-09-14 Thread John Linn
The bits_per_word value can be set for each transfer, or can be set to zero in each transfer in which case it should default to the value in the driver. The driver was fixed to properly check the bits_per_word in the transfer that is passed in. Signed-off-by: John Linn john.l...@xilinx.com ---

Re: [PATCH 4/5] kernel handling of memory DLPAR

2009-09-14 Thread Nathan Fontenot
Andrey Panin wrote: On 254, 09 11, 2009 at 04:14:35PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove memory from the kernel. The patch extends the powerpc handling of memory_add_physaddr_to_nid(), which is called from the sysfs memory 'probe' file to first

Re: [PATCH 5/5] kernel handling of CPU DLPAR

2009-09-14 Thread Nathan Fontenot
Andrey Panin wrote: On 254, 09 11, 2009 at 04:15:33PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove CPUs from the kernel. The creates two new files /sys/devices/system/cpu/probe and /sys/devices/system/cpu/release to handle the DLPAR addition and removal of CPUs

Re: [PATCH 0/5] kernel handling of dynamic logical partitioning

2009-09-14 Thread Nathan Fontenot
Daniel Walker wrote: On Fri, 2009-09-11 at 16:08 -0500, Nathan Fontenot wrote: am cc'ing lkml. Patches include in this set: 1/5 - DLPAR infrastructure for powerpc/pseries platform. 2/5 - Move the of_drconf_cell struct to prom.h 3/5 - Export the memory sysdev class 4/5 - Memory DLPAR handling

Re: [PATCH 0/5] kernel handling of dynamic logical partitioning

2009-09-14 Thread Daniel Walker
On Mon, 2009-09-14 at 13:22 -0500, Nathan Fontenot wrote: Daniel Walker wrote: On Fri, 2009-09-11 at 16:08 -0500, Nathan Fontenot wrote: am cc'ing lkml. Patches include in this set: 1/5 - DLPAR infrastructure for powerpc/pseries platform. 2/5 - Move the of_drconf_cell struct to

Re: [PATCH 1/5] dynamic logical partitioning infrastructure

2009-09-14 Thread Brian King
Nathan Fontenot wrote: +#include linux/kernel.h +#include linux/kref.h +#include linux/notifier.h +#include linux/proc_fs.h +#include linux/spinlock.h + +#include asm/prom.h +#include asm/machdep.h +#include asm/uaccess.h +#include asm/rtas.h +#include asm/pSeries_reconfig.h +

Re: [PATCH] Xilinx: SPI: Fix bits_per_word for transfers

2009-09-14 Thread Grant Likely
On Mon, Sep 14, 2009 at 12:17 PM, John Linn john.l...@xilinx.com wrote: The bits_per_word value can be set for each transfer, or can be set to zero in each transfer in which case it should default to the value in the driver. The driver was fixed to properly check the bits_per_word in the

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board uc101

2009-09-14 Thread Wolfgang Grandegger
Hello Heiko, Heiko Schocher wrote: Hello Grant, Grant Likely wrote: Thanks for the patch. Comments below. g. On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher h...@denx.de wrote: - serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C with PCF8563 and Temp. Sensor

Re: [PATCH] powerpc: Fix bug where perf_counters breaks oprofile

2009-09-14 Thread Maynard Johnson
Maynard Johnson wrote: Paul Mackerras wrote: Currently there is a bug where if you use oprofile on a pSeries machine, then use perf_counters, then use oprofile again, oprofile will not work correctly; it will lose the PMU configuration the next time the hypervisor does a partition context

[PATCH v3 2/5] powerpc/85xx/86xx: Add suspend/resume support

2009-09-14 Thread Anton Vorontsov
This patch adds suspend/resume support for MPC8540, MPC8569 and MPC8641D-compatible CPUs. MPC8540 and MPC8641D-compatible PMCs are trivial: we just write the SLP bit into the PM control and status register. MPC8569 is a bit trickier, QE turns off during suspend, thus on resume we must reload QE

Re: [PATCH] powerpc: Fix bug where perf_counters breaks oprofile

2009-09-14 Thread Josh Boyer
On Mon, Sep 14, 2009 at 03:14:02PM -0500, Maynard Johnson wrote: Maynard Johnson wrote: Paul Mackerras wrote: Currently there is a bug where if you use oprofile on a pSeries machine, then use perf_counters, then use oprofile again, oprofile will not work correctly; it will lose the PMU

Re: [PATCH v3 2/5] powerpc/85xx/86xx: Add suspend/resume support

2009-09-14 Thread Scott Wood
Anton Vorontsov wrote: This patch adds suspend/resume support for MPC8540, MPC8569 and MPC8641D-compatible CPUs. MPC8540 and MPC8641D-compatible PMCs are trivial: we just write the SLP bit into the PM control and status register. MPC8569 is a bit trickier, QE turns off during suspend, thus on

Re: [PATCH v3 2/5] powerpc/85xx/86xx: Add suspend/resume support

2009-09-14 Thread Anton Vorontsov
On Mon, Sep 14, 2009 at 03:45:10PM -0500, Scott Wood wrote: [...] You can't request the firmware in the qe driver's -suspend() routine necause the firmware may be on e.g. NFS filesystem or USB stick (implies having QE Ethernet or QE USB fully functional). Is there any way for software to

[PATCH 00/11] Add support for GCC's __builtin_unreachable() and use it in BUG (v2).

2009-09-14 Thread David Daney
When I sent the first version, I had not realized that Roland McGrath had only a day or two earlier submitted a very similar patch (although one that only fixed up the x86 case). I have been working on this quite a while now, starting with adding the required support to GCC, so with an eye

[PATCH 07/11] powerpc: Convert BUG() to use unreachable()

2009-09-14 Thread David Daney
Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney dda...@caviumnetworks.com CC: Benjamin Herrenschmidt b...@kernel.crashing.org CC: Paul Mackerras pau...@samba.org CC: linuxppc-...@ozlabs.org --- arch/powerpc/include/asm/bug.h |2 +- 1 files changed, 1

Re: Oops in IDE probing on ppc_440 when PCI is enabled in strapping

2009-09-14 Thread Benjamin Herrenschmidt
On Mon, 2009-09-14 at 15:08 +0200, Ludo Van Put wrote: 2009/9/14 Josh Boyer jwbo...@linux.vnet.ibm.com: On Mon, Sep 14, 2009 at 02:36:15PM +0200, Ludo Van Put wrote: Hi, we're working with a PPC440GX on a board that has a.o. a compact flash slot. We had the PCI subsystem of the ppc

Re: [PATCH] powerpc: Fix bug where perf_counters breaks oprofile

2009-09-14 Thread Benjamin Herrenschmidt
On Mon, 2009-09-14 at 16:43 -0400, Josh Boyer wrote: On Mon, Sep 14, 2009 at 03:14:02PM -0500, Maynard Johnson wrote: Maynard Johnson wrote: Paul Mackerras wrote: Currently there is a bug where if you use oprofile on a pSeries machine, then use perf_counters, then use oprofile again,

Re: [PATCH] powerpc: Fix bug where perf_counters breaks oprofile

2009-09-14 Thread Josh Boyer
On Tue, Sep 15, 2009 at 10:56:47AM +1000, Benjamin Herrenschmidt wrote: On Mon, 2009-09-14 at 16:43 -0400, Josh Boyer wrote: On Mon, Sep 14, 2009 at 03:14:02PM -0500, Maynard Johnson wrote: Maynard Johnson wrote: Paul Mackerras wrote: Currently there is a bug where if you use oprofile on a

Re: [PATCH] mpc5200: support for the MAN mpc5200 based board uc101

2009-09-14 Thread Heiko Schocher
Hello Wolfgang, Wolfgang Grandegger wrote: Heiko Schocher wrote: Hello Grant, Grant Likely wrote: Thanks for the patch. Comments below. g. On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher h...@denx.de wrote: - serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash - Ethernet FEC - I2C

Re: MPC8323 USB Host

2009-09-14 Thread spa_kk
Hi, Thanks for the suggestion, pins clock configuration seems to be ok, Need a help in understanding which register of MPC8323 is been mapped to fhci-vroot_hub-port.wPortChange fhci-vroot_hub-port.wPortStatus As this are the variable which is been checked while polling File:

[PATCH] powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE

2009-09-14 Thread Benjamin Herrenschmidt
From: Tony Breeds t...@bakeyournoodle.com When using CONFIG_RELOCATABLE, we build the kernel as a position independent executable. The kernel then uses a little bit of relocation code to relocate itself. That code only deals with R_PPC64_RELATIVE relocations though. If for some reason you use