[PATCH 13/20] [POWERPC] Adds decoding of 440SPE memory size to boot wrapper library

2007-12-13 Thread Benjamin Herrenschmidt
This adds a function to the bootwrapper 4xx library to decode memory size on 440SPE processors. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/boot/4xx.c | 85 +--- arch/powerpc/boot/4xx.h |3 - arch/powerp

[PATCH 15/20] [POWERPC] Adds 44x CPR0 accessors to boot wrapper

2007-12-13 Thread Benjamin Herrenschmidt
This adds macros to the boot wrapper to access the CPR registers from the boot wrappers. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/boot/dcr.h | 27 +++ 1 file changed, 27 insertions(+) --- linux-merge.orig/arch/powerpc/boot/dcr.h200

[PATCH 16/20] [POWERPC] Rework 4xx clock probing in boot wrapper

2007-12-13 Thread Benjamin Herrenschmidt
This reworks the boot wrapper library function that probes the chip clocks. Better separate the base function that is used on 440GX,SPe,EP,... from the uart fixups as those need different device-tree path on different processors. Also, rework the function itself based on the arch/ppc code from Eug

[PATCH 18/20] [POWERPC] 4xx PCI-E Link setup improvements

2007-12-13 Thread Benjamin Herrenschmidt
This improves the way the 4xx PCI-E code handles checking for a link and adds explicit testing of CRS result codes on config space accesses. This should make it more reliable. Also, bridges with no link are now still created, though config space accesses beyond the root complex are filtered. This

[PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Benjamin Herrenschmidt
This makes 4xx embedded platforms re-assign all PCI resources as we pretty much never care about what the various firmwares have done on these, it's generally not compatible with the way the kernel will map the bridges. We still need to also enable bus renumbering on some of them, but I will do th

[0/3] Add RapidIO support to powerpc architecture with memory mapping

2007-12-13 Thread Zhang Wei
Hi, Those patches add RapidIO support to powerpc archiecture with memory mapping as below: [1/3] Copy the arch/ppc RapidIO support to arch/powerpc [2/3] Make the arch/powerpc RapidIO support workable with of-device and add memory mapping support. [3/3] Add the memory mapping support to rion

[PATCH 3/3] Add memory mapping support to rionet driver.

2007-12-13 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- drivers/net/Kconfig | 10 ++ drivers/net/rionet.c | 337 +- 2 files changed, 345 insertions(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index e8d69b0..b1129cc 100644

[PATCH 17/20] [POWERPC] Base support for 440SPe "Katmai" eval board

2007-12-13 Thread Benjamin Herrenschmidt
This adds base support for the Katmai board, including PCI-X and PCI-Express (but no RTC, nvram, etc... yet). Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Acked-by: Stefan Roese <[EMAIL PROTECTED]> --- As for Taishan, the bootwrapper code can be simplified. In fact, we probably don't

Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-13 Thread Or Gerlitz
Roland Dreier wrote: > I think the right fix for iSER would be to make iSER work even for > devices that don't support FMRs. For example cxgb3 doesn't implement > FMRs so if anyone ever updates iSER to work on iWARP and not just IB, > then this is something that has to be tackled anyway. Then ehc

[PATCH 14/20] [POWERPC] Add mfspr/mtspr inline macros to 4xx bootwrapper

2007-12-13 Thread Benjamin Herrenschmidt
The 4xx bootwrapper occasionally needs to access SPR registers, this adds mfspr/mtspr wrappers to it. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- === arch/powerpc/boot/reg.h |8 1 file changed, 8 inser

[PATCH 20/20] [POWERPC] 4xx: Add 440SPe revA runtime detection to PCIe

2007-12-13 Thread Benjamin Herrenschmidt
From: Stefan Roese <[EMAIL PROTECTED]> This patch adds runtime detection of the 440SPe revision A chips. These chips are equipped with a slighly different PCIe core and need special/ different initialization. The compatible node is changed to "plb-pciex-440spe" ("A" and "B" dropped). This is neede

[PATCH 1/3] Move arch/ppc/syslib/ppc85xx_rio.c to arch/powerpc/sysdev/fsl_rio.c

2007-12-13 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c | 932 + 1 files changed, 932 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/sysdev/fsl_rio.c diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fs

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Stefan Roese
On Thursday 13 December 2007, Benjamin Herrenschmidt wrote: > This makes 4xx embedded platforms re-assign all PCI resources as we > pretty much never care about what the various firmwares have done on > these, it's generally not compatible with the way the kernel will map > the bridges. > > We stil

[PATCH 1/2] Make setjmp/longjmp code generic

2007-12-13 Thread Michael Neuling
This makes the setjmp/longjmp code used by xmon, generically available to other code. It also removes the requirement for debugger hooks to be only called on 0x300 (data storage) exception and adds some documentation. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- arch/powerpc/kernel/mi

[PATCH 0/2] Add crashdump shutdown hooks

2007-12-13 Thread Michael Neuling
The following patches add crashdump shutdown hooks for POWERPC. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- Fixes stupid variable name noticed by Olof. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/li

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Stefan Roese
On Thursday 13 December 2007, Stefan Roese wrote: > On Thursday 13 December 2007, Benjamin Herrenschmidt wrote: > > This makes 4xx embedded platforms re-assign all PCI resources as we > > pretty much never care about what the various firmwares have done on > > these, it's generally not compatible w

[PATCH 2/2] celleb: split machine definition

2007-12-13 Thread Ishizaki Kou
This patch splits machine definition for celleb into two definitoins, one is for celleb_beat, and another is for celleb_native. Though this patch looks complex because of sorting some functions, there are no more semantic changes than that for the splitting. Signed-off-by: Kou Ishizaki <[EMAIL PRO

[PATCH 1/2] cleanup calling mmio_nvram_init

2007-12-13 Thread Ishizaki Kou
This patch adds conditional initialization for mmio_nvram_init(). Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- Here is the previous discussion: http://ozlabs.org/pipermail/linuxppc-dev/2007-December/047435.html Index: linux-powerpc-git/arch/powerpc/platforms/cell/setup.c ===

[PATCH 2/2] kdump shutdown hook support

2007-12-13 Thread Michael Neuling
This adds hooks into the default_machine_crash_shutdown so drivers can register a function to be run in the first kernel before we hand off to the second kernel. This should only be used in exceptional circumstances, like where the device can't be reset in the second kernel alone (as is the case w

[PATCH 0/6] PS3: gelic: gelic updates for 2.6.25

2007-12-13 Thread Masakazu Mokuno
Hi, Here is a set of updates for PS3 gelic network driver. This patch set requires other patches which were already submitted by Geert (http://marc.info/?l=linux-kernel&m=119626095605487). [1] PS3: gelic: Fix the wrong dev_id passed [2] PS3: gelic: Add endianness macros

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Benjamin Herrenschmidt
On Thu, 2007-12-13 at 10:42 +0100, Stefan Roese wrote: > On Thursday 13 December 2007, Benjamin Herrenschmidt wrote: > > This makes 4xx embedded platforms re-assign all PCI resources as we > > pretty much never care about what the various firmwares have done on > > these, it's generally not compat

Re: [RFC] ehea: kdump support using new shutdown hook

2007-12-13 Thread Subrata Modak
Do you think we can improve upon our own LTP-KDUMP test cases housed here: http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kdump/, because of your changes below: --Subrata On Wed, 2007-12-12 at 17:53 +0100, Thomas Klein wrote: > This patch adds kdump support using the new PPC crash shutdown hoo

Re: apm_emulation regression

2007-12-13 Thread Johannes Berg
> > That basically means X will break. That's why X broke on the latest > > ubuntu until I whacked some new scripts in them to force console > > switching, among other things. Possibly other apps that relied > > on /dev/apm_bios to be notified of system suspend/resume broke as well. > > Ah. I gue

Re: cpu frequency governor regression (?)

2007-12-13 Thread Johannes Berg
Ok, umm, sorry for bothering. This is actually a userspace problem. Because I had it written up already below is the mail I was composing; I was just checking whether the same would happen without the performance module loaded, and voila, the same *did* happen which lead me to investigate userspace

[PATCH 1/6] PS3: gelic: Fix the wrong dev_id passed

2007-12-13 Thread Masakazu Mokuno
PS3: gelic: Fix the wrong dev_id passed The device id for lv1_net_set_interrupt_status_indicator() would be wrong. This path would be invoked only in the case of the initialization failure. Signed-off-by: Masakazu Mokuno <[EMAIL PROTECTED]> --- drivers/net/ps3_gelic_net.c |2 +- 1 file chang

Re: [PATCH 1/2] cleanup calling mmio_nvram_init

2007-12-13 Thread Arnd Bergmann
On Thursday 13 December 2007, Ishizaki Kou wrote: > This patch adds conditional initialization for mmio_nvram_init(). Thanks! > Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> Acked-by: Arnd Bergmann <[EMAIL PROTECTED]> ___ Linuxppc-dev mailing list Li

[PATCH 4/6] PS3: gelic: remove duplicated ethtool handers

2007-12-13 Thread Masakazu Mokuno
PS3: gelic: remove duplicated ethtool handers Remove some ethtool handers, which the common ethtool handlers already has in functionality Signed-off-by: Masakazu Mokuno <[EMAIL PROTECTED]> --- drivers/net/ps3_gelic_net.c | 43 +++ 1 file changed, 3 inser

[PATCH 5/6] PS3: gelic: add support for port link status

2007-12-13 Thread Masakazu Mokuno
PS3: gelic: add support for port link status Add support for interrupt driven port link status detection. Signed-off-by: Masakazu Mokuno <[EMAIL PROTECTED]> --- drivers/net/ps3_gelic_net.c | 77 drivers/net/ps3_gelic_net.h |2 + 2 files changed,

[PATCH 6/6] PS3: gelic: Add support for dual network interface

2007-12-13 Thread Masakazu Mokuno
PS3: gelic: Add support for dual network interface Add support for dual network (net_device) interface so that ethernet and wireless can own separate ethX interface. - Export functions which are convenience for both interfaces - Move irq allocation/release code to driver probe/remove handlers

[PATCH 3/6] PS3: gelic: code cleanup

2007-12-13 Thread Masakazu Mokuno
PS3: gelic: code cleanup Code cleanup: - Use appropriate prefixes of names instead of fixed 'gelic_net' so that objects of the functions, variables and constants can be esitimate. - Remove definitions for IPSec offload of the gelic hardware. This functionality is never supported in PS3.

[PATCH 2/6] PS3: gelic: Add endianness macros

2007-12-13 Thread Masakazu Mokuno
PS3: gelic: Add endianness macros Mark the members of the structure for DMA descriptor proper endian and use appropriate accessor macros. As gelic driver works only on PS3, all these macros will be expanded null. Signed-off-by: Masakazu Mokuno <[EMAIL PROTECTED]> --- drivers/net/ps3_gelic_net.c

Re: [PATCH 2/2] celleb: split machine definition

2007-12-13 Thread Arnd Bergmann
On Thursday 13 December 2007, Ishizaki Kou wrote: > This patch splits machine definition for celleb into two definitoins, > one is for celleb_beat, and another is for celleb_native. Though this > patch looks complex because of sorting some functions, there are no > more semantic changes than that f

[PATCH] IB/ehca: Fix lock flag location, bump version number

2007-12-13 Thread Joachim Fenkes
Signed-off-by: Joachim Fenkes <[EMAIL PROTECTED]> --- This addresses a comment of Roland and bumps the version number. If it's not too late, please apply for 2.6.24. Thanks! drivers/infiniband/hw/ehca/ehca_classes.h |1 + drivers/infiniband/hw/ehca/ehca_main.c|2 +- drivers/infiniban

Re: [PATCH RFC 0/7] "NAND on UPM" and related patches

2007-12-13 Thread Anton Vorontsov
On Wed, Dec 12, 2007 at 03:06:54PM -0600, Scott Wood wrote: [...] > >Given that, personally I'd want to lockless variant to stay. > > > >So, you still want to get rid of it? > > Yes, in the absence of benchmarking that shows it makes a real > difference. Benchmarking shows no difference in throu

Re: [PATCH/RFC] CPM1: implement GPIO API

2007-12-13 Thread Scott Wood
On Wed, Dec 12, 2007 at 05:42:06PM +0100, Jochen Friedrich wrote: > +int cpm_init_par_io(void) > +{ > + int ret; > + struct device_node *np; > + const u32 *num_ports; > + int i; > + > + np = of_find_node_by_name(NULL, "par_io"); > + if (!np) { > + ret = -ENOENT;

[PATCH 1/4] nand base: Don't panic if a controller driver does ecc its own way.

2007-12-13 Thread Scott Wood
Some hardware, such as the enhanced local bus controller used on some mpc83xx chips, does ecc transparently when reading and writing data, rather than providing a generic calculate/correct mechanism that can be exported to the nand subsystem. The subsystem should not BUG() when calculate, correct,

[PATCH 3/4] mpc8313erdb: Add NOR flash to the device tree.

2007-12-13 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8313erdb.dts |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b/arch/powerpc/boot/dts/mpc8313erdb.dts index 86e851a..8c7b645 100644 --- a/arch/powerpc/b

[PATCH 2/4] mpc8313erdb: Add NAND to device tree, and call of_platform_bus_probe().

2007-12-13 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8313erdb.dts | 37 + arch/powerpc/platforms/83xx/mpc8313_rdb.c | 17 + 2 files changed, 54 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b

[PATCH] mpc834x_mds: Fix whitespace and call of_platform_bus_probe().

2007-12-13 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/83xx/mpc834x_mds.c | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index a81bb3c..459fb72 10

[PATCH 2/4] nand base: Give drivers a chance to do late initialization.

2007-12-13 Thread Scott Wood
Some nand controllers, such as the Freescale enhanced local bus controller, need to do late initialization based on details of the chip that has been probed, such as chip size, large/small pages, etc. A late_init() callback method is added to allow this. Signed-off-by: Scott Wood <[EMAIL PROTECTE

[PATCH 3/4] mtd: Factor out OF partition support from the NOR driver.

2007-12-13 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/mtd/Kconfig|8 drivers/mtd/Makefile |1 + drivers/mtd/maps/physmap_of.c | 88 --- drivers/mtd/ofpart.c | 68 +++ include/linux

[PATCH 4/4] MPC8313 enhanced Local Bus Controller NAND support.

2007-12-13 Thread Scott Wood
Signed-off-by: Nick Spence <[EMAIL PROTECTED]> Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/mtd/nand/Kconfig |9 + drivers/mtd/nand/Makefile|1 + drivers/mtd/nand/fsl_elbc_nand.c | 1281 ++ 3 files changed, 1291 insertions(+)

Re: [PATCH] IB/ehca: Fix lock flag location, bump version number

2007-12-13 Thread Roland Dreier
applied, thanks ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 1/4] mpc8313erdb: Fix whitespace.

2007-12-13 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/83xx/mpc8313_rdb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c b/arch/powerpc/platforms/83xx/mpc8313_rdb.c index 33766b8..6fb8299 100644 --- a/arch/po

[PATCH 4/4] mpc8313erdb: Update defconfig with NOR flash, NAND flash, and JFFS enabled.

2007-12-13 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/configs/mpc8313_rdb_defconfig | 45 --- 1 files changed, 33 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/configs/mpc8313_rdb_defconfig b/arch/powerpc/configs/mpc8313_rdb_defconfig index c9af905..

Re: [PATCH/RFC] CPM1: implement GPIO API

2007-12-13 Thread Scott Wood
On Thu, Dec 13, 2007 at 03:53:45AM +0300, Anton Vorontsov wrote: > No. This is how gpio api is working currently. With gpiolib[1], most of > these functions will be controller-specific. IIRC, gpiolib is still in > early development stage, so, for now, we have to limit us to one gpio > chip controll

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Josh Boyer
On Thu, 13 Dec 2007 18:38:46 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > This makes 4xx embedded platforms re-assign all PCI resources as we > pretty much never care about what the various firmwares have done on > these, it's generally not compatible with the way the kernel will map

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Josh Boyer
On Thu, 13 Dec 2007 18:38:46 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > This makes 4xx embedded platforms re-assign all PCI resources as we > pretty much never care about what the various firmwares have done on > these, it's generally not compatible with the way the kernel will map

Re: [PATCH 1/20] [POWERPC] Reworking machine check handling and Fix 440/440A

2007-12-13 Thread Josh Boyer
On Thu, 13 Dec 2007 18:38:31 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > This adds a cputable function pointer for the CPU-side machine > check handling. The semantic is still the same as the old one, > the one in ppc_md. overrides the one in cputable, though > ultimately we'll want

Re: [ofa-general] Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-13 Thread Caitlin Bestler
On Dec 13, 2007 12:30 AM, Or Gerlitz <[EMAIL PROTECTED]> wrote: > Roland Dreier wrote: > > I think the right fix for iSER would be to make iSER work even for > > devices that don't support FMRs. For example cxgb3 doesn't implement > > FMRs so if anyone ever updates iSER to work on iWARP and not ju

Re: [PATCH/RFC] CPM1: implement GPIO API

2007-12-13 Thread Arnd Bergmann
On Thursday 13 December 2007, Scott Wood wrote: > > +} > > +EXPORT_SYMBOL_GPL(gpio_request); > > This is an API, not internals; can we stick with plain EXPORT_SYMBOL()? The architecture independent API posted by David Brownell uses _GPL, see http://lkml.org/lkml/2007/11/9/141. I'd vote for _GPL

Re: apm_emulation regression

2007-12-13 Thread Benjamin Herrenschmidt
On Thu, 2007-12-13 at 12:40 +0100, Johannes Berg wrote: > > > That basically means X will break. That's why X broke on the latest > > > ubuntu until I whacked some new scripts in them to force console > > > switching, among other things. Possibly other apps that relied > > > on /dev/apm_bios to be

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Benjamin Herrenschmidt
> This one is slightly broken in my opinion. You've added > the ppc_pci_flags to all of these platforms, which is fine for your > intended goal. But now all of these platforms _have_ to compile with > PCI enabled or they'll break with: > > arch/powerpc/platforms/built-in.o: In function `walnut_

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Benjamin Herrenschmidt
On Thu, 2007-12-13 at 13:05 -0600, Josh Boyer wrote: > On Thu, 13 Dec 2007 18:38:46 +1100 > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > This makes 4xx embedded platforms re-assign all PCI resources as we > > pretty much never care about what the various firmwares have done on > > thes

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Josh Boyer
On Fri, 14 Dec 2007 07:37:23 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > This one is slightly broken in my opinion. You've added > > the ppc_pci_flags to all of these platforms, which is fine for your > > intended goal. But now all of these platforms _have_ to compile with > >

Re: [PATCH 1/20] [POWERPC] Reworking machine check handling and Fix 440/440A

2007-12-13 Thread Benjamin Herrenschmidt
> This breaks non-44x based arch/ppc platforms. For example ep405 in > arch/ppc fails with: > > /home/jwboyer/src/linux-2.6/arch/ppc/kernel/traps.c: In function > ‘machine_check_440A’: > /home/jwboyer/src/linux-2.6/arch/ppc/kernel/traps.c:260: error: ‘MCSR_IB’ > undeclared (first use in this f

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Benjamin Herrenschmidt
On Thu, 2007-12-13 at 14:40 -0600, Josh Boyer wrote: > > > > This one is slightly broken in my opinion. You've added > > > the ppc_pci_flags to all of these platforms, which is fine for > your > > > intended goal. But now all of these platforms _have_ to compile > with > > > PCI enabled or they

Re: [ofa-general] Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-13 Thread Joachim Fenkes
[EMAIL PROTECTED] wrote on 13.12.2007 20:22:49: > On Dec 13, 2007 12:30 AM, Or Gerlitz <[EMAIL PROTECTED]> wrote: > > The current implementation of the open iscsi initiator makes sure to > > issue commands in thread (sleepable) context, see iscsi_xmitworker and > > references to it in drivers/scsi

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Josh Boyer
On Fri, 14 Dec 2007 07:52:57 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-12-13 at 14:40 -0600, Josh Boyer wrote: > > > > > > This one is slightly broken in my opinion. You've added > > > > the ppc_pci_flags to all of these platforms, which is fine for > > your > > >

RE: [ofa-general] Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-13 Thread Caitlin Bestler
> -Original Message- > From: Joachim Fenkes [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 13, 2007 1:00 PM > To: Caitlin Bestler > Cc: Arnd Bergmann; [EMAIL PROTECTED]; OF-General; LKML; > linuxppc-dev@ozlabs.org; Or Gerlitz; Roland Dreier; Stefan Roscher > Subject: Re: [ofa-genera

Re: [PATCH 2/4] mpc8313erdb: Add NAND to device tree, and call of_platform_bus_probe().

2007-12-13 Thread Olof Johansson
On Thu, Dec 13, 2007 at 11:17:14AM -0600, Scott Wood wrote: > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> > diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c > b/arch/powerpc/platforms/83xx/mpc8313_rdb.c > index 6fb8299..3ad482a 100644 > --- a/arch/powerpc/platforms/83xx/mpc8313_rdb.c > +++

RE: [ofa-general] Re: [ewg] Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-13 Thread Joachim Fenkes
"Caitlin Bestler" <[EMAIL PROTECTED]> wrote on 13.12.2007 22:08:34: > To clarify, an FMR Work Request is simply posted to the SendQ like > any other Work Request (of course the QP has to be privileged, or > it will complete in error). An SQ Post should never block. This would require hardware su

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Benjamin Herrenschmidt
On Thu, 2007-12-13 at 15:11 -0600, Josh Boyer wrote: > Well, there is physical PCI hardware on the boards, yes. But what if > people have no intention of using it? E.g. they have no devices, etc. > Now we're requiring PCI support to be built into the kernel. > > I'm just being pedantic about ke

Re: [PATCH 19/20] [POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources

2007-12-13 Thread Josh Boyer
On Fri, 14 Dec 2007 08:37:26 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-12-13 at 15:11 -0600, Josh Boyer wrote: > > Well, there is physical PCI hardware on the boards, yes. But what if > > people have no intention of using it? E.g. they have no devices, etc. > > No

Device Tree updates for xilinx.

2007-12-13 Thread Stephen Neuendorffer
These patches synchronize all the in-kernel drivers to use the compatible names generated by the UBoot BSP generator. (at git://git.xilinx.com/gen-mhs-devtree.git) The patches to make this work are coming shortly: patches 1-2 are provided for context only... They're not ready for mainline. They

[PATCH 1/7] bootwrapper: Add a firmware-independent "raw" target.

2007-12-13 Thread Stephen Neuendorffer
From: Grant Likely <[EMAIL PROTECTED]> This target produces a flat binary rather than an ELF file, fixes the entry point at the beginning of the image, and takes a complete device tree with no fixups needed. The device tree must have labels on /#address-cells, the timebase frequency, and the memo

[PATCH 2/7] [POWERPC] Xilinx: clear data caches.

2007-12-13 Thread Stephen Neuendorffer
This code is needed to boot without a boot loader. Grant: I'm not sure where the right place to put this is. I'm assuming we'll actually need some boot code that is not generic? Also, note that there is a V4FX errata workaround in arch/ppc/boot/head.S, which probably also needs to get pulled

[PATCH 6/7] [POWERPC] Xilinx: Add correct compatible list for device tree bus bindings.

2007-12-13 Thread Stephen Neuendorffer
Includes both flavors of plb, opb, dcr, and a pseudo 'compound' bus for representing compound peripherals containing more than one logical device. Signed-off-by: Stephen Neuendorffer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/40x/virtex.c | 12 +++- 1 files changed, 11 insertions(+)

[PATCH 3/7] [POWERPC] Xilinx: Uartlite: Make console output actually work.

2007-12-13 Thread Stephen Neuendorffer
From: Grant Likely <[EMAIL PROTECTED]> Signed-off-by: Grant Likely <[EMAIL PROTECTED]> Fixed to apply against 2.6.24-rc5, and remove DEBUG information. Signed-off-by: Stephen Neuendorffer <[EMAIL PROTECTED]> --- drivers/serial/uartlite.c | 121 + 1 f

[PATCH 4/7] [POWERPC] Xilinx: update compatible list for interrupt controller

2007-12-13 Thread Stephen Neuendorffer
These values now match what is generated by the uboot BSP generator. Signed-off-by: Stephen Neuendorffer <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/xilinx_intc.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/xilinx_intc.c b/arch/powerpc/sysd

[PATCH 5/7] [POWERPC] Xilinx: Update compatible to use values generated by BSP generator.

2007-12-13 Thread Stephen Neuendorffer
Mainly, this involves two changes: 1) xilinx->xlnx (recognized standard is to use the stock ticker) 2) In order to have the device tree focus on describing what the hardware is as exactly as possible, the compatible strings contain the full IP name and IP version. Signed-off-by: Stephen Neuendor

[PATCH 7/7] [POWERPC] Xilinx: Update booting-without-of.

2007-12-13 Thread Stephen Neuendorffer
This now better describes what the UBoot device tree generator actually does. In particular: 1) Nodes have a label derived from the device name, and a node name derived from the device type. 2) Usage of compound nodes (representing more than one device in the same IP) which actually works. Thi

RE: [ofa-general] Re: [ewg] Re: [PATCH] IB/ehca: SerializeHCA-related hCalls on POWER5

2007-12-13 Thread Sean Hefty
>To clarify, an FMR Work Request is simply posted to the SendQ like >any other Work Request (of course the QP has to be privileged, or >it will complete in error). An SQ Post should never block. FMR's as defined by the IB spec and that created by Mellanox are not the same. They, unfortunately, use

Re: apm_emulation regression

2007-12-13 Thread Benjamin Herrenschmidt
On Fri, 2007-12-14 at 11:04 +1100, Benjamin Herrenschmidt wrote: > On Fri, 2007-12-14 at 01:10 +0100, Rafael J. Wysocki wrote: > > > > Hmm. > > > > I'm not that familiar with the APM emulation code, but the description > > of the > > problem above suggests that the APM emulation can install a su

Re: apm_emulation regression

2007-12-13 Thread Benjamin Herrenschmidt
On Fri, 2007-12-14 at 01:10 +0100, Rafael J. Wysocki wrote: > > Hmm. > > I'm not that familiar with the APM emulation code, but the description > of the > problem above suggests that the APM emulation can install a suspend > notifier for this purpose. It can use the new notifier that happens be

Re: [PATCH 2/7] [POWERPC] Xilinx: clear data caches.

2007-12-13 Thread Benjamin Herrenschmidt
On Thu, 2007-12-13 at 15:43 -0800, Stephen Neuendorffer wrote: > This code is needed to boot without a boot loader. > > Grant: I'm not sure where the right place to put this is. I'm assuming > we'll actually need some boot code that is not generic? Also, note that > there is a V4FX errata wo

Re: apm_emulation regression

2007-12-13 Thread Rafael J. Wysocki
On Wednesday, 12 of December 2007, Johannes Berg wrote: > > On Wed, 2007-12-12 at 13:45 +1100, Benjamin Herrenschmidt wrote: > > I only just noticed a huge regression that was introduced when we moved > > PowerPC to the generic APM emulation code instead of our own. I'm in > > large part to blame

Re: [PATCH 2/7] [POWERPC] Xilinx: clear data caches.

2007-12-13 Thread Benjamin Herrenschmidt
On Fri, 2007-12-14 at 11:07 +1100, Benjamin Herrenschmidt wrote: > On Thu, 2007-12-13 at 15:43 -0800, Stephen Neuendorffer wrote: > > This code is needed to boot without a boot loader. > > > > Grant: I'm not sure where the right place to put this is. I'm assuming > > we'll actually need some b

RE: [PATCH 2/7] [POWERPC] Xilinx: clear data caches.

2007-12-13 Thread Stephen Neuendorffer
Unfortunately, I think your right... The asm code seems so clean at the moment, I don't really want be the one to start tarnishing it with a bunch of little fixups.. :) Steve > -Original Message- > From: Benjamin Herrenschmidt [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 13, 200

Re: [PATCH] ipic: ack only for edge interrupts

2007-12-13 Thread Kumar Gala
On Dec 4, 2007, at 5:01 AM, Li Yang wrote: > Only external interrupts in edge detect mode support ack operation. > Therefore, in most cases ack is not needed. The patch makes ipic > ack only when it's needed. This could boost over all system > performance. > > Signed-off-by: Li Yang <[EMAIL P

[PATCH 0/6] xics.c and time.c optimizations

2007-12-13 Thread Milton Miller
The following patches against for-2.2.25 do some optimizations related to the usage smp_processor_id(). The xics one has been tested on SMP on 2.6.23, and still applies cleanly. In time.c I started with the per_cpu to __get_cpu_var transformations which affect ppc64 (the calls were added in 2.6

[PATCH 1/6] push down or eliminate smp_processor_id in xics

2007-12-13 Thread Milton Miller
Delay callling smp_processor_id until its needed. The per-processor interrupt request register and current processor priority register are only accessed on the current cpu. In fact the hypervisor doesn't even let us choose this. The only function to use cpu twice is xics_migrate_irqs_away, not

[PATCH 3/6] use __get_cpu_var in time.c

2007-12-13 Thread Milton Miller
use __get_cpu_var(x) instead of per_cpu(x, smp_processor_id()), as it is optimied on ppc64 to access the current cpus per-cpu offset directly. Its local_paca.offset instead of TOC->paca[local_paca->processor_id].offset. This is the trivial portion, two functions with one use each. Signed-off-by:

[PATCH 4/6] timer interrupt: use a struct for two per_cpu varables

2007-12-13 Thread Milton Miller
timer_interrupt was calculating per_cpu_offset several times, having to start from the toc because of potential aliasing issues. Placing both decrementer per_cpu varables in a struct and calculating the address once with __get_cpu_var results in better code on both 32 and 64 bit. Signed-off-by: M

[PATCH 5/6] depend on ->initialized in calc_steal_time

2007-12-13 Thread Milton Miller
If CPU_FTR_PURR is not set, we will never set cpu_purr_data->initialized. Checking via __get_cpu_var on 64 bit avoids one dependent load compared to cpu_has_feature in the not present case, and is always required when it is present. The code is under CONFIG_VIRT_CPU_ACCOUNTING so 32 bit will not b

[PATCH 6/6] optimize account_system_vtime

2007-12-13 Thread Milton Miller
We have multiple calls to has_feature being inlined, but gcc can't be sure that the store via get_paca() doesn't alias the path to cur_cpu_spec->feature. Reorder to put the calls to read_purr and read_spurr adjacent to each other. To add a sense of consistency, reorder the remaining lines to perf

any more patches for 2.6.24?

2007-12-13 Thread Paul Mackerras
Currently I have just this one bugfix queued up to go to Linus for 2.6.24: Stephen Rothwell (1): [POWERPC] iSeries: don't printk with HV spinlock held Does anyone else have bugfixes that need to go in 2.6.24? Paul. ___ Linuxppc-dev mailing list L

Re: [PATCH] mpc834x_mds: Fix whitespace and call of_platform_bus_probe().

2007-12-13 Thread Kumar Gala
On Dec 13, 2007, at 11:19 AM, Scott Wood wrote: > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> > --- > arch/powerpc/platforms/83xx/mpc834x_mds.c | 21 +++-- > 1 files changed, 19 insertions(+), 2 deletions(-) applied. - k ___ Linuxp

[PATCH 0/15] [POWERPC] PCI updates & merges

2007-12-13 Thread Benjamin Herrenschmidt
(THIS SERIES STILL NEEDS MORE TESTING) (This version is rebased on top of current for-2.6.25, my remaining 4xx patches will apply on top of this) This serie of patches converts the 32 bits PCI code to use the generic pci_assign_unassigned_resources() instead of its own assignment code which was

[PATCH 2/6] init_decrementer_clockevent can be static __init

2007-12-13 Thread Milton Miller
as its only called from time_init, which is __init. Also remove unneeded forward declaration. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> --- Index: kernel/arch/powerpc/kernel/time.c === --- kernel.orig/arch/powerpc/kernel/time

[PATCH 1/15] [POWERPC] pci32: remove bogus alignment message

2007-12-13 Thread Benjamin Herrenschmidt
There's a stale & bogus piece of code in 32 bits PCI code that complains about ISA related alignment issues. Just remove it. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_32.c |6 -- 1 file changed, 6 deletions(-) --- linux-merge.orig/arch/powerpc

[PATCH 2/15] [POWERPC] pci32: use generic pci_assign_unassign_resources

2007-12-13 Thread Benjamin Herrenschmidt
This makes the 32 bits PowerPC PCI code use the generic code to assign resources to devices that had unassigned or conflicting resources. This allow to remove the local implementation that was incomplete and could not assign for example a PCI<->PCI bridge from scratch, which is needed on various e

[PATCH 3/15] [POWERPC] pci32: Remove PowerMac P2P bridge IO hack

2007-12-13 Thread Benjamin Herrenschmidt
The 32 bits PowerPC PCI code has a hack for use by some PowerMacs to try to re-open PCI<->PCI bridge IO resources that were closed by the firmware. This is no longer necessary as the generic code will now do that for us. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/

[PATCH 4/15] [POWERPC] pci32: Add flags modifying the PCI code behaviour

2007-12-13 Thread Benjamin Herrenschmidt
This adds to the 32 bits PCI code some flags, replacing the old pci_assign_all_busses global, that allow to control various aspects of the PCI probing, such as whether to re-assign all resources or not, or to not try to assign anything at all. This also adds the flag x86 already has to avoid ISA a

[PATCH 5/15] [POWERPC] pci32: Remove obsolete PowerMac bus number hack

2007-12-13 Thread Benjamin Herrenschmidt
The 32 bits PCI code carries an old hack that was only useful for G5 machines. Nowdays, the 32 bits kernel doesn't support any of those machines anymore so the hack is basically never used, remove it. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_32.c |

[PATCH 6/15] [POWERPC] pci32: Add platform option to enable /proc PCI domains

2007-12-13 Thread Benjamin Herrenschmidt
This adds flags the platforms can use to enable domain numbers in /proc/bus/pci. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci-common.c | 16 arch/powerpc/kernel/pci_64.c |8 include/asm-powerpc/pci-bridge.h |5 +

[PATCH 7/15] [POWERPC] Merge pcibios_resource_to_bus/bus_to_resource

2007-12-13 Thread Benjamin Herrenschmidt
This merges the PowerPC 32 and 64 bits version of pcibios_resource_to_bus and pcibios_bus_to_resource(). Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci-common.c | 36 + arch/powerpc/kernel/pci_32.c | 32 --

[PATCH 8/15] [POWERPC] Merge PCI resource fixups

2007-12-13 Thread Benjamin Herrenschmidt
The PCI code in 32 and 64 bits fixes up resources differently. 32 bits uses a header quirk plus handles bridges in pcibios_fixup_bus() while 64 bits does things in various places depending on whether you are using OF probing, using PCI hotplug, etc... This merges those by basically using the 32 b

[PATCH 9/15] [POWERPC] Merge PCI resource allocation & assignment

2007-12-13 Thread Benjamin Herrenschmidt
The 32 bits PCI code now uses the generic code for assigning unassigned resources and an algorithm similar to x86 for claiming existing ones. This works far better than the 64 bits code which basically can only claim existing ones (pci_probe_only=1) or would fall appart completely. This merges th

[PATCH 10/15] [POWERPC] fix iSeries PCI resource management

2007-12-13 Thread Benjamin Herrenschmidt
The way iSeries manages PCI IO and Memory resources is a bit strange and is based on overriding the content of those resources with home cooked ones afterward. This changes it a bit to better integrate with the new resource handling so that the "virtual" tokens that iSeries replaces resources with

  1   2   >