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

2007-12-09 Thread Stefan Roese
This patch adds runtime detection of the 440SPe revision A chips. These chips are equipped with a slighly different PCIe core and need special/ different initialization. The compatible node is changed to "plb-pciex-440spe" ("A" and "B" dropped). This is needed for boards that can be equipped with b

[PATCH 2/2] pci: Fix warning in setup-res.c on 32-bit platforms with 64-bit resources

2007-12-09 Thread Benjamin Herrenschmidt
This adds appropriate casts to avoid a warning and print the correct values in pr_debug. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- drivers/pci/setup-res.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) Index: linux-work/drivers/pci/setup-res.c ===

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

2007-12-09 Thread Benjamin Herrenschmidt
The current pci_assign_unassigned_resources() code doesn't work properly on 32 bits platforms with 64 bits resources. The main reason is the use of unsigned long in various places instead of resource_size_t. This fixes it, along with some tricks to avoid casting to 64 bits on platforms that don't

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

2007-12-09 Thread Benjamin Herrenschmidt
On Mon, 2007-12-10 at 17:15 +1100, Benjamin Herrenschmidt wrote: > The current pci_assign_unassigned_resources() code doesn't work properly > on 32 bits platforms with 64 bits resources. The main reason is the use > of unsigned long in various places instead of resource_size_t. > > This fixes it,

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

2007-12-09 Thread Benjamin Herrenschmidt
The current pci_assign_unassigned_resources() code doesn't work properly on 32 bits platforms with 64 bits resources. The main reason is the use of unsigned long in various places instead of resource_size_t. This fixes it, along with some tricks to avoid casting to 64 bits on platforms that don't

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

2007-12-09 Thread Benjamin Herrenschmidt
powerpc: Base support for 440GX Taishan eval board 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 mtdcr

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

2007-12-09 Thread Benjamin Herrenschmidt
On Thu, 2007-12-06 at 21:27 -0600, Josh Boyer wrote: > 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/powerp

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

2007-12-09 Thread Benjamin Herrenschmidt
powerpc: Wire up PCI on Bamboo board 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]> --- Index: linux-work/arch/powerpc/boot/dts/bamboo.dts ==

RE: [PATCH] Fix rounding bug in emulation for double floatoperating

2007-12-09 Thread Liu Yu
> -Original Message- > From: David Gibson [mailto:[EMAIL PROTECTED] > Sent: Monday, December 10, 2007 12:56 PM > To: Liu Yu > Cc: linuxppc-dev@ozlabs.org > Subject: Re: [PATCH] Fix rounding bug in emulation for double > floatoperating > > > On Mon, Dec 10, 2007 at 01:00:52PM +0800

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

2007-12-09 Thread Benjamin Herrenschmidt
powerpc: EP405 boards support for arch/powerpc 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 to

Re: [PATCH] Fix rounding bug in emulation for double float operating

2007-12-09 Thread David Gibson
On Mon, Dec 10, 2007 at 01:00:52PM +0800, Liu Yu wrote: > > This patch fixes rounding bug in emulation for double float operating on > PowerPC platform. > > When pack double float operand, it need to truncate the tail due to the > limited precision. > If the truncated part is not zero, the las

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

2007-12-09 Thread Benjamin Herrenschmidt
powerpc: Improve support for 4xx indirect DCRs 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

[PATCH] Fix rounding bug in emulation for double float operating

2007-12-09 Thread Liu Yu
This patch fixes rounding bug in emulation for double float operating on PowerPC platform. When pack double float operand, it need to truncate the tail due to the limited precision. If the truncated part is not zero, the last bit of work bit (totally 3 bits) need to '|' 1. This patch is compl

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

2007-12-09 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- This version also renames the arch_data field to dn. arch/powerpc/kernel/isa-bridge.c |2 +- arch/powerpc/kernel/pci-common.c |4 ++-- arch/powerpc/kernel/pci_32.c | 10 +- ar

[PATCH 3/3] Kill flatdevtree.c

2007-12-09 Thread David Gibson
Now that earlier patches have switched the bootwrapper to using libfdt for device tree manipulation, this patch removes the now unused flatdevtree.c and related files. Signed-off-by: David Gibson <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile |2 arch/powerpc/boot/flatdevtree.

[PATCH 2/3] Use embedded libfdt in the bootwrapper

2007-12-09 Thread David Gibson
This patch incorporates libfdt (from the source embedded in an earlier patch) into the wrapper.a library used by the bootwrapper. This includes adding a libfdt_env.h file, which the libfdt sources need in order to integrate into the bootwrapper environment, and a libfdt-wrapper.c which provides gl

[0/3] Merge libfdt into the bootwrapper

2007-12-09 Thread David Gibson
Since there's still argument about what to do with dtc w.r.t. the kernel, for now here's a cut down series which merges libfdt into the powerpc bootwrapper. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _

looking for ibook users

2007-12-09 Thread Benjamin Herrenschmidt
Hi ! If you have an ibook in linux and your dmesg contains something like: "Apple USB OHCI :xx:xx disabled by firmware" Can you contact me privately ? I'm about to make some change that could cause problems with those unless I find somebody to test and make sure it's allright. Thanks ! Che

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

2007-12-09 Thread Josh Boyer
On Mon, 10 Dec 2007 06:58:33 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-12-09 at 11:24 -0600, Olof Johansson wrote: > > On Sun, Dec 09, 2007 at 06:01:55PM +1100, Benjamin Herrenschmidt wrote: > > > > > Ah yeah, indeed. I'll fix these. (BTW. Could you CC Hugh next ti

FSL device-trees i8259 bugs (and others too !)

2007-12-09 Thread Benjamin Herrenschmidt
Hi ! I've been looking into making the 8259 driver properly apply the sense setting to the chip. We'll probably need that for PReP and I was looking into some issues with legacy IDE controllers flipping between legacy and native mode since that changes the IRQ as well (legacy mode is rising edge,

Test, please ignore

2007-12-09 Thread Stephen Rothwell
Just a test of the CC munging. -- Cheers, Stephen Rothwell[EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/ pgpfsdqtFzJ6c.pgp Description: PGP signature ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mai

CC munging by mailman lists (Was: Re: [PATCH 18/25] powerpc: Base support for 440GX Taishan eval board)

2007-12-09 Thread Stephen Rothwell
On Sun, 9 Dec 2007 11:24:04 -0600 Olof Johansson <[EMAIL PROTECTED]> wrote: > > I didn't see him Cc:d on the patch submission, and I'm guessing Josh did > a reply-all. Seems as if the mailing list manager strips Cc fields of > people already subscribed to the list, I've seen it before. Ok, this is

[PATCH 4/4] Convert pfc8563 i2c driver from old style to new style

2007-12-09 Thread Jon Smirl
Convert pfc8563 i2c driver from old style to new style. The driver is also modified to support device tree names via the i2c mod alias mechanism. Signed-off-by: Jon Smirl <[EMAIL PROTECTED]> --- drivers/rtc/rtc-pcf8563.c | 110 - 1 files changed, 30 i

[PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Jon Smirl
New verision, addresses whitespace issues The following series implements standard linux module aliasing for i2c modules It then converts the mpc i2c driver from being a platform driver to an open firmware one. I2C device names are picked up from the device tree. Module aliasing is used to transla

[PATCH 2/4] Modify several rtc drivers to use the alias names list property of i2c

2007-12-09 Thread Jon Smirl
This patch modifies the ds1307, ds1374, and rs5c372 i2c drivers to support device tree names using the new i2c mod alias support Signed-off-by: Jon Smirl <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c | 44 ++--- drivers/rtc/rtc-ds1307.c | 38 +

[PATCH 3/4] Convert PowerPC MPC i2c to of_platform_driver from platform_driver

2007-12-09 Thread Jon Smirl
Convert MPC i2c driver from being a platform_driver to an open firmware version. Error returns were improved. Routine names were changed from fsl_ to mpc_ to make them match the file name. Signed-off-by: Jon Smirl <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c | 96 ---

[PATCH 1/4] Implement module aliasing for i2c to translate from device tree names

2007-12-09 Thread Jon Smirl
This patch allows new style i2c chip drivers to have alias names using the official kernel aliasing system and MODULE_DEVICE_TABLE(). I've tested it on PowerPC and x86. This change is required for PowerPC device tree support. Signed-off-by: Jon Smirl <[EMAIL PROTECTED]> --- drivers/i2c/i2c-core.

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

2007-12-09 Thread Roland Dreier
> I think it needs some more inspection. The msleep in there is only called > for hcalls that return H_IS_LONG_BUSY(). In theory, you can call > ehca_plpar_hcall_norets() from inside an interrupt handler if the > hcall in question never returns long busy. Fair enough... according to Documentat

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Olof Johansson
On Mon, Dec 10, 2007 at 08:38:46AM +1100, Benjamin Herrenschmidt wrote: > > > +static struct i2c_device_id rs5c372_id[] = { > > + {"rtc-rs5c372", rtc_rs5c372a}, > > + {"rs5c372a", rtc_rs5c372a}, > > + {"rs5c372b", rtc_rs5c372b}, > > + {"rv5c386", rtc_rv5c386}, > > + {

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Jon Smirl
On 12/9/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > +static struct i2c_device_id rs5c372_id[] = { > > + {"rtc-rs5c372", rtc_rs5c372a}, > > + {"rs5c372a", rtc_rs5c372a}, > > + {"rs5c372b", rtc_rs5c372b}, > > + {"rv5c386", rtc_rv5c386}, > > + {"rv5c387a",

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Benjamin Herrenschmidt
> +static struct i2c_device_id rs5c372_id[] = { > + {"rtc-rs5c372", rtc_rs5c372a}, > + {"rs5c372a", rtc_rs5c372a}, > + {"rs5c372b", rtc_rs5c372b}, > + {"rv5c386", rtc_rv5c386}, > + {"rv5c387a", rtc_rv5c387a}, > + DT_NAME({"ricoh,rs5c372a", rtc_rs5c372a},) > +

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Jon Smirl
On 12/9/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-12-09 at 15:57 -0500, Jon Smirl wrote: > > > > Are there technical concerns with this series? The white space can be > > fixed in a few minutes. > > > > Adding a tag to differentiate matching types has implications that

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Benjamin Herrenschmidt
On Sun, 2007-12-09 at 15:57 -0500, Jon Smirl wrote: > > Are there technical concerns with this series? The white space can be > fixed in a few minutes. > > Adding a tag to differentiate matching types has implications that are > broader than just i2c. Shouldn't we do this first with the existing

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Jon Smirl
On 12/9/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-12-09 at 15:24 -0500, Jon Smirl wrote: > > What is the status of this series, is there anything I can do to help > > get this into the i2c subsystem? > > I think there were a few comments such as whitespace issues and Sc

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Benjamin Herrenschmidt
On Sun, 2007-12-09 at 15:24 -0500, Jon Smirl wrote: > What is the status of this series, is there anything I can do to help > get this into the i2c subsystem? I think there were a few comments such as whitespace issues and Scott had a comment about a tag to differenciate matching type. Thus the

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Olof Johansson
On Sun, Dec 09, 2007 at 03:24:55PM -0500, Jon Smirl wrote: > What is the status of this series, is there anything I can do to help > get this into the i2c subsystem? I never saw the comments about whitespace cleanups being addressed. If you run them through checkpatch you'll see quite a few things

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

2007-12-09 Thread Jon Smirl
What is the status of this series, is there anything I can do to help get this into the i2c subsystem? On 12/3/07, Jon Smirl <[EMAIL PROTECTED]> wrote: > The following series implements standard linux module aliasing for i2c modules > It then converts the mpc i2c driver from being a platform drive

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

2007-12-09 Thread Olof Johansson
On Sun, Dec 09, 2007 at 12:24:08PM -0600, Josh Boyer wrote: > Yeah, I just did Reply-to-all. I've never seen CC's be stripped > though. Anyway, I'll try to remember in the future. Actually, my mail that you replied to had your address stripped off the Cc list when it came out on the list (at le

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

2007-12-09 Thread Benjamin Herrenschmidt
On Sun, 2007-12-09 at 11:24 -0600, Olof Johansson wrote: > On Sun, Dec 09, 2007 at 06:01:55PM +1100, Benjamin Herrenschmidt wrote: > > > Ah yeah, indeed. I'll fix these. (BTW. Could you CC Hugh next time as > > he's the author). > > I didn't see him Cc:d on the patch submission, and I'm guessing

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

2007-12-09 Thread Josh Boyer
On Sun, 9 Dec 2007 11:24:04 -0600 Olof Johansson <[EMAIL PROTECTED]> wrote: > On Sun, Dec 09, 2007 at 06:01:55PM +1100, Benjamin Herrenschmidt wrote: > > > Ah yeah, indeed. I'll fix these. (BTW. Could you CC Hugh next time as > > he's the author). > > I didn't see him Cc:d on the patch submissio

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

2007-12-09 Thread Olof Johansson
On Sun, Dec 09, 2007 at 06:01:55PM +1100, Benjamin Herrenschmidt wrote: > Ah yeah, indeed. I'll fix these. (BTW. Could you CC Hugh next time as > he's the author). I didn't see him Cc:d on the patch submission, and I'm guessing Josh did a reply-all. Seems as if the mailing list manager strips Cc

Re: Powerpc PCI cleanups (mainly iSeries)

2007-12-09 Thread Josh Boyer
On Sun, 09 Dec 2007 18:29:26 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-12-06 at 09:44 -0600, Josh Boyer wrote: > > 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

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-09 Thread Balbir Singh
Pavel Machek wrote: > On Sat 2007-12-08 09:52:06, Balbir Singh wrote: >> David Rientjes wrote: >>> On Sat, 8 Dec 2007, Balbir Singh wrote: >>> To be able to test the memory controller under NUMA, I use fake NUMA nodes. x86-64 has a similar feature, the code I have here is the simples

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-09 Thread Pavel Machek
On Sat 2007-12-08 09:52:06, Balbir Singh wrote: > David Rientjes wrote: > > On Sat, 8 Dec 2007, Balbir Singh wrote: > > > >> To be able to test the memory controller under NUMA, I use fake NUMA > >> nodes. x86-64 has a similar feature, the code I have here is the > >> simplest I could come up wit

Re: Please pull linux-2.6-8xx.git for-paulus branch

2007-12-09 Thread Vitaly Bordug
On Sat, 8 Dec 2007 09:17:06 -0600 Kumar Gala wrote: > > On Dec 8, 2007, at 4:09 AM, Vitaly Bordug wrote: > > > On Sat, 8 Dec 2007 13:00:25 +0300 > > Vitaly Bordug wrote: > > > >> Paul, > >> > >> please do > >> git-pull > >> git://git.kernel.org/pub/scm/linux/kernel/git/vitb/linux-2.6-8xx.git > >