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 --- - based on: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git next - checked with: $ ./scripts/checkpatch.pl 0001-mpc5

[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 --- - based on: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git next - checked with: $ ./scripts/checkpatch.pl 0001-mpc5

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 "Unk

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 trigge

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 s

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 f

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 : > 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. >>Howeve

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 des

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 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 > --- > - base

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 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 > >  arch/powerpc/boot/dts/mucmc52.dts  

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 wrote: >> - serial Console on PSC1 >> - 64MB SDRAM >> - MTD CFI Flash >> - Ethernet FEC >> - I2C with PCF8563 and Temp. Sensor ADM9240 >> - IDE support >> >> Sign

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 i

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 mpc

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 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 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 sufficentl

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 wrote: > Grant Likely wrote: >> On Mon, Sep 14, 2009 at 2:05 AM, Heiko Schocher wrote: >>> +       soc5...@f000 { >>> +               #address-cells = <1>; >>> +               #size-cells = <1>; >>> +               compatible = "fsl,mpc5200-immr

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 Daney 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 unreachable() do { } whil

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

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

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. > > [...]

[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 --- drivers/spi/xilinx_sp

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 ensure

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 5

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_cel

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

2009-09-14 Thread Brian King
Nathan Fontenot wrote: > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > + > +#define CFG_CONN_WORK_SIZE4096 > +static char workarea[CFG_CONN_WORK_SIZE]; > +spinlock_t workarea_lock; This can be: static DEFI

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 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 transfer that is p

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 wrote: >>> - serial Console on PSC1 >>> - 64MB SDRAM >>> - MTD CFI Flash >>> - Ethernet FEC >>> - I2C with PCF8563 an

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 con

[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 m

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

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 r

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 softwar

[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 toward

[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 CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-...@ozlabs.org --- arch/powerpc/include/asm/bug.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/bug.h b

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 : > > 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 strappi

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

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 o

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 wrote: - serial Console on PSC1 - 64MB SDRAM - MTD CFI Flash >>

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: "drivers/us

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

2009-09-14 Thread Benjamin Herrenschmidt
From: Tony Breeds 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 assembly constructs such as

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

2009-09-14 Thread Tony Breeds
On Tue, Sep 15, 2009 at 03:57:02PM +1000, Benjamin Herrenschmidt wrote: > diff --git a/arch/powerpc/relocs_check.pl b/arch/powerpc/relocs_check.pl > new file mode 100755 > index 000..215e966 > --- /dev/null > +++ b/arch/powerpc/relocs_check.pl > @@ -0,0 +1,57 @@ > +#!/usr/bin/perl > + > +# Co

[0/5] Assorted hugepage cleanups (v2)

2009-09-14 Thread David Gibson
Currently, ordinary pages use one pagetable layout, and each different hugepage size uses a slightly different variant layout. A number of places which need to walk the pagetable must first check the slice map to see what the pagetable layout then handle the various different forms. New hardware,

[2/5] Cleanup management of kmem_caches for pagetables

2009-09-14 Thread David Gibson
Currently we have a fair bit of rather fiddly code to manage the various kmem_caches used to store page tables of various levels. We generally have two caches holding some combination of PGD, PUD and PMD tables, plus several more for the special hugepage pagetables. This patch cleans this all up

[1/5] Make hpte_need_flush() correctly mask for multiple page sizes

2009-09-14 Thread David Gibson
Currently, hpte_need_flush() only correctly flushes the given address for normal pages. Callers for hugepages are required to mask the address themselves. But hpte_need_flush() already looks up the page sizes for its own reasons, so this is a rather silly imposition on the callers. This patch al

[4/5] Cleanup initialization of hugepages on powerpc

2009-09-14 Thread David Gibson
This patch simplifies the logic used to initialize hugepages on powerpc. The somewhat oddly named set_huge_psize() is renamed to add_huge_page_size() and now does all necessary verification of whether it's given a valid hugepage sizes (instead of just some) and instantiates the generic hstate stru

[3/5] Allow more flexible layouts for hugepage pagetables

2009-09-14 Thread David Gibson
Currently each available hugepage size uses a slightly different pagetable layout: that is, the bottem level table of pointers to hugepages is a different size, and may branch off from the normal page tables at a different level. Every hugepage aware path that needs to walk the pagetables must the

[5/5] Split hash MMU specific hugepage code into a new file

2009-09-14 Thread David Gibson
This patch separates the parts of hugetlbpage.c which are inherently specific to the hash MMU into a new hugelbpage-hash64.c file. Signed-off-by: David Gibson --- arch/powerpc/include/asm/hugetlb.h |3 arch/powerpc/mm/Makefile |5 - arch/powerpc/mm/hugetlbpage-hash64.c |