RE: [PATCH 1/3] Add a new member name to structure irq_host

2007-07-25 Thread Zhang Wei-r63237
Hi, Ben, Thanks! > Sure, hence the word 'optional' which would provide a default name. > About the default name, since platforms we touched are very limited, we do not know which name should be proper default name. We just assign those default name to 'NULL' for passing the compiling process.

Re: [PATCH] powerpc: Pegasos keyboard detection

2007-07-25 Thread Benjamin Herrenschmidt
On Tue, 2007-07-24 at 21:28 -0400, Alan Curry wrote: > As of 2.6.22 the kernel doesn't recognize the i8042 keyboard/mouse controller > on the PegasosPPC. This is because of a feature/bug in the OF device tree: > the "device_type" attribute is an empty string instead of "8042" as the > kernel expect

modpost warning question

2007-07-25 Thread Kumar Gala
I'm seeing the following warning: WARNING: vmlinux.o(.init.text+0x1acdc): Section mismatch: reference to .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdio_init') I don't understand why its not ok to access .exit.text from .init.text The following addresses the issue, however I don't

Re: modpost warning question

2007-07-25 Thread Sam Ravnborg
On Wed, Jul 25, 2007 at 02:14:12AM -0500, Kumar Gala wrote: > I'm seeing the following warning: > > WARNING: vmlinux.o(.init.text+0x1acdc): Section mismatch: reference to > .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdio_init') > > I don't understand why its not ok to access .exit.t

Re: modpost warning question

2007-07-25 Thread Kumar Gala
On Jul 25, 2007, at 2:27 AM, Sam Ravnborg wrote: > On Wed, Jul 25, 2007 at 02:14:12AM -0500, Kumar Gala wrote: >> I'm seeing the following warning: >> >> WARNING: vmlinux.o(.init.text+0x1acdc): Section mismatch: >> reference to >> .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdio_in

Re: modpost warning question

2007-07-25 Thread Sam Ravnborg
> > > >For the popular architectures (i386,x86_64) we discard .exit.text at > >runtime so here we do not see the error from ld (sadly). > > Fair point, wondering what we do with .exit on PPC, another thing for > the list :) from: arch/ppc/kernel/vmlinux.lds.S: /* .exit.text is discarded at ru

Re: modpost warning question

2007-07-25 Thread Benjamin Herrenschmidt
On Wed, 2007-07-25 at 02:14 -0500, Kumar Gala wrote: > I'm seeing the following warning: > > WARNING: vmlinux.o(.init.text+0x1acdc): Section mismatch: reference to > .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdio_init') > > I don't understand why its not ok to access .exit.text fro

Re: "do section mismatch check on full vmlinux" breaks powerpc build

2007-07-25 Thread Sam Ravnborg
On Tue, Jul 24, 2007 at 05:41:05PM -0500, Nathan Lynch wrote: > Hello- > > 2.6.23-rc1 breaks the build for 64-bit powerpc for me (using > maple_defconfig): > > LD vmlinux.o > powerpc64-unknown-linux-gnu-ld: dynreloc miscount for > kernel/built-in.o, section .opd > powerpc64-unknown-linux-g

Re: "do section mismatch check on full vmlinux" breaks powerpc build

2007-07-25 Thread Sam Ravnborg
On Tue, Jul 24, 2007 at 05:41:05PM -0500, Nathan Lynch wrote: > Hello- > > 2.6.23-rc1 breaks the build for 64-bit powerpc for me (using > maple_defconfig): > > LD vmlinux.o > powerpc64-unknown-linux-gnu-ld: dynreloc miscount for > kernel/built-in.o, section .opd > powerpc64-unknown-linux-g

Re: modpost warning question

2007-07-25 Thread chengong
On Wed, 2007-07-25 at 09:27 +0200, Sam Ravnborg wrote: > On Wed, Jul 25, 2007 at 02:14:12AM -0500, Kumar Gala wrote: > > I'm seeing the following warning: > > > > WARNING: vmlinux.o(.init.text+0x1acdc): Section mismatch: reference to > > .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdi

Re: "do section mismatch check on full vmlinux" breaks powerpc build

2007-07-25 Thread Sam Ravnborg
On Tue, Jul 24, 2007 at 05:41:05PM -0500, Nathan Lynch wrote: > Hello- > > 2.6.23-rc1 breaks the build for 64-bit powerpc for me (using > maple_defconfig): > > LD vmlinux.o > powerpc64-unknown-linux-gnu-ld: dynreloc miscount for > kernel/built-in.o, section .opd > powerpc64-unknown-linux-g

Re: modpost warning question

2007-07-25 Thread Sam Ravnborg
On Wed, Jul 25, 2007 at 06:08:03PM +0800, chengong wrote: > On Wed, 2007-07-25 at 09:27 +0200, Sam Ravnborg wrote: > > On Wed, Jul 25, 2007 at 02:14:12AM -0500, Kumar Gala wrote: > > > I'm seeing the following warning: > > > > > > WARNING: vmlinux.o(.init.text+0x1acdc): Section mismatch: reference

Re: 2.6.23-rc1 breaks on JS20 w/SLOF

2007-07-25 Thread Adrian Reber
On Tue, Jul 24, 2007 at 08:06:18AM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2007-07-23 at 16:47 +0200, Adrian Reber wrote: > > On a JS20 with SLOF (pretending to be Maple) 2.6.23-rc1 breaks with > > following oops. 2.6.22 is working. Let me know if I can help debug this. > > That would be my

Re: [PATCH] xmon consistency clean up

2007-07-25 Thread Michael Ellerman
On Wed, 2007-07-25 at 16:21 +1000, Benjamin Herrenschmidt wrote: > On Wed, 2007-07-25 at 11:57 +0900, Ishizaki Kou wrote: > > This patch cleans up xmon to keep consistency. > > > > In xmon, we should use console I/O functions that are named the same > > as user space stdio functions. But commit >

[PATCH 1/5] Add an optional device_node pointer to the irq_host

2007-07-25 Thread Michael Ellerman
The majority of irq_host implementations (3 out of 4) are associated with a device_node, and need to stash it somewhere. Rather than having it somewhere different for each host, add an optional device_node pointer to the irq_host structure. Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> ---

[PATCH 2/5] Invert null match behaviour for irq_hosts

2007-07-25 Thread Michael Ellerman
Currently if you don't specify a match callback for your irq_host it's assumed you match everything. This is a kind of opt-out approach, and turns out to be the exception rather than the rule. So change the semantics to be opt-in, ie. you don't match anything unless you provide a match callback. T

[PATCH 3/5] Provide a default irq_host match, which matches on an exact of_node

2007-07-25 Thread Michael Ellerman
The most common match semantic is an exact match based on the device node. So provide a default implementation that does this, and hook it up if no match routine is specified. Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> --- arch/powerpc/kernel/irq.c | 10 +- arch

[PATCH 4/5] Initialise hwirq for legacy irqs

2007-07-25 Thread Michael Ellerman
Although no one uses the hwirq value for legacy irqs at the moment, we should really setup the correct value in the irq_map. Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> --- arch/powerpc/kernel/irq.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/ker

[PATCH 5/5] Export virq mapping via debugfs

2007-07-25 Thread Michael Ellerman
This patch adds a debugfs file "powerpc/virq_mapping", which shows the virtual to real mapping of irq numbers. Enable it with CONFIG_VIRQ_DEBUG. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> Signed-off-by: Chen Gong <[EMAIL PROTECTED]> Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> --- arch/p

[PATCH] fix ppc kernels after build-id addition

2007-07-25 Thread Meelis Roos
This patch fixes arch/ppc kernels, at least for prep subarch, after build-id addition. Without the patch, kernels were 3 times the size and bootloader refused to load them. Now they are back to normal again. The patch is very similar to David Millers sparc patch, just applied to ppc architectur

Re: [PATCH] xmon consistency clean up

2007-07-25 Thread Grant Likely
On 7/25/07, Michael Ellerman <[EMAIL PROTECTED]> wrote: > On Wed, 2007-07-25 at 16:21 +1000, Benjamin Herrenschmidt wrote: > > Nah, keep it xmon_puts, since it doesn't take a stream argument and > > define a "puts" for use by xmon core. > > But then it needs to add a newline .. and we've gone aroun

About mdio_bus for 82xx based board

2007-07-25 Thread Alexandros Kostopoulos
Hi all, I'm trying to make FCC ethernet work with my board, based on an MPC8275 processor. I'm using kernel 2.6.22.1 I have the following problems: 1) When mdiobus_register() called from mii-bitbang.c (fs_enet_mdio_probe() function) attemps to do a device_register for the mdio bus, it actuall

[PATCH] Fix ibmvscsi client for multiplatform iSeries+pSeries kernel.

2007-07-25 Thread David Woodhouse
If you build a multiplatform kernel for iSeries and pSeries, with ibmvscsic support, the resulting client doesn't work on iSeries. This patch should fix that, using the appropriate low-level operations for the machine detected at runtime. Signed-off-by: David Woodhouse <[EMAIL PROTECTED]> --- li

Re: dtc: Improve the make install target

2007-07-25 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > This patch makes various improvements to dtc's make install target: > - libfdt is also installed. Specifically, libfdt.a and the > two export relevant header files, fdt.h and libfdt.h are installed. > - ftdump is no longer installed. It

DTC 1.0.0 Release Coming?

2007-07-25 Thread Jon Loeliger
Folks, I'd like to make an official DTC Version 1.0.0 release soon! To that end, I've published a repo on jdl.com with a v1.0.0-rc1 tag on it. I anticipate some updates to the Documentation before a final 1.0.0 release still. However, if you have something you would like to have be in The Real 1

Re: About mdio_bus for 82xx based board

2007-07-25 Thread Scott Wood
On Wed, Jul 25, 2007 at 05:22:40PM +0300, Alexandros Kostopoulos wrote: > 1) When mdiobus_register() called from mii-bitbang.c (fs_enet_mdio_probe() > function) attemps to do a device_register for the mdio bus, it actually > registers the device with a bus_id in the form [0|1|...]:, that > is

[PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Vitaly Bordug
This is now very similar to pata_platform.c, they both use same platform data structure and same resources. To achieve that, byte_lanes_swapping platform data variable and platform specified iops removed from that driver. It's fine, since those were never used anyway. pata_platform and ide_platf

[PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Vitaly Bordug
This updates relevant platform code (freescale mpc8349itx target) to make the CompactFlash work in TrueIDE mode. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8349emitx.dts|9 arch/powerpc/platfor

Re: [PATCH] [POWERPC] iSeries: fix section mismatch warnings

2007-07-25 Thread Will Schmidt
> diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S > index 8cdd48e..1448af9 100644 > --- a/arch/powerpc/kernel/head_64.S > +++ b/arch/powerpc/kernel/head_64.S > @@ -809,8 +809,9 @@ system_reset_iSeries: > mtmsrd r24 /* RI on */ > lhz r

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Hello. Vitaly Bordug wrote: > This updates relevant platform code (freescale mpc8349itx target) > to make the CompactFlash work in TrueIDE mode. Erm, I'm not sure it's worth submitting the platform device driver for PowerPC at this point, but well... > Signed-off-by: Anton Vorontsov <[EMA

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Scott Wood
Vitaly Bordug wrote: > diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts > b/arch/powerpc/boot/dts/mpc8349emitx.dts > index db0d003..f8f0e8a 100644 > --- a/arch/powerpc/boot/dts/mpc8349emitx.dts > +++ b/arch/powerpc/boot/dts/mpc8349emitx.dts > @@ -37,6 +37,15 @@ > reg = < 1

[PATCH] POWERPC: Fix definition of global-utilites structure for 86xx

2007-07-25 Thread Timur Tabi
The current definition of struct ccsr_guts in immap_86xx.h was for 85xx. This patch fixes that and replaces the vague integer types with sized types of the correct endianness. The unused struct ccsr_pci is also deleted. Signed-off-by: Timur Tabi <[EMAIL PROTECTED]> --- include/asm-powerpc/immap_

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Alan Cox
> pata_platform and ide_platform are carrying same driver names, > to easily switch between these drivers, without need to touch > platform code. > > Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> > Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]> Acked-by: Alan Cox <[EMAIL PROTECTED]> _

[PATCH 1/2] [POWERPC] Add support of platforms without PHY to gianfar driver

2007-07-25 Thread Vitaly Bordug
Gianfar driver is now able to work without real phy subnode, that is necessary to cope with fixed-link situation, when SoC is connected to the Ethernet inteface or embedded switch without any PHY. In this case, fixed-speed property will describe such a situation for gianfar driver. The property

[PATCH 2/2] [POWERPC] Remove dummy network phy from MPC8313E-RDB

2007-07-25 Thread Vitaly Bordug
Cleaned up inexistent network phy from the target dts, added necessary property to gianfar node there. Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8313erdb.dts |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/boot/dt

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Kumar Gala
On Jul 25, 2007, at 11:53 AM, Vitaly Bordug wrote: > > This is now very similar to pata_platform.c, they both use > same platform data structure and same resources. > > To achieve that, byte_lanes_swapping platform data variable > and platform specified iops removed from that driver. It's fine, >

Re: [RFC 0/1] lro: Generic Large Receive Offload for TCP traffic

2007-07-25 Thread Andrew Gallatin
Hi, I've ported myri10ge to use the new LRO interface. I have attached a preliminary patch to myri10ge. I'm very pleased to note that the performance is on-par with my own LRO used by our out-of-tree driver. (except when using mixed MTUS, see performance data below). As I expected, actually po

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Hello, I wrote: >>diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts >>b/arch/powerpc/boot/dts/mpc8349emitx.dts >>index db0d003..f8f0e8a 100644 >>--- a/arch/powerpc/boot/dts/mpc8349emitx.dts >>+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts >>@@ -37,6 +37,15 @@ >> reg = < 1

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Scott Wood wrote: >>Also, what mmio-ide in the compat properly means in the context of >>ide_platform which is able to handle both port and memory mapped IDE. >>I think we must get rid with this crap, and since this IDE register >>mapping is pretty much board specific, call it something like

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Hello. Scott Wood wrote: >>Also, what mmio-ide in the compat properly means in the context of >>ide_platform which is able to handle both port and memory mapped IDE. > I/O-space is only valid in the context of PCI, ISA, or similar buses, and > the bus-specific reg format indicates whether i

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Scott Wood wrote: >> Scott Wood wrote: Also, what mmio-ide in the compat properly means in the context of ide_platform which is able to handle both port and memory mapped IDE. >>> I/O-space is only valid in the context of PCI, ISA, or similar buses, >>> and >>> the bus-speci

Re: [PATCH 1/2] [IDE] Platform IDE driver

2007-07-25 Thread Scott Wood
Sergei Shtylyov wrote: >> It doesn't buy us anything in here, but it's conceivable that someone >> may want to write a driver that uses a shift in the I/O accessor >> rather than an array of port offsets, > > >It wouldn't be IDE driver then, and neither it would be libata which > also does

Re: "do section mismatch check on full vmlinux" breaks powerpc build

2007-07-25 Thread Nathan Lynch
Hi Sam- Sam Ravnborg wrote: > On Tue, Jul 24, 2007 at 05:41:05PM -0500, Nathan Lynch wrote: > > > > 2.6.23-rc1 breaks the build for 64-bit powerpc for me (using > > maple_defconfig): > > > > LD vmlinux.o > > powerpc64-unknown-linux-gnu-ld: dynreloc miscount for > > kernel/built-in.o, sect

Re: "do section mismatch check on full vmlinux" breaks powerpc build

2007-07-25 Thread Sam Ravnborg
On Wed, Jul 25, 2007 at 04:16:10PM -0500, Nathan Lynch wrote: > Hi Sam- > > Sam Ravnborg wrote: > > On Tue, Jul 24, 2007 at 05:41:05PM -0500, Nathan Lynch wrote: > > > > > > 2.6.23-rc1 breaks the build for 64-bit powerpc for me (using > > > maple_defconfig): > > > > > > LD vmlinux.o > > >

Re: [PATCH 1/2] [POWERPC] Add support of platforms without PHY to gianfar driver

2007-07-25 Thread Jeff Garzik
I'll let paulus and linuxppc merge this one (or not)... Jeff ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Guennadi Liakhovetski
On Thu, 26 Jul 2007, Sergei Shtylyov wrote: > Guennadi Liakhovetski wrote: > > > > Wrong list to submit sych stuff, post to linux-ide. > > > Not entirely. The patch (or other patches in the series) would also touch > > ARM platforms in the mainline, currently using that driver. As I didn't >

Re: pte_offset_map for ppc assumes HIGHPTE

2007-07-25 Thread Benjamin Herrenschmidt
On Thu, 2007-07-26 at 01:18 +0200, Andreas Schwab wrote: > Satya <[EMAIL PROTECTED]> writes: > > > hello, > > The implementation of pte_offset_map() for ppc assumes that PTEs are > > kept in highmem (CONFIG_HIGHPTE). There is only one implmentation of > > pte_offset_map() as follows (include/asm-p

Re: pte_offset_map for ppc assumes HIGHPTE

2007-07-25 Thread Andreas Schwab
Satya <[EMAIL PROTECTED]> writes: > hello, > The implementation of pte_offset_map() for ppc assumes that PTEs are > kept in highmem (CONFIG_HIGHPTE). There is only one implmentation of > pte_offset_map() as follows (include/asm-ppc/pgtable.h): > > #define pte_offset_map(dir, addr) \

Re: pte_offset_map for ppc assumes HIGHPTE

2007-07-25 Thread Benjamin Herrenschmidt
On Wed, 2007-07-25 at 18:30 -0500, Dave McCracken wrote: > On Wednesday 25 July 2007, Benjamin Herrenschmidt wrote: > > Depends... if you have CONFIG_HIGHMEM and not CONFIG_HIGHPTE, you are > > wasting time going through kmap_atomic unnecessarily no ? it will probably > > not do anything because th

Re: [RFC 0/1] lro: Generic Large Receive Offload for TCP traffic

2007-07-25 Thread David Miller
From: Andrew Gallatin <[EMAIL PROTECTED]> Date: Wed, 25 Jul 2007 13:17:54 -0400 > I've ported myri10ge to use the new LRO interface. I have attached a > preliminary patch to myri10ge. I'm very pleased to note that the > performance is on-par with my own LRO used by our out-of-tree driver. > (exc

Re: [PATCH] Fix ibmvscsi client for multiplatform iSeries+pSeries kernel.

2007-07-25 Thread Michael Ellerman
On Wed, 2007-07-25 at 15:41 +0100, David Woodhouse wrote: > If you build a multiplatform kernel for iSeries and pSeries, with > ibmvscsic support, the resulting client doesn't work on iSeries. > > This patch should fix that, using the appropriate low-level operations > for the machine detected at

Re: pte_offset_map for ppc assumes HIGHPTE

2007-07-25 Thread Dave McCracken
On Wednesday 25 July 2007, Benjamin Herrenschmidt wrote: > Depends... if you have CONFIG_HIGHMEM and not CONFIG_HIGHPTE, you are > wasting time going through kmap_atomic unnecessarily no ? it will probably > not do anything because the PTE page is in lowmem but still... Probably not much time. Yo

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Alan Cox
> driver to using platform-device. I got a reply, that it's not worth it now > that IDE is slowly becoming obsolete, and the pata_platform serves the > perpose perfectly well. I found this argument reasonable, I had the same > doubt, just wanted to double-check. So, why do we now need a new lega

[PATCH 1/2] powerpc: Marvell 64x60 EDAC platform devices setup

2007-07-25 Thread Dave Jiang
Creating platform devices (memory controller, sram error registers, cpu error registers, PCI error registers) for Error Detection and Correction (EDAC) driver. The platform devices allow the mv64x60 EDAC driver to detect errors from the memory controller (ECC erorrs), SRAM controller, CPU data pa

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Guennadi Liakhovetski wrote: >>This is now very similar to pata_platform.c, they both use >>same platform data structure and same resources. >>To achieve that, byte_lanes_swapping platform data variable >>and platform specified iops removed from that driver. It's fine, >>since those were never us

Re: [PATCH] Re: 2.6.22-git hangs during boot on PowerBook G3 in 0.0 seconds

2007-07-25 Thread Paul Mackerras
Kim Phillips writes: > > In which circumstances are you trying to translate an address with no > > size cell ? > > for the enumerated PHYs. As the original commit comment states, I was > getting these messages: > > prom_parse: Bad cell count for /[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL > PRO

Re: [PATCH] [POWERPC] iSeries: fix section mismatch warnings

2007-07-25 Thread Stephen Rothwell
Hi Will, On Wed, 25 Jul 2007 11:55:31 -0500 Will Schmidt <[EMAIL PROTECTED]> wrote: > > > cmpwi 0,r24,0 /* Are we processor 0? */ > > - beq .__start_initialization_iSeries /* Start up the first processor > > */ > > - mfspr r4,SPRN_CTRLF > > + bne 1f > > + b

Please pull from 'fixes-2.6.23' branch

2007-07-25 Thread Kumar Gala
Please pull from 'fixes-2.6.23' branch of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git fixes-2.6.23 to receive the following updates: arch/powerpc/Kconfig.debug|2 +- arch/powerpc/boot/dts/mpc7448hpc2.dts |2 +- arch/powerpc/boot/dts/mpc8544ds.dts

[PATCH 0/8] Fixes for 2.6.23

2007-07-25 Thread Kumar Gala
Here are the individual patches in my for-2.6.23 branch. Posting them here for completeness. - k ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] fix ppc kernels after build-id addition

2007-07-25 Thread Paul Mackerras
Meelis Roos writes: > This patch fixes arch/ppc kernels, at least for prep subarch, after > build-id addition. Without the patch, kernels were 3 times the size and > bootloader refused to load them. Now they are back to normal again. I just built an ARCH=ppc kernel for the prep subarch and the

[PATCH 1/3] powerpc: Add function to check if address is an IO port

2007-07-25 Thread Benjamin Herrenschmidt
This adds a function that tells you if a given kernel virtual address is hitting a PCI or ISA IO port permanent mapping or not. This is to be used in the next patch to fix iomap APIs to properly unmap things. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci-c

[PATCH 2/3] powerpc: Make pci_iounmap actually unmap things

2007-07-25 Thread Benjamin Herrenschmidt
This patch uses the newly added functions for testing if an address is an ISA or PCI IO port to properly unmap things in pci_iounmap that aren't such ports. Without that, drivers using the iomap API will never actually unmap resources which on IBM server machines will prevent hot-unplug of the corr

[PATCH 3/3] powerpc: Fix Maple platform ISA bus

2007-07-25 Thread Benjamin Herrenschmidt
The Maple platform has ISA IOs but didn't call the new functions to actually map those, thus crashing when trying to access the nvram. This fixes Maple and js2x using SLOF Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- arch/powerpc/platforms/maple/pci.c |3 +++ 1 file change

[PATCH 5/8] [POWERPC] Fix mpc7448hpc2 tsi108 device_type bug

2007-07-25 Thread Kumar Gala
From: Roy Zang <[EMAIL PROTECTED]> Fix mpc7448hpc2 tsi108 device_type bug. Wrong device type will break the board startup. Signed-off-by: Roy Zang <[EMAIL PROTECTED]> Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc7448hpc2.dts |2 +- 1 files changed, 1 insertions(

[PATCH 4/8] [POWREPC] Fixup a number of modpost warnings on ppc32

2007-07-25 Thread Kumar Gala
Fixed the following warnings: WARNING: vmlinux.o(.text+0x2934): Section mismatch: reference to .init.text:__alloc_bootmem (between 'irq_alloc_host' and 'irq_set_default_host') WARNING: vmlinux.o(.text+0xb2aa): Section mismatch: reference to .init.data:boot_command_line (between 'register_early_u

[PATCH 3/8] [POWERPC] Fix ethernet PHY support on MPC8544 DS

2007-07-25 Thread Kumar Gala
The MPC8544 dts needed to set the new phy-connection-type to rgmii-id for the Vitesse PHY on the board to work properly. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8544ds.dts |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boo

[PATCH 2/8] [POWERPC] Don't try to allocate resources for a Freescale POWERPC PHB

2007-07-25 Thread Kumar Gala
The Freescale PCI PHBs actual report back values in the BAR registers this causes issues in that we try to allocate resources for them and will get error messages like the following on MPC8544 DS: PCI: Failed to allocate mem resource #1:[EMAIL PROTECTED] for :00:00.0 To address this if we are

Re: [PATCH] POWERPC: Fix definition of global-utilites structure for 86xx

2007-07-25 Thread Kumar Gala
On Jul 25, 2007, at 12:30 PM, Timur Tabi wrote: > The current definition of struct ccsr_guts in immap_86xx.h was for > 85xx. > This patch fixes that and replaces the vague integer types with > sized types > of the correct endianness. The unused struct ccsr_pci is also > deleted. > > Signed

[PATCH] gfar: Fix modpost warning

2007-07-25 Thread Kumar Gala
Fix the following modpost warning: WARNING: vmlinux.o(.init.text+0x1aa6c): Section mismatch: reference to .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdio_init') Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- drivers/net/gianfar_mii.c |2 +- drivers/net/gianfar_mii.h |2

[PATCH v2][POWERPC] Don't try to allocate resources for a POWERPC PHB

2007-07-25 Thread Kumar Gala
>From e314b31e4650c789829bf870f83ee7ae4be46426 Mon Sep 17 00:00:00 2001 From: Kumar Gala <[EMAIL PROTECTED]> Date: Wed, 25 Jul 2007 00:44:11 -0500 Subject: [PATCH] [POWERPC] Don't try to allocate resources for a POWERPC PHB The Freescale PCI PHBs actual report back values in the BAR registers this

Re: pte_offset_map for ppc assumes HIGHPTE

2007-07-25 Thread Benjamin Herrenschmidt
On Wed, 2007-07-25 at 17:16 -0500, Satya wrote: > hello, > The implementation of pte_offset_map() for ppc assumes that PTEs are > kept in highmem (CONFIG_HIGHPTE). There is only one implmentation of > pte_offset_map() as follows (include/asm-ppc/pgtable.h): > > #define pte_offset_map(dir, addr)

[PATCH 7/8] [POWERPC] Only allow building of BootX text support on PPC_MULTIPLATFORM

2007-07-25 Thread Kumar Gala
BootX text code is only supported on systems with real OF at this point which is PPC_OF && PPC_MULTIPLATFORM. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig.debug |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/Kconfig.debug b/arch/po

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Guennadi Liakhovetski wrote: This is now very similar to pata_platform.c, they both use same platform data structure and same resources. To achieve that, byte_lanes_swapping platform data variable and platform specified iops removed from that driver. It's fine, since those wer

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Guennadi Liakhovetski
On Wed, 25 Jul 2007, Sergei Shtylyov wrote: > Guennadi Liakhovetski wrote: > > > > This is now very similar to pata_platform.c, they both use > > > same platform data structure and same resources. > > > > To achieve that, byte_lanes_swapping platform data variable > > > and platform specified io

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Guennadi Liakhovetski
On Wed, 25 Jul 2007, Vitaly Bordug wrote: > > This is now very similar to pata_platform.c, they both use > same platform data structure and same resources. > > To achieve that, byte_lanes_swapping platform data variable > and platform specified iops removed from that driver. It's fine, > since t

Re: [PATCH 1/2] [IDE] Platform IDE driver

2007-07-25 Thread Sergei Shtylyov
Scott Wood wrote: >>> It doesn't buy us anything in here, but it's conceivable that someone >>> may want to write a driver that uses a shift in the I/O accessor >>> rather than an array of port offsets, >>It wouldn't be IDE driver then, and neither it would be libata >> which also does thi

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Hello. Scott Wood wrote: >>> +hwif->hw.io_ports[IDE_DATA_OFFSET] = port; >>> + >>> +port += (1 << pdata->ioport_shift); >>> +for (i = IDE_ERROR_OFFSET; i <= IDE_STATUS_OFFSET; >>> + i++, port += (1 << pdata->ioport_shift)) >> >> >> >> Looks like shift doesn't buy as anythi

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Vitaly Bordug wrote: > This is now very similar to pata_platform.c, they both use > same platform data structure and same resources. > To achieve that, byte_lanes_swapping platform data variable > and platform specified iops removed from that driver. It's fine, > since those were never used anywa

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Scott Wood
Sergei Shtylyov wrote: >I acn undertand your complaint in the context of an OF driver (which > we don't have yet) but "mmio-ide" just means nothing to the current > driver, and it doesn't convery enough info on the programming interface > for the conceivable OF driver, it also does need to k

[PATCH 8/8] [POWERPC] Fix register labels on show_regs() message for 4xx/Book-E

2007-07-25 Thread Kumar Gala
In a show_regs() message The DEAR and ESR were reported as DAR and DSISR which only exist on classic parts. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/kernel/process.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/

[PATCH 6/8] [POWERPC] Fix the ability to reset on MPC8544 DS and MPC8568 MDS boards

2007-07-25 Thread Kumar Gala
From: Roy Zang <[EMAIL PROTECTED]> Add global-utilities node with has-rstcr on MPC8544 DS and MPC8568 MDS boards so they are able to reset properly. Signed-off-by: Roy Zang <[EMAIL PROTECTED]> Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8544ds.dts |6 ++ a

Re: [PATCH] Re: 2.6.22-git hangs during boot on PowerBook G3 in 0.0 seconds

2007-07-25 Thread Paul Mackerras
Kim Phillips writes: > but yeah, size-cells should be allowed to be 0 (even address-cells) and > it may be the case that the Lombard needs some fixup code. So it turns out that the nvram is under the via-pmu node on the Lombard. The via-pmu node has #size-cells == 0, which is correct since thing

Re: DTC 1.0.0 Release Coming?

2007-07-25 Thread David Gibson
On Wed, Jul 25, 2007 at 11:12:00AM -0500, Jon Loeliger wrote: > Folks, > > I'd like to make an official DTC Version 1.0.0 release soon! > To that end, I've published a repo on jdl.com with a v1.0.0-rc1 > tag on it. I anticipate some updates to the Documentation before > a final 1.0.0 release stil

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Scott Wood
Sergei Shtylyov wrote: >>+ hwif->hw.io_ports[IDE_DATA_OFFSET] = port; >>+ >>+ port += (1 << pdata->ioport_shift); >>+ for (i = IDE_ERROR_OFFSET; i <= IDE_STATUS_OFFSET; >>+ i++, port += (1 << pdata->ioport_shift)) > > > Looks like shift doesn't buy as anything, why not ju

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Scott Wood
On Wed, Jul 25, 2007 at 09:54:07PM +0400, Sergei Shtylyov wrote: > Also, what mmio-ide in the compat properly means in the context of > ide_platform which is able to handle both port and memory mapped IDE. I/O-space is only valid in the context of PCI, ISA, or similar buses, and the bus-speci

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Scott Wood
Sergei Shtylyov wrote: > Hello. > > Scott Wood wrote: > >>>Also, what mmio-ide in the compat properly means in the context of >>> ide_platform which is able to handle both port and memory mapped IDE. > > >> I/O-space is only valid in the context of PCI, ISA, or similar buses, and >> the bu

[PATCH 2/2] powerpc: Marvell MV64x60 EDAC driver

2007-07-25 Thread Dave Jiang
Marvell mv64x60 SoC support for EDAC. Used on PPC and MIPS platforms. Development and testing done on PPC Motorola prpmc2800 ATCA board. The driver provides error reporting for the CPU error registers, the memory controller error registers, the SRAM error registers, and the PCI error registers. T

pte_offset_map for ppc assumes HIGHPTE

2007-07-25 Thread Satya
hello, The implementation of pte_offset_map() for ppc assumes that PTEs are kept in highmem (CONFIG_HIGHPTE). There is only one implmentation of pte_offset_map() as follows (include/asm-ppc/pgtable.h): #define pte_offset_map(dir, addr) \ ((pte_t *) kmap_atomic(pmd_page(*(dir

[PATCH 1/8] [POWERPC] Fix PCI indirect for big-endian cfg_addr

2007-07-25 Thread Kumar Gala
We didn't actually propogate the flag we pass into setup_indirect_pci() to set indirect_type and thus were getting the wrong endianness if PPC_INDIRECT_TYPE_BIG_ENDIAN was set. Also, we need to or in additional flags rather than just doing a direct assignment. Signed-off-by: Kumar Gala <[EMAIL PR