RE: PCI DMA to user mem on mpc83xx

2011-05-24 Thread David Laight
we have a pretty old PCI device driver here that needs some basic rework running on 2.6.27 on several MPC83xx. It's a simple char-device with give me some data implemented using read() resulting in zero-copy DMA to user mem. There's get_user_pages() working under the hood along with

Re: [PATCH] oprofile, powerpc: Handle events that raise an exception without overflowing

2011-05-24 Thread Robert Richter
On 23.05.11 10:22:40, Eric B Munson wrote: Commit 0837e3242c73566fc1c0196b4ec61779c25ffc93 fixes a situation on POWER7 where events can roll back if a specualtive event doesn't actually complete. This can raise a performance monitor exception. We need to catch this to ensure that we reset

Re: PCI DMA to user mem on mpc83xx

2011-05-24 Thread Andre Schwarz
Ira, On Mon, May 23, 2011 at 11:12:41AM +0200, Andre Schwarz wrote: Ira, we have a pretty old PCI device driver here that needs some basic rework running on 2.6.27 on several MPC83xx. It's a simple char-device with give me some data implemented using read() resulting in zero-copy DMA to user

Re: PCI DMA to user mem on mpc83xx

2011-05-24 Thread Andre Schwarz
David, we have a pretty old PCI device driver here that needs some basic rework running on 2.6.27 on several MPC83xx. It's a simple char-device with give me some data implemented using read() resulting in zero-copy DMA to user mem. There's get_user_pages() working under the hood along with

[PATCH 1/1] powerpc: Update MAX_HCALL_OPCODE to reflect page coalescing

2011-05-24 Thread Brian King
When page coalescing support was added recently, the MAX_HCALL_OPCODE define was not updated for the newly added H_GET_MPP_X hcall. Signed-off-by: Brian King brk...@linux.vnet.ibm.com --- arch/powerpc/include/asm/hvcall.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Will Drewry
On Thu, May 19, 2011 at 4:05 PM, Will Drewry w...@chromium.org wrote: On Thu, May 19, 2011 at 7:22 AM, Steven Rostedt rost...@goodmis.org wrote: On Wed, 2011-05-18 at 21:07 -0700, Will Drewry wrote: Do event_* that return non-void exist in the tree at all now?  I've looked at the various

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Peter Zijlstra
On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote: include/linux/ftrace_event.h |4 +- include/linux/perf_event.h| 10 +--- kernel/perf_event.c | 49 +--- kernel/seccomp.c |8 ++

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Thomas Gleixner
On Tue, 24 May 2011, Peter Zijlstra wrote: On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote: include/linux/ftrace_event.h |4 +- include/linux/perf_event.h| 10 +--- kernel/perf_event.c | 49 +--- kernel/seccomp.c

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Will Drewry
On Tue, May 24, 2011 at 11:25 AM, Thomas Gleixner t...@linutronix.de wrote: On Tue, 24 May 2011, Peter Zijlstra wrote: On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote:  include/linux/ftrace_event.h  |    4 +-  include/linux/perf_event.h    |   10 +---  kernel/perf_event.c        

Re: [PATCH v2 2/7] mmc: sdhci: eliminate sdhci_of_host and sdhci_of_data

2011-05-24 Thread Wolfram Sang
On Thu, May 05, 2011 at 09:22:53PM +0800, Shawn Guo wrote: The patch migrates the use of sdhci_of_host and sdhci_of_data to sdhci_pltfm_host and sdhci_pltfm_data, so that the former pair can be eliminated. Signed-off-by: Shawn Guo shawn@linaro.org Reviewed-by: Grant Likely

Re: [PATCH v2 3/7] mmc: sdhci: make sdhci-of device drivers self registered

2011-05-24 Thread Wolfram Sang
On Thu, May 05, 2011 at 09:22:54PM +0800, Shawn Guo wrote: The patch turns the sdhci-of-core common stuff into helper functions added into sdhci-pltfm.c, and makes sdhci-of device drviers self registered using the same pair of .probe and .remove used by sdhci-pltfm device drivers. As a

Re: [PATCH v2 5/7] mmc: sdhci: consolidate sdhci-of-esdhc and sdhci-esdhc-imx

2011-05-24 Thread Wolfram Sang
On Thu, May 05, 2011 at 09:22:56PM +0800, Shawn Guo wrote: This patch is to consolidate SDHCI driver for Freescale eSDHC controller found on both MPCxxx and i.MX platforms. It merges sdhci-of-esdhc.c into sdhci-esdhc.c, so that the same pair of .probe/.remove hook works with eSDHC for two

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Ingo Molnar
* Peter Zijlstra pet...@infradead.org wrote: On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote: include/linux/ftrace_event.h |4 +- include/linux/perf_event.h| 10 +--- kernel/perf_event.c | 49 +--- kernel/seccomp.c

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Ingo Molnar
* Will Drewry w...@chromium.org wrote: The change avoids defining a new trace call type or a huge number of internal changes and hides seccomp.mode=2 from ABI-exposure in prctl, but the attack surface is non-trivial to verify, and I'm not sure if this ABI change makes sense. It amounts

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Ingo Molnar
* Ingo Molnar mi...@elte.hu wrote: * Peter Zijlstra pet...@infradead.org wrote: On Tue, 2011-05-24 at 10:59 -0500, Will Drewry wrote: include/linux/ftrace_event.h |4 +- include/linux/perf_event.h| 10 +--- kernel/perf_event.c | 49

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-24 Thread Steven Rostedt
On Tue, 2011-05-24 at 22:08 +0200, Ingo Molnar wrote: * Will Drewry w...@chromium.org wrote: But there could be a perf_tp_event_ret() or perf_tp_event_check() entry that code like seccomp which wants to use event results can use. We should name it something else. The perf_tp.. is a misnomer

Re: Kernel cannot see PCI device

2011-05-24 Thread Benjamin Herrenschmidt
On Tue, 2011-05-24 at 10:25 +0530, Prashant Bhole wrote: Fixed the problem by soft resetting the PCIe port in the function ppc460ex_pciex_port_init_hw(). Is it a right thing to do? Following is the patch for kernel 2.6.38.4:

[PATCH v2] hw_breakpoint: Let the user choose not to build it (and perf too)

2011-05-24 Thread Frederic Weisbecker
Mostly just a rebase against latest upstream updates and acks from Will Deacon added In this second version. Please tell me if you are ok with this set. Thanks. --- Frederic Weisbecker (6): hw_breakpoints: Split hardware breakpoints config hw_breakpoints: Migrate breakpoint

[PATCH 1/6] hw_breakpoints: Split hardware breakpoints config

2011-05-24 Thread Frederic Weisbecker
The hardware breakpoint config is only made of an ability. An arch that support this feature selects HAVE_HW_BREAKPOINT. If so, the feature is definetly built-in, the user can't decide to turn it off. As hw_breakpoints depend on perf, it also makes perf a mandatory feature. The whole is quite a

[PATCH 4/6] hw_breakpoints: Breakpoints arch ability don't need perf events

2011-05-24 Thread Frederic Weisbecker
The breakpoint support ability in an arch is not related to the fact perf events is built or not. HAVE_HW_BREAKPOINT only shows an ability so this dependency makes no sense anymore. Archs that select HAVE_HW_BREAKPOINT already ensure that perf event is built. Remove that dependency.

[PATCH 2/6] hw_breakpoints: Migrate breakpoint conditional build under new config

2011-05-24 Thread Frederic Weisbecker
Migrate conditional hw_breakpoint code compilation under the new config to prepare for letting the user chose whether or not to build this feature Signed-off-by: Frederic Weisbecker fweis...@gmail.com Acked-by: Will Deacon will.dea...@arm.com Cc: Ingo Molnar mi...@elte.hu Cc: Peter Zijlstra

[PATCH 5/6] hw_breakpoints: Only force perf events if breakpoints are selected

2011-05-24 Thread Frederic Weisbecker
Previously, arch were forced to always build perf events if they supported hw_breakpoints. Now that the user can choose not to build hw_breakpoints, let only force perf events if hw_breakpoints are selected. Signed-off-by: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@elte.hu Cc:

[PATCH 3/6] x86: Allow the user not to build hw_breakpoints

2011-05-24 Thread Frederic Weisbecker
So that hw_breakpoints and perf can be not built on specific embedded systems. Signed-off-by: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@elte.hu Cc: Peter Zijlstra a.p.zijls...@chello.nl Cc: Jason Wessel jason.wes...@windriver.com Cc: H. Peter Anvin h...@zytor.com Cc: Thomas

[PATCH 6/6] hw_breakpoints: Drop remaining misplaced dependency on perf

2011-05-24 Thread Frederic Weisbecker
Powerpc and Arm select breakpoint support ability only if Perf is built. This is not necessary anymore now that we enable perf once breakpoints support is selected. Signed-off-by: Frederic Weisbecker fweis...@gmail.com Acked-by: Will Deacon will.dea...@arm.com Cc: Ingo Molnar mi...@elte.hu Cc:

Re: Best Linux choice for POWER7?

2011-05-24 Thread Michael Neuling
Gabriel, I am looking for the most-tested Linux distro for POWER7 architecture. IBM partnered with RedHat and Novell to make sure RHEL6 and SLES11 SP1 are well tested with POWER7. Essential back-ports and bug are included in both of these distros. These two are the most-tested by far for

Re: [PATCH v2] hw_breakpoint: Let the user choose not to build it (and perf too)

2011-05-24 Thread Paul Mundt
On Tue, May 24, 2011 at 11:52:21PM +0200, Frederic Weisbecker wrote: Mostly just a rebase against latest upstream updates and acks from Will Deacon added In this second version. Please tell me if you are ok with this set. Thanks. --- Frederic Weisbecker (6): hw_breakpoints:

[PATCH][upstream] Integrated Flash Controller support

2011-05-24 Thread Dipen Dudhat
Integrated Flash Controller supports various flashes like NOR, NAND and other devices using NOR, NAND and GPCM Machine available on it. IFC supports four chip selects. Signed-off-by: Dipen Dudhat dipen.dud...@freescale.com --- Applies to:

[PATCH][upstream] NAND Machine support for Integrated Flash Controller

2011-05-24 Thread Dipen Dudhat
Integrated Flash Controller(IFC) can be used to hook NAND Flash chips using NAND Flash Machine available on it. Due to bug on ECC event generation, ECC support is not integrated yet. Signed-off-by: Dipen Dudhat dipen.dud...@freescale.com --- Applies to: