dtc: Fix silly typo in dtc-checkfails.sh

2007-12-06 Thread David Gibson
Too much C coding makes for dumb errors in shell. Signed-off-by: David Gibson <[EMAIL PROTECTED]> Index: dtc/tests/dtc-checkfails.sh === --- dtc.orig/tests/dtc-checkfails.sh2007-12-07 17:14:52.0 +1100 +++ dtc/tests/dtc-ch

dtc: Allow gcc format warnings for check_msg()

2007-12-06 Thread David Gibson
check_msg() takes printf() like arguments, so tell gcc to produce printf() like warnings for it. Signed-off-by: David Gibson <[EMAIL PROTECTED]> Index: dtc/checks.c === --- dtc.orig/checks.c 2007-12-07 17:10:23.0 +1100 +++

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: > > > +/* Check that the core has been initied and if not, do it */ > > > +static int __init ppc4xx_pciex_check_core_init(struct device_node *np) > > > +{ > > > + static int core_init; > > > + int count = -ENODEV; > > > + > > > + if (core_

[PATCH] [POWERPC] eeh: avoid a possible NULL pointer dereference

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/pseries/eeh_driver.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/pseries/eeh_driver.c b/arch/powerpc/platforms/pseries/eeh_driver.c index 06b89b5..68ea5ee 100644

[RFC][POWERPC] Provide a way to protect 4k subpages when using 64k pages

2007-12-06 Thread Paul Mackerras
Using 64k pages on 64-bit PowerPC systems makes life difficult for emulators that are trying to emulate an ISA, such as x86, which use a smaller page size, since the emulator can no longer use the MMU and the normal system calls for controlling page protections. Of course, the emulator can emulate

[PATCH 3/3] [POWERPC] iSeries: merge vpdinfo.c intp pci.c

2007-12-06 Thread Stephen Rothwell
There was only one global function in vpdinfo.c and it was only called from pci.c, so merge them and make the function static. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/Makefile |2 +- arch/powerpc/platforms/iseries/pci.c | 218 ++

[PATCH 2/3] [POWERPC] iSeries: clean up and simplify vdpinfo.c

2007-12-06 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/vpdinfo.c | 100 ++ 1 files changed, 46 insertions(+), 54 deletions(-) diff --git a/arch/powerpc/platforms/iseries/vpdinfo.c b/arch/powerpc/platforms/iseries/vpdinfo.c index f9415

[PATCH 1/3] [POWERPC] iSeries: DeCamelCase vpdinfo.c

2007-12-06 Thread Stephen Rothwell
This is a purely mechanical transformation. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/pci.c |2 +- arch/powerpc/platforms/iseries/pci.h |2 +- arch/powerpc/platforms/iseries/vpdinfo.c | 188 +++--- 3 files chang

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

2007-12-06 Thread Li Zefan
Nick Piggin 写道: > On Thursday 06 December 2007 20:33, Li Zefan wrote: >> The casting is safe only when the list_head member is the >> first member of the structure. > > Even so, I don't think too safe :) It might technically work, > but it could break more easily. > > So even if you find places w

dtc: Make dtc-checfails.sh script catch deaths-by-signal

2007-12-06 Thread David Gibson
Since commit 5ba0086bfd0fa6ab25f7ce1870417301a26c104f, the dtc-checkfails.sh script does not check the return code from dtc. That's reasonable, since depending on the checks we're testing, dtc could either complete succesfully or return an error. However, it's never right for dtc to SEGV or otherw

Re: dtc: Reinstate full old-style reference-to-path for v0 dts files

2007-12-06 Thread David Gibson
On Thu, Dec 06, 2007 at 09:39:28PM -0600, Josh Boyer wrote: > On Fri, 7 Dec 2007 14:38:26 +1100 > David Gibson <[EMAIL PROTECTED]> wrote: > > > Commit 7c44c2f9cb1cc2df7aacd13decfc4e64b73d1730 broke backwards > > compatibility more badly than I realised. Contrary to what I thought > > there are in

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

2007-12-06 Thread Nick Piggin
On Thursday 06 December 2007 20:33, Li Zefan wrote: > The casting is safe only when the list_head member is the > first member of the structure. Even so, I don't think too safe :) It might technically work, but it could break more easily. So even if you find places where list_head is the first me

Re: dtc: Reinstate full old-style reference-to-path for v0 dts files

2007-12-06 Thread Josh Boyer
On Fri, 7 Dec 2007 14:38:26 +1100 David Gibson <[EMAIL PROTECTED]> wrote: > Commit 7c44c2f9cb1cc2df7aacd13decfc4e64b73d1730 broke backwards > compatibility more badly than I realised. Contrary to what I thought > there are in-kernel, in-use dts files which relied on > references-to-path with path

dtc: Reinstate full old-style reference-to-path for v0 dts files

2007-12-06 Thread David Gibson
Commit 7c44c2f9cb1cc2df7aacd13decfc4e64b73d1730 broke backwards compatibility more badly than I realised. Contrary to what I thought there are in-kernel, in-use dts files which relied on references-to-path with paths including a comma, which no longer compile after that commit. So, this patch rei

Re: [PATCH 23/25] powerpc: Rework 4xx clock probing in boot wrapper

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 19:00:22 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > Index: linux-work/arch/powerpc/boot/reg.h > === > --- linux-work.orig/arch/powerpc/boot/reg.h 2007-12-03 14:26:09.0 > +1100 > +++ linux-

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

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 19:00:20 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > This adds a function to the bootwrapper 4xx library to decode memory > size on 440SPE processors. Why did you rename the fixup_memsize function? Could you add that to the changelog, and perhaps a bit about add

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

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 19:00:19 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > 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.d

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

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 19:00:18 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > From: Hugh Blemings <[EMAIL PROTECTED]> > > > Signed-off-by: Hugh Blemings <[EMAIL PROTECTED]> > Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > --- > Index: linux-work/arch/powerpc/platforms/44x/

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

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 19:00:15 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > --- > Index: linux-work/arch/powerpc/boot/dts/ep405.dts > === > --- /dev/null 1970-0

dtc: Convert #address-cells and #size-cells related checks

2007-12-06 Thread David Gibson
This patch converts checks related to #address-cells and #size-cells to the new framework. Specifically, it reimplements the check that "reg" properties have a valid size based on the relevant #address-cells and #size-cells values. The new implementation uses the correct default value, unlike the

dtc: Convert check for obsolete /chosen property

2007-12-06 Thread David Gibson
This converts the test for the obsolete "interrupt-controller" property in /chosen to the new framework. That was the only thing left in the old-style check_chosen() function, so that function is removed, too. Signed-off-by: David Gibson <[EMAIL PROTECTED]> Index: dtc/checks.c ==

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

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 19:00:06 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > 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 m

Re: [PATCH] add MPC837x MDS board default device tree

2007-12-06 Thread David Gibson
On Wed, Dec 05, 2007 at 06:37:53PM +0800, Li Yang wrote: > Signed-off-by: Li Yang <[EMAIL PROTECTED]> > --- > Update SATA nodes; remove serdes nodes; add aliases and labels. > > arch/powerpc/boot/dts/mpc8377_mds.dts | 270 +++ > arch/powerpc/boot/dts/mpc8378_mds.dts |

Please pull powerpc.git merge branch

2007-12-06 Thread Paul Mackerras
Linus, I have added another commit to my powerpc.git tree merge branch, so please do: git pull \ master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc.git merge (the mirroring seems to be slow today). The diffstat and log below reflect the new commit plus the 4 in my last pull request. Th

Re: MPC85xx DMA drivers, first testing results.

2007-12-06 Thread Timur Tabi
Clemens Koller wrote: > Hi There! > > I just tried to use the fsldma on the mpc8540. It seems to work fine > here, but I would be glad if somebody can confirm before I move on: > > I added the following to my mpc8540ads compatible board's .dts > (see my comments, where the not yet available docum

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

2007-12-06 Thread Greg KH
On Thu, Dec 06, 2007 at 06:58:54PM +1100, 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

Re: [PATCH 1/5] PowerPC 74xx: Katana Qp device tree

2007-12-06 Thread Mark A. Greer
David, et. al., This is a big blob patch of what I've changed for the prpmc2800. It includes the necessary changes in the kernel which you can probably ignore but they're there for reference. If you like the dts, then I'll split the blob up into logical pieces and Andrei can make similar changes

[PATCH 3/3] [POWERPC] MPC8349E-mITX: Vitesse 7385 PHY is not connected to the MDIO bus

2007-12-06 Thread Vitaly Bordug
...thus use fixed-link to register proper "Fixed PHY" Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8349emitx.dts | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/

[PATCH 2/3] [POWERPC] fsl_soc: add support for gianfar for fixed-link property

2007-12-06 Thread Vitaly Bordug
fixed-link says: register new "Fixed/emulated PHY", i.e. PHY that not connected to the real MDIO bus. Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]> Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt |4 + arch/powerpc/sysdev/fsl_soc.c

[PATCH 1/3] [NET] phy/fixed.c: rework to not duplicate PHY layer functionality

2007-12-06 Thread Vitaly Bordug
With that patch fixed.c now fully emulates MDIO bus, thus no need to duplicate PHY layer functionality. That, in turn, drastically simplifies the code, and drops down line count. As an additional bonus, now there is no need to register MDIO bus for each PHY, all emulated PHYs placed on the platfo

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

2007-12-06 Thread Benjamin Herrenschmidt
> It's been discussed before. Some of the solutions discussed: > > - Add something like PRI_RES which can be concatenated into a printk. >Ugly. > - Patch gcc to allow user-definable types. I think OpenBSD has a patch >for this. Then we have to get that patch propagated to all the >

[PATCH] [POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper

2007-12-06 Thread Matthias Fuchs
This patch adds support for 405GPr processors with optional new mode strapping. ibm405gp_fixup_clocks() can now be used for 405GP and 405GPr CPUs. This is in preparation of porting the cpci405 platform support from arch/ppc to arch/powerpc. This patch also adds ibm405ep_fixup_clocks() to support

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

2007-12-06 Thread Benjamin Herrenschmidt
> > +/* Check that the core has been initied and if not, do it */ > > +static int __init ppc4xx_pciex_check_core_init(struct device_node *np) > > +{ > > + static int core_init; > > + int count = -ENODEV; > > + > > + if (core_init++) > > + return 0; > > + > > +#ifdef CONFIG_44x > >

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

2007-12-06 Thread Timur Tabi
Kumar Gala wrote: > When I wait you come up with a new version.. so I'm waiting to see if v3 > comes out :) Well, I guess I can't blame you for that. :-) 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-cl

MPC85xx DMA drivers, first testing results.

2007-12-06 Thread Clemens Koller
Hi There! I just tried to use the fsldma on the mpc8540. It seems to work fine here, but I would be glad if somebody can confirm before I move on: I added the following to my mpc8540ads compatible board's .dts (see my comments, where the not yet available documentation was unclear): [EMAIL PROTE

Re: [PATCH 2/2] usb: Remove OHCI useless masking/unmasking of WDH interrupt

2007-12-06 Thread David Brownell
From: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Subject: [PATCH 2/2] usb: Remove OHCI useless masking/unmasking of WDH interrupt The OHCI driver's IRQ handler, while processing a WDH interrupt, masks and unmasks it. I believe this is both broken (the write may still be posted during the donelist

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

2007-12-06 Thread David Brownell
From: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Subject: [PATCH 1/2] usb: Remove broken optimisation in OHCI IRQ handler The OHCI IRQ handler has an optimisation that avoids reading some chip registers when the controller reports that the interrupt was triggered *only* because completed requests

[PATCH v3] update xmon slb code.

2007-12-06 Thread Will Schmidt
[powerpc] update xmon slb code This adds a bit more detail to the xmon SLB output. When the valid bit is set, This displays the ESID and VSID values, as well as decoding the segment size, (1T or 256M) and displaying the LLP bits. This supresses the output for any slb entries that contain only ze

Re: 2.6.25-candidates branch updated in 4xx tree

2007-12-06 Thread Josh Boyer
On Tue, 4 Dec 2007 13:11:39 -0600 Josh Boyer <[EMAIL PROTECTED]> wrote: > For those following my tree, I've added a 2.6.25-candidates branch and > based it off of Paul's latest master. (If you've already pulled > you'll have to reset, sorry.) I've updated this again with BenH's latest PCI patch

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 18/25] powerpc: Base support for 440GX Taishan eval board

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 19:00:18 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > 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

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

2007-12-06 Thread Josh Boyer
On Thu, 06 Dec 2007 12:16:44 -0700 Grant Likely <[EMAIL PROTECTED]> wrote: > 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 gen

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

2007-12-06 Thread Timur Tabi
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! -- Timur Tabi Linux kernel developer at Freescale ___ Linuxppc-dev

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

[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

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

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

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

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

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

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

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

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

[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: 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 > (

[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

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

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

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

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

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

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

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

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

  1   2   >