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

2011-03-31 Thread Benjamin Herrenschmidt
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 remove more events in a speculative roll back than it had

[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 prabha...@freescale.com Acked-by: Kumar Gala kumar.g...@freescale.com --- Based upon

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 prabha...@freescale.com Acked-by: Kumar Gala

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 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 ga...@kernel.crashing.org wrote: On Mar 24, 2011, at 11:47 PM, Prabhakar Kushwaha wrote: PCIe memory address space is 1:1

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 w.s...@pengutronix.de Cc: Benjamin Herrenschmidt b...@kernel.crashing.org It's Ben's

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

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 sort

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

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

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 b...@kernel.crashing.org An: linuxppc-dev linuxppc-dev@lists.ozlabs.org CC: Takashi Iwai ti...@suse.de Betreff: [PATCH] powerpc: Implement dma_mmap_coherent() This is used by Alsa to mmap

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 I

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 ga...@kernel.crashing.org wrote: On Mar 24, 2011, at 11:47

[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 ME,CE CR: 22044022 XER:

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: snip diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index b123bb3..5aef2ed 100644

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

2011-03-31 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- 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 ---

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

2011-03-31 Thread Benjamin Herrenschmidt
From: Ryan Grimm gr...@us.ibm.com Without this, holes in the CPU numbering can cause us to free too many PACAs Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/kernel/paca.c |2 +- arch/powerpc/kernel/setup-common.c |3 +++ 2 files changed, 4

[PATCH] powerpc/pseries: Fix build without CONFIG_HOTPLUG_CPU

2011-03-31 Thread Benjamin Herrenschmidt
From: Matt Evans m...@ozlabs.au.ibm.com Signed-off-by: Matt Evans m...@ozlabs.au.ibm.com Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/platforms/pseries/smp.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git

[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