[PATCH 0/25] powerpc: 4xx PCI, PCI-X and PCI-Express support among others

2007-12-06 Thread Benjamin Herrenschmidt
Here's a set of patches that bring PCI, PCI-X and PCI-Express support to 4xx on arch/powerpc. It also changes/fixed various bits and pieces, such as a bit of rework of arch/powerpc/boot 4xx code, adding a couple of new platforms along the way. There are some issues with the SCSI stack vs. non-coh

[PATCH 1/25] powerpc: Make isa_mem_base common to 32 and 64 bits

2007-12-06 Thread Benjamin Herrenschmidt
This defines isa_mem_base on both 32 and 64 bits (it used to be 32 bits only). This avoids a few ifdef's in later patches and potentially can allow support for VGA text mode on 64 bits powerpc. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- Small cleanup pre-requisite for my next p

[PATCH 2/25] powerpc: Merge pci_process_bridge_OF_ranges()

2007-12-06 Thread Benjamin Herrenschmidt
This patch merges the 32 and 64 bits implementations of pci_process_bridge_OF_ranges(). The new function is cleaner than both the old ones supports 64 bits ranges on ppc32 which is necessary for the 4xx port. It also adds some better (hopefully) output to the kernel log which should help disagnose

[PATCH 3/25] powerpc: Fix powerpc 32 bits resource fixup for 64 bits resources

2007-12-06 Thread Benjamin Herrenschmidt
The 32bits powerpc resource fixup code uses unsigned longs to do the offseting of resources which overflows on platforms such as 4xx where resources can be 64 bits. This fixes it by using resource_size_t instead. However, the IO stuff does rely on some 32 bits arithmetic, so we hack by cropping t

[PATCH 4/25] powerpc: Reworking machine check handling and Fix 440/440A

2007-12-06 Thread Benjamin Herrenschmidt
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 to change that so the CPU gets first. This removes CONFIG_440A which was a problem for multip

[PATCH 5/25] powerpc: Add xmon function to dump 44x TLB

2007-12-06 Thread Benjamin Herrenschmidt
This adds a function to xmon to dump the content of the 44x processor TLB with a little bit of decoding (but not much). Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- Did that to track down some machine checks I was having while working on PCI support due to 32/64 bits resource scr

[PATCH 6/25] powerpc: Change 32 bits PCI message about resource allocation

2007-12-06 Thread Benjamin Herrenschmidt
The 32 bits PCI code will display a rather scary error message PCI: Cannot allocate resource region N of device XXX at boot when the existing setup of a device as left by the firmware doesn't match the kernel needs and the device needs to be moved. This is often not an error at all, as the ker

[PATCH 7/25] powerpc: Add of_translate_dma_address

2007-12-06 Thread Benjamin Herrenschmidt
This adds a variant of of_translate_address that uses the dma-ranges property instead of "ranges", it's to be used by PCI code in parsing the dma-ranges property. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/kernel/prom_parse.c | 20 include/a

[PATCH 8/25] powerpc: Improve support for 4xx indirect DCRs

2007-12-06 Thread Benjamin Herrenschmidt
Accessing indirect DCRs is done via a pair of address/data DCRs. Such accesses are thus inherently racy, vs. interrupts, preemption and possibly SMP if 4xx SMP cores are ever used. This updates the mfdcri/mtdcri macros in dcr-native.h (which were so far unused) to use a spinlock. In addition, ad

[PATCH 9/25] powerpc: 4xx PLB to PCI-X support

2007-12-06 Thread Benjamin Herrenschmidt
This adds base support code for the 4xx PCI-X bridge. It also provides placeholders for the PCI and PCI-E version but they aren't supported with this patch. The bridges are configured based on device-tree properties. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- Tested on 440GP o

[PATCH 10/25] powerpc: 4xx PLB to PCI 2.x support

2007-12-06 Thread Benjamin Herrenschmidt
This adds to the previous patch the support for the 4xx PCI 2.x bridges. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- This version implement the basic support for the 405GP bridge, I haven't yet looked at differences that other implementations may have for the PCI 2.x part. arc

[PATCH 11/25] powerpc: 4xx PLB to PCI Express support

2007-12-06 Thread Benjamin Herrenschmidt
This adds to the previous 2 patches the support for the 4xx PCI Express cells as found in the 440SPe revA, revB and 405EX. Unfortunately, due to significant differences between these, and other interesting "features" of those pieces of HW, the code isn't as simple as it is for PCI and PCI-X and so

[PATCH 12/25] powerpc: PCI support for 4xx Ebony board

2007-12-06 Thread Benjamin Herrenschmidt
This wires up the 4xx PCI support & device tree bits for 440GP based Ebony platform. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/ebony.dts | 41 +++- 1 file changed, 36 insertions(+), 5 deletions(-) Index: linux-work/

[PATCH 13/25] powerpc: Remove useless volatiles in udbg_16550.c

2007-12-06 Thread Benjamin Herrenschmidt
This removes "volatile" from the MMIO pointer udbg_comport in udbg_16550.c driver, it's useless and makes checkpatch.pl complain when adding things to this file. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/kernel/udbg_16550.c | 10 +- 1 file changed, 5 in

[PATCH 14/25] powerpc: Add early udbg support for 40x processors

2007-12-06 Thread Benjamin Herrenschmidt
This adds some basic real mode based early udbg support for 40x in order to debug things more easily Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig.debug | 13 +++ arch/powerpc/kernel/misc_32.S | 39

[PATCH 15/25] powerpc: early debug forces console log level to max

2007-12-06 Thread Benjamin Herrenschmidt
This patch makes the early debug option force the console loglevel to the max. The early debug option is meant to catch messages very early in the kernel boot process, in many cases, before the kernel has a chance to parse the "debug" command line argument. Thus it makes sense when CONFIG_PPC_EARLY

[PATCH 16/25] powerpc: EP405 boards support for arch/powerpc

2007-12-06 Thread Benjamin Herrenschmidt
Brings EP405 support to arch/powerpc. The IRQ routing for the CPLD comes from a device-tree property, PCI is working to the point where I can see the video card, USB device, and south bridge. This should work with both EP405 and EP405PC. I've not totally figured out how IRQs are wired on this har

[PATCH 17/25] powerpc: Add PCI to Walnut platform

2007-12-06 Thread Benjamin Herrenschmidt
This wires up the 4xx PCI support & device-tree bits for the 405GP based Walnut platform. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- This one is untested, haven't had time to dig my walnut and put it back into working condition. Josh, can you verify that IRQs are working (routi

[PATCH 18/25] powerpc: Base support for 440GX Taishan eval board

2007-12-06 Thread Benjamin Herrenschmidt
From: Hugh Blemings <[EMAIL PROTECTED]> Signed-off-by: Hugh Blemings <[EMAIL PROTECTED]> Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- This needs a bit of cleanup still, probably not to be merged as-is just yet (like using mtdcri/mfdcri for CPR access). arch/powerpc/Kconfig.deb

[PATCH 19/25] powerpc: Wire up PCI on Bamboo board

2007-12-06 Thread Benjamin Herrenschmidt
This adds the device-tree bits & call to ppc4xx_pci_find_bridges() to make PCI work on the Bamboo board Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/bamboo.dts | 40 ++- 1 file changed, 39 insertions(+), 1 deletion(-)

[PATCH 20/25] powerpc: Wire up 440EP USB controlle support to Bamboo board

2007-12-06 Thread Benjamin Herrenschmidt
This adds the definition of the on-chip OHCI controller to the Bamboo board's device-tree. This is enough to get it probed and working, though a separate patch fixing a bug in the OHCI driver is needed to make it reliable. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerp

[PATCH 21/25] powerpc: Adds decoding of 440SPE memory size to boot wrapper library

2007-12-06 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 22/25] powerpc: Add mfspr/mtspr inline macros to 4xx bootwrapper

2007-12-06 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 23/25] powerpc: Rework 4xx clock probing in boot wrapper

2007-12-06 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 24/25] powerpc: Base support for 440SPe "Katmai" eval board

2007-12-06 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]> --- As for Taishan, the bootwrapper code can be simplified. In fact, we probably don't need to probe clocks & memsize off the chi

[PATCH 25/25] powerpc: 4xx PCI-E Link setup improvements

2007-12-06 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

[RFC/PATCH 0/10] powerpc: PCI updates & merges

2007-12-06 Thread Benjamin Herrenschmidt
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 unable to deal with unassigned PCI<->PCI bridges among other issues. It then merges the resource fixup and allocation code between 32 and 64 bits (m

[RFC/PATCH 1/10] powerpc: pci32: remove bogus alignment message

2007-12-06 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(-) Index: linux-work/arch/powerpc/ke

[RFC/PATCH 2/10] powerpc: pci32: use generic pci_assign_unassign_resources

2007-12-06 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

[RFC/PATCH 3/10] powerpc: pci32: Remove PowerMac P2P bridge IO hack

2007-12-06 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/

[RFC/PATCH 4/10] powerpc: pci32: Add flags modifying the PCI code behaviour

2007-12-06 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

[RFC/PATCH 5/10] powerpc: pci32: Remove obsolete PowerMac bus number hack

2007-12-06 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 |

[RFC/PATCH 6/10] powerpc: pci32: Add platform option to enable /proc PCI domains

2007-12-06 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 | 20 arch/powerpc/kernel/pci_64.c | 12 include/asm-powerpc/pci-bridge.h |

[RFC/PATCH 7/10] powerpc: Merge pcibios_resource_to_bus/bus_to_resource

2007-12-06 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 --

[RFC/PATCH 8/10] powerpc: Merge PCI resource fixups

2007-12-06 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

Re: [PATCH] pci: Fix bus resource assignment on 32 bits with 64b resources

2007-12-06 Thread Geert Uytterhoeven
On Thu, 6 Dec 2007, Benjamin Herrenschmidt wrote: > On Wed, 2007-12-05 at 22:39 -0800, Greg KH wrote: > > > that is it can be either unsigned int, unsigned long or unsigned > > long > > > long... and we have no way to reliably printk that. > > > > We do this already just fine. Take a look in the

Re: [PATCH] pci: Fix bus resource assignment on 32 bits with 64b resources

2007-12-06 Thread Matthew Wilcox
On Thu, Dec 06, 2007 at 06:58:54PM +1100, Benjamin Herrenschmidt wrote: > I was just hoping somebody had a better idea, like a way to add a new > format specifier to printk without losing gcc type checking :-) It's been discussed before. Some of the solutions discussed: - Add something like PRI

Re: [PATCH 11/25] powerpc: 4xx PLB to PCI Express support

2007-12-06 Thread Stefan Roese
On Thursday 06 December 2007, Benjamin Herrenschmidt wrote: > This adds to the previous 2 patches the support for the 4xx PCI Express > cells as found in the 440SPe revA, revB and 405EX. > > Unfortunately, due to significant differences between these, and other > interesting "features" of those pie

[PATCH 1/3] POWERPC: don't cast a pointer to pointer of list_head

2007-12-06 Thread Li Zefan
The casting is safe only when the list_head member is the first member of the structure. Signed-off-by: Li Zefan <[EMAIL PROTECTED]> --- arch/ppc/syslib/ocp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/ppc/syslib/ocp.c b/arch/ppc/syslib/ocp.c index 3f5be2c..d

[RFC/PATCH 10/10] powerpc: Clear pci_probe_only on 64 bits PowerMac

2007-12-06 Thread Benjamin Herrenschmidt
It should now be safe to re-assign unassigned resources on 64 bits PowerMac machines (G5s). This clears pci_probe_only on those. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/platforms/powermac/pci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index

[RFC/PATCH 9/10] powerpc: Merge PCI resource allocation & assignment

2007-12-06 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

Re: [PATCH 24/25] powerpc: Base support for 440SPe "Katmai" eval board

2007-12-06 Thread Stefan Roese
On Thursday 06 December 2007, Benjamin Herrenschmidt wrote: > 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]> I'll send a patch

[PATCH] [POWERPC] 4xx: Add Katmai defconfig

2007-12-06 Thread Stefan Roese
Signed-off-by: Stefan Roese <[EMAIL PROTECTED]> --- arch/powerpc/configs/katmai_defconfig | 701 + 1 files changed, 701 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/katmai_defconfig diff --git a/arch/powerpc/configs/katmai_defconfig b/ar

Re: [PATCH 2/3] celleb: add supporting for native CBE

2007-12-06 Thread Arnd Bergmann
On Thursday 06 December 2007, Ishizaki Kou wrote: > > An interesting question still is how close the native celleb machine > > definition is to the one from platforms/cell/setup.c. Maybe it's best > > to have a common machine definition for these two in the end. > > You know celleb-native is betwe

Re: [RFC/PATCH 8/10] powerpc: Merge PCI resource fixups

2007-12-06 Thread Stephen Rothwell
On Thu, 06 Dec 2007 19:11:36 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > @@ -316,19 +313,26 @@ void __devinit of_scan_bus(struct device > dev = of_create_pci_dev(child, bus, devfn); > if (!dev) > continue; > - DBG("dev h

Please pull powerpc.git merge branch

2007-12-06 Thread Paul Mackerras
Linus, Please do git pull \ git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git merge There is one commit there that fixes a bug where some machines were incorrectly reporting over 50% hard irq time even when idle, and three commits that update defconfigs. Thanks, Paul. arch/powe

Re: [PATCH] pci: Fix bus resource assignment on 32 bits with 64b resources

2007-12-06 Thread Kumar Gala
On Dec 6, 2007, at 2:16 AM, Matthew Wilcox wrote: > On Thu, Dec 06, 2007 at 06:58:54PM +1100, Benjamin Herrenschmidt > wrote: >> I was just hoping somebody had a better idea, like a way to add a new >> format specifier to printk without losing gcc type checking :-) > > It's been discussed befor

Re: [PATCH 0/25] powerpc: 4xx PCI, PCI-X and PCI-Express support among others

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 18:59:59 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > Here's a set of patches that bring PCI, PCI-X and PCI-Express > support to 4xx on arch/powerpc. It also changes/fixed various > bits and pieces, such as a bit of rework of arch/powerpc/boot > 4xx code, adding a

Re: [PATCH] pci: Fix bus resource assignment on 32 bits with 64b resources

2007-12-06 Thread Andreas Schwab
Kumar Gala <[EMAIL PROTECTED]> writes: > How does gcc deal with glibc extension to allow people to add their > own specifiers? It doesn't, gcc only knows about the standard specifiers. But it also defines attributes that check other formats, like its own asm_fprintf format specs. Andreas. --

[PATCH] PowerPC 4xx: rework UIC cascade irq handling

2007-12-06 Thread Valentine Barshak
This is a UIC cascade handler rework to use set_irq_chained_handler() for cascade, just like othe ppc platforms do. With current implementation we have additional redirection for irq handler and we call generic_handle_irq twice (once for the primary uic and the other time for handling cascade int

Re: [PATCH v2] qe: add ability to upload QE firmware

2007-12-06 Thread Timur Tabi
Arnd Bergmann wrote: > On Thursday 06 December 2007, Timur Tabi wrote: >>> In that case, I think it >>> would really be better to just put the blob into the tree and only >>> have the fw loading code in the kernel instead of duplicating it in the boot >>> loader. >> That would require the firmware

Are the MPC85xx DMA drivers already in a tree?

2007-12-06 Thread Clemens Koller
Hi! I want to update a driver to test my mileage with the Freescale DMA drivers for MPC85xx from Zhang Wei from 2007-09-07. Are those already available in some git tree to pull from? What are the most current trees for powerpc development? (galak, paulus, ?) Also, any Documentation to the curren

Powerpc PCI cleanups (mainly iSeries)

2007-12-06 Thread Stephen Rothwell
Hi all, I started out looking for ways to remove our dependencies on pci_dn and got sidetracked into clening up the iSeries PCI code. The intention of the following set of patches is that there be no semantic changes (mostly). Overall diffstat looks like this: arch/powerpc/kernel/pci-common.c

[PATCH 01/19] [POWERPC] clean up pci-bridge.h

2007-12-06 Thread Stephen Rothwell
No semantic changes. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- include/asm-powerpc/pci-bridge.h | 95 +- 1 files changed, 42 insertions(+), 53 deletions(-) diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h index b

[PATCH 02/19] [POWERPC] consolidate pci_controller

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- include/asm-powerpc/pci-bridge.h | 62 +++-- 1 files changed, 19 insertions(+), 43 deletions(-) diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h index f4afdc6..beb09b5 100644

[PATCH 03/19] [POWERPC] iSeries: move find_Device_Node to avoid a forward declaration

2007-12-06 Thread Stephen Rothwell
Also remove another unnecessary forward declaration. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 39 ++ 1 files changed, 16 insertions(+), 23 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arc

[PATCH 04/19] [POWERPC] iSeries: cleanup PCI retry code a little

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index e4e6ae0..8ef3226 100644 --- a/arch/powerp

[PATCH 05/19] [POWERPC] iSeries: deCamelCase pci.c

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 216 +- 1 files changed, 108 insertions(+), 108 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index 8ef3226..70

[PATCH 06/19] [POWERPC] iSeries: remove some dead code from pci.c

2007-12-06 Thread Stephen Rothwell
and an unnecessary cast. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 19 +-- 1 files changed, 1 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index 705f

[PATCH 07/19] [POWERPC] iSeries: unindent and clean iSeries_pci_final_fixup

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 68 + 1 files changed, 35 insertions(+), 33 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index cff832a..8e2ac

[PATCH 08/19] [POWERPC] iSeries: consoldiate PCI IO error check

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 105 - 1 files changed, 26 insertions(+), 79 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index 8e2ac3d..105b2

[PATCH 09/19] [POWERPC] iSeries: remove one layer of IO routines

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 68 + 1 files changed, 19 insertions(+), 49 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index 105b23d..8844d

[PATCH 10/19] [POWERPC] iSeries: remove pci_dn dependency from iSeries_Device_Information

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c |3 ++- arch/powerpc/platforms/iseries/pci.h |3 ++- arch/powerpc/platforms/iseries/vpdinfo.c | 17 ++--- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/arch

[PATCH 11/19] [POWERPC] iSeries: iseries_ds_addr is only used in pci.c

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 11 +++ arch/powerpc/platforms/iseries/pci.h | 13 + 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platfor

[PATCH 12/19] [POWERPC] iSeries: reduce dependence on pci_dn bussubno

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index b46d8c5..7e00e35 100644 --- a/a

[PATCH 13/19] [POWERPC] iSeries: make pcibios_final_fixup not depend on pci_dn

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c | 27 --- 1 files changed, 12 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index 7e00e35..4bcf446 100

[PATCH 14/19] [POWERPC] Inline pci_setup_pci_controller as it has become trivial

2007-12-06 Thread Stephen Rothwell
and it becomes clear that we should use zalloc_maybe_bootmem. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci-common.c | 22 ++ 1 files changed, 6 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/ker

[PATCH 15/19] [POWERPC] iSeries: call iSeries_pcibios_init from setup_arch

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_64.c |3 --- arch/powerpc/platforms/iseries/pci.h |4 +++- arch/powerpc/platforms/iseries/setup.c |2 ++ include/asm-powerpc/ppc-pci.h |3 --- 4 files changed, 5 insertions(+), 7 d

[PATCH 16/19] [POWERPC] iSeries: hose->buid is always zero for iSeries

2007-12-06 Thread Stephen Rothwell
so remove a firmware feature test. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_64.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index b58f091..42ff9c9 100644 --- a/a

[PATCH 17/19] [POWERPC] remove some iSeries platform checks from the PCI code

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_64.c | 23 --- arch/powerpc/platforms/iseries/pci.c |2 ++ 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c

[PATCH 18/19] [POWERPC] Don't special case pci_domain_nr() for iSeries

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci-common.c |9 ++--- arch/powerpc/platforms/iseries/pci.c |2 ++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 2

[PATCH 19/19] [POWERPC] pci_controller->arch_data really is a struct device_node *

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_32.c |6 +++--- arch/powerpc/kernel/pci_64.c |6 ++ arch/powerpc/kernel/pci_dn.c |2 +- arch/powerpc/platforms/85xx/mpc85xx_ds.c |2 +- arch/powerpc/plat

Re: Powerpc PCI cleanups (mainly iSeries)

2007-12-06 Thread Stephen Rothwell
On Thu, 6 Dec 2007 18:00:45 +1100 Stephen Rothwell <[EMAIL PROTECTED]> wrote: > > I started out looking for ways to remove our dependencies on pci_dn and > got sidetracked into clening up the iSeries PCI code. The intention of > the following set of patches is that there be no semantic changes > (

Re: dtc: Remove space from flex command line

2007-12-06 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > Author: Geoff Levand <[EMAIL PROTECTED]> > > Apparently some versions of flex don't correctly parse the -o > parameter, if there's a space between the -o and its argument. So, > this patch removes it. > > Signed-off-by: David Gibson <[EMAIL PROTECT

Re: dtc: More detailed testing of tree checks

2007-12-06 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > This patch modifies the dtc-checkfails.sh testcase wrapper so that > instead of testing just that dtc fails with a particular error code on > the sample input, it scans dtc's stderr output looking for a message > that dtc failed a specific check or ch

Re: dtc: Migrate "one cell" checks to new framework

2007-12-06 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > This patch converts to the new tree checking framework those checks > which verify that certain properties (#address-cells and #size-cells) > are exactly one cell in size, when present. > > We also drop the old-style check for "linux,phandle" being o

Re: dtc: Migrate "string property" checks to new framework

2007-12-06 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > This patch converts to the new tree checking framework those checks > which verify that certain properties (device_type, model) have a > string value, when present. > > Signed-off-by: David Gibson <[EMAIL PROTECTED]> Applied. jdl __

Re: [PATCH] windfarm: add PowerMac 12,1 support

2007-12-06 Thread Étienne Bersac
Hi, > + /* First, locate the params for this model */ > + for (i = 0; i < PM121_NUM_CONFIGS; i++) { > + param = &(pm121_sys_all_params[loop_id][i]); > + if (param->model_id == pm121_mach_model) > + break; > + } > + > + /* No params found,

Re: [PATCH v2] qe: add ability to upload QE firmware

2007-12-06 Thread Arnd Bergmann
On Thursday 06 December 2007, Timur Tabi wrote: > > I'm not trying to convince you of this if it's completely pointless for > > all your systems, just want to make sure you're aware of this option, > > because spending a few extra code lines on it now may save you some trouble > > if you need this

Re: [PATCH v2] qe: add ability to upload QE firmware

2007-12-06 Thread Timur Tabi
Arnd Bergmann wrote: > My point is that you could have some extra code that calls your > qe_upload_firmware() when the device tree contains the blob but the boot > loader did not already load it. The current design of the 'firmware' node is such that if present, that means that the firmware has

Re: Powerpc PCI cleanups (mainly iSeries)

2007-12-06 Thread Josh Boyer
On Fri, 7 Dec 2007 02:07:26 +1100 Stephen Rothwell <[EMAIL PROTECTED]> wrote: > On Thu, 6 Dec 2007 18:00:45 +1100 Stephen Rothwell <[EMAIL PROTECTED]> wrote: > > > > I started out looking for ways to remove our dependencies on pci_dn and > > got sidetracked into clening up the iSeries PCI code. T

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

2007-12-06 Thread Arnd Bergmann
On Thursday 06 December 2007, Joachim Fenkes wrote: > printk(KERN_INFO "eHCA Infiniband Device Driver " >       "(Version " HCAD_VERSION ")\n"); >   > +   /* Autodetect hCall locking -- we can't read the firmware version > +    * directly, but we know that starting with POW

Re: [PATCH v2] qe: add ability to upload QE firmware

2007-12-06 Thread Arnd Bergmann
On Thursday 06 December 2007, Timur Tabi wrote: > In reality, having the boot loader load the firmware will usually be the > preferred approach, because that's simpler.  Having it in both U-Boot and the > kernel covers all situations, though.  There would be no need for the > bootloader > to pa

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

2007-12-06 Thread Joachim Fenkes
All firmware versions on POWER5 systems have a locking issue in the HCA-related hCalls that can cause loss of Infiniband connectivity if allocate and free calls happen in parallel. This may for example be caused if two processes are using OpenMPI in parallel. Circumvent this by serializing all HCA-

Re: dtc: Remove obsolete check_properties() function

2007-12-06 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > After the last couple of patches converting various old-style semantic > checks to the new framework, the only thing that the old-style > check_properties() function still checks is that the size of "reg" > properties is a multiple of the cell size. >

Re: [PATCH v2] qe: add ability to upload QE firmware

2007-12-06 Thread Kumar Gala
On Dec 6, 2007, at 9:59 AM, Timur Tabi wrote: > Arnd Bergmann wrote: > >> Ok, looks you were right from the start (again), thanks for your >> patience >> explaining this to me. > > No problem. No all I need is for Kumar to apply the patches! When I wait you come up with a new version.. so I'm

Re: [PATCH 19/19] [POWERPC] pci_controller->arch_data really is a struct device_node *

2007-12-06 Thread Jon Loeliger
On Thu, 2007-12-06 at 09:05, Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> > --- > arch/powerpc/kernel/pci_32.c |6 +++--- > arch/powerpc/kernel/pci_64.c |6 ++ > arch/powerpc/kernel/pci_dn.c |2 +- > arch/po

Re: [RFC/PATCH 5/10] powerpc: pci32: Remove obsolete PowerMac bus number hack

2007-12-06 Thread Jon Loeliger
On Thu, 2007-12-06 at 02:11, Benjamin Herrenschmidt wrote: > 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 Herr

ucc_geth 10 Mbit/s locks up CPU even though NAPI is enabled

2007-12-06 Thread Joakim Tjernlund
Injecting a 10 MBit/s stream with 64 bytes pkgs locks up my MPC832x CPU even though I got NAPI enabled. Kernel 2.6.23 Any ideas? Jocke ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH 1/2] usb: Remove broken optimisation in OHCI IRQ handler

2007-12-06 Thread David Brownell
On Sunday 25 November 2007, Benjamin Herrenschmidt wrote: > While there, any reason why we do the read of the interenable register > and mask ? Is that actually useful in practice ? I haven't removed it > but it might be a good candidate if we want to save on MMIO reads. The code uses that registe

Re: [PATCH v2] qe: add ability to upload QE firmware

2007-12-06 Thread Timur Tabi
Timur Tabi wrote: > I think these patches are final: > > [PATCH 1/2] qe: add function qe_clock_source (dated 12/3) > [PATCH 2/2] ucc_geth: use rx-clock-name and tx-clock-name device tree > properties (dated 12/3) > [PATCH v2] qe: add ability to upload QE firmware I lied. This last patch is mis

[PATCH v3] qe: add ability to upload QE firmware

2007-12-06 Thread Timur Tabi
Define the layout of a binary blob that contains a QE firmware and instructions on how to upload it. Add function qe_upload_firmware() to parse the blob and perform the actual upload. Fully define 'struct rsp' in immap_qe.h to include the actual RISC Special Registers. Added description of a new

RE: Linuxppc-dev Digest, Vol 40, Issue 57

2007-12-06 Thread Siva Prasad
ars, this is entirely independent of the net devices. igoeast:/sys/class/net/eth1/device/driver# find cnx00/ cnx00/ cnx00/outstanding_tx cnx00/remote_lp cnx00/num_events cnx00/reset_timeout cnx00/last_contact cnx00/state cnx00/src_inst cnx00/dst_inst cnx00/num_pending_acks cnx00/num_ack_events cnx00/ack_timeout

Regarding MPC8641D

2007-12-06 Thread Siva Prasad
Hello Bala, I don't think the ioremap issues are related with low memory offset mode. But again, I am not sure if you (system by default does not do it) are reserving that area (from 256 to 512 which is low memory offset region). Further, where do you get this 504 number specifically? If you wan

Re: [PATCH 07/19] [POWERPC] iSeries: unindent and clean iSeries_pci_final_fixup

2007-12-06 Thread Olof Johansson
On Fri, Dec 07, 2007 at 01:51:48AM +1100, Stephen Rothwell wrote: > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> > --- > arch/powerpc/platforms/iseries/pci.c | 68 + > 1 files changed, 35 insertions(+), 33 deletions(-) > > diff --git a/arch/powerpc/plat

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

2007-12-06 Thread Roland Dreier
> > +   ehca_lock_hcalls = !(cur_cpu_spec->cpu_user_features > > +        & PPC_FEATURE_ARCH_2_05); > We already talked about this yesterday, but I still feel that checking the > instruction set of the CPU should not be used to determine whether a > spe

[PATCH] [POWERPC] Fix swapper_pg_dir size when CONFIG_PTE_64BIT=y on FSL_BOOKE

2007-12-06 Thread Kumar Gala
The size of swapper_pg_dir is 8k instead of 4k when using 64-bit PTEs (CONFIG_PTE_64BIT). This was reported by Cedric Hombourger <[EMAIL PROTECTED]> Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- This is in my git tree, branch for-2.6.24 and I'll forward on a pull request to Paul & Linus for

Please pull from 'for-2.6.24' branch

2007-12-06 Thread Kumar Gala
Please pull from 'for-2.6.24' branch of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git for-2.6.24 to receive the following updates: arch/powerpc/kernel/asm-offsets.c|3 +-- arch/powerpc/kernel/head_32.S|2 +- arch/powerpc/kernel/head_40x.S |2

[PATCH] [PPC] virtex bug fix: Use canonical value for AC97 interrupt xparams

2007-12-06 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> The ml300 and ml403 xparameters.h files use different macros for the AC97 interrupt pin assignments. This patch normalizes them to a canonical value similar to what EDK generates for most other devices Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- Jo

Re: Are the MPC85xx DMA drivers already in a tree?

2007-12-06 Thread Clemens Koller
Clemens Koller schrieb: > I want to update a driver to test my mileage with the > Freescale DMA drivers for MPC85xx from Zhang Wei from 2007-09-07. > > Are those already available in some git tree to pull from? > What are the most current trees for powerpc development? > (galak, paulus, ?) O

  1   2   >