[git pull] Please pull powerpc.git merge branch

2011-03-31 Thread Benjamin Herrenschmidt
Hi Linus ! Some more powerpc bits for you. One is actually a change from Anton to the generic kexec to make a function weak so powerpc can override it. It has been around for ever, there were initial objections I think mostly due to a misunderstanding of the problem. Since then, it's been a dea

[PATCH] powerpc/pseries: Fix build without CONFIG_HOTPLUG_CPU

2011-03-31 Thread Benjamin Herrenschmidt
From: Matt Evans Signed-off-by: Matt Evans Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/pseries/smp.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/pseries/smp.c b/arch/powerpc/platforms/pseries/smp.c index

[PATCH] powerpc: Set nr_cpu_ids early and use it to free PACAs

2011-03-31 Thread Benjamin Herrenschmidt
From: Ryan Grimm Without this, "holes" in the CPU numbering can cause us to free too many PACAs Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/paca.c |2 +- arch/powerpc/kernel/setup-common.c |3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/

[PATCH] powerpc/pseries: Don't register global initcall

2011-03-31 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/pseries/setup.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 82f632e..0e5e91a 100644 --- a/arch/powerpc/platforms/ps

Re: [PATCH] edac/mpc85xx: Limit setting/clearing of HID1[RFXE] to e500v1/v2 cores

2011-03-31 Thread Nishanth Aravamudan
On 31.03.2011 [17:23:14 -0500], Kumar Gala wrote: > Only the e500v1/v2 cores have HID1[RXFE] so we should attempt to set or > clear this register bit on them. Otherwise we get crashes like: > diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c > index b123bb3..5aef2ed 100644

[PATCH] edac/mpc85xx: Limit setting/clearing of HID1[RFXE] to e500v1/v2 cores

2011-03-31 Thread Kumar Gala
Only the e500v1/v2 cores have HID1[RXFE] so we should attempt to set or clear this register bit on them. Otherwise we get crashes like: NIP: c0579f84 LR: c006d550 CTR: c0579f84 REGS: ef857ec0 TRAP: 0700 Not tainted (2.6.38.2-00072-gf15ba3c) MSR: 00021002 CR: 22044022 XER: TASK = ef

Re: [PATCH] powerpc/dts:Update PCIe memory maps to match u-boot of Px020RDB

2011-03-31 Thread Kumar Gala
On Mar 31, 2011, at 6:44 AM, Leon Woestenberg wrote: > Hello Prabhakar, Kumar, > > (I missed the original post, due to temporarely being unsubscribed, I > am responding to Kumar's reply). > > On Thu, Mar 31, 2011 at 10:22 AM, Kumar Gala > wrote: >> On Mar 24, 2011, at 11:47 PM, Prabhakar Kush

Re: [PATCH] powerpc: Implement dma_mmap_coherent()

2011-03-31 Thread Benjamin Herrenschmidt
On Thu, 2011-03-31 at 22:39 +0200, Gerhard Pircher wrote: > Anyway, it compiles with explicit type casts and I could test it on my > semi-noncoherent AmigaOne. So far it works just fine with the VIA > onboard > sound and a Soundblaster Live PCI card. > > Thanks a lot for the fix! Yes, the version

Re: [PATCH] powerpc: Implement dma_mmap_coherent()

2011-03-31 Thread Gerhard Pircher
Original-Nachricht > Datum: Fri, 25 Mar 2011 17:50:06 +1100 > Von: Benjamin Herrenschmidt > An: linuxppc-dev > CC: Takashi Iwai > Betreff: [PATCH] powerpc: Implement dma_mmap_coherent() > This is used by Alsa to mmap buffers allocated with dma_alloc_coherent() > into userspace

Re: mmotm threatens ppc preemption again

2011-03-31 Thread Benjamin Herrenschmidt
On Thu, 2011-03-31 at 10:21 -0700, Jeremy Fitzhardinge wrote: > > No, its the same accessors for both, since the need to distinguish them > hasn't really come up. Could you put a "if (preemptable()) return;" > guard in your implementations? That would be a band-aid but would probably do the tric

[PATCH] powerpc/kexec: Fix mismatched ifdefs for PPC64/SMP.

2011-03-31 Thread Paul Gortmaker
Commit b3df895aebe091b1657 "powerpc/kexec: Add support for FSL-BookE" introduced the original PPC_STD_MMU_64 checks around the function crash_kexec_wait_realmode(). Then commit c2be05481f61252 "powerpc: Fix default_machine_crash_shutdown #ifdef botch" changed the ifdef around the calling site to

Re: mmotm threatens ppc preemption again

2011-03-31 Thread Jeremy Fitzhardinge
On 03/30/2011 05:52 PM, Benjamin Herrenschmidt wrote: > We deal with preemption already since the PTL turns into a mutex on -rt, > so we could bring that patch into mainline. The easiest approach however > for now would be to not do the kernel batched updates on kernel > (solution 4), and I can sor

Re: [PATCH] POWER: perf_event: Skip updating kernel counters if register value shrinks

2011-03-31 Thread Eric B Munson
On Thu, 31 Mar 2011, Benjamin Herrenschmidt wrote: > On Wed, 2011-03-30 at 14:36 -0400, Eric B Munson wrote: > > On Wed, 30 Mar 2011, Benjamin Herrenschmidt wrote: > > > > > On Tue, 2011-03-29 at 10:25 -0400, Eric B Munson wrote: > > > > Here I made the assumption that the hardware would never re

Re: [PATCH] powerpc: dtc: remove obsolete .gitignore entries

2011-03-31 Thread Grant Likely
On Sat, Mar 12, 2011 at 05:44:10PM +0100, Wolfram Sang wrote: > dtc was moved and .gitignores have been added to the new location. So, we can > delete the old, forgotten ones. > > Signed-off-by: Wolfram Sang > Cc: Benjamin Herrenschmidt It's Ben's jurisdiction, but I've picked it up into my dev

Re: [PATCH] powerpc/dts:Update PCIe memory maps to match u-boot of Px020RDB

2011-03-31 Thread Leon Woestenberg
Hello Prabhakar, Kumar, (I missed the original post, due to temporarely being unsubscribed, I am responding to Kumar's reply). On Thu, Mar 31, 2011 at 10:22 AM, Kumar Gala wrote: > On Mar 24, 2011, at 11:47 PM, Prabhakar Kushwaha wrote: > >> PCIe memory address space is 1:1 mapped with u-boot. >

configure FPGA

2011-03-31 Thread SACHIN SOLANKI
hi sir, i want to store some bit stream to compect flesh in diffrenrt memory location.is it possible through powerPC control programing that we can select sinrgle bit stream from complect flesh card and configure fpga. looking forward for reply ___

Re: [PATCH] powerpc/dts:Update PCIe memory maps to match u-boot of Px020RDB

2011-03-31 Thread Kumar Gala
On Mar 24, 2011, at 11:47 PM, Prabhakar Kushwaha wrote: > PCIe memory address space is 1:1 mapped with u-boot. > > Update dts of Px020RDB i.e. P1020RDB and P2020RDB to match the address map > changes in u-boot. > > Signed-off-by: Prabhakar Kushwaha > Acked-by: Kumar Gala > --- > Based upon >

[PATCH] powerpc/85xx: Don't add disabled PCIe devices

2011-03-31 Thread Prabhakar Kushwaha
PCIe nodes with the property status="disabled" are not usable and so avoid adding "disabled" PCIe bridge with the system. Signed-off-by: Prabhakar Kushwaha Acked-by: Kumar Gala --- Based upon git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git(branch master) arch/powerpc/sy