[PATCH 0/2] two minor cleanup patches for function pci_process_bridge_OF_ranges

2013-05-16 Thread Kevin Hao
Kevin Hao (2): powerpc/pci: remove the stale comments of pci_process_bridge_OF_ranges powerpc/pci: remove the unused variables in pci_process_bridge_OF_ranges arch/powerpc/kernel/pci-common.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) -- 1.8.1.4 _

Re: [PATCH 2/2] powerpc/512x: DMA via LocalPlus Bus testing driver

2013-05-16 Thread Alexander Popov
2013/5/17 Greg Kroah-Hartman : > On Thu, May 02, 2013 at 07:23:15PM +0400, Alexander Popov wrote: >> This module tests Direct Memory Access to some device on LocalPlus Bus >> for Freescale MPC512x. In other words it tests the bundle >> of mpc512x_lpbfifo and mpc512x_dma drivers. >> >> This testing

[PATCH] powerpc/hw_breakpoints: Add DABRX cpu feature

2013-05-16 Thread Michael Neuling
Some CPUs have a DABR but not DABRX. Configuration are: - No 32bit CPUs have DABRX but some have DABR. - POWER4+ and below have the DABR but no DABRX. - 970 and POWER5 and above have DABR and DABRX. - POWER8 has DAWR, hence no DABRX. This introduces CPU_FTR_DABRX and sets it on appropriate CPUs.

Re: powerpc: Hardware breakpoints rewrite to handle non DABR breakpoint registers

2013-05-16 Thread Michael Neuling
Hi, > I assume you are the right person to ask this question. Yep I am but adding linuxppc-dev mailing list to CC anyway. > We are running the Linux kernel version 3.8.13 on a PPC750FX 32-bit > based board without any problems; however, when I tried to boot > version 3.9.2 on the same board, I

Re: [PATCH 2/2] powerpc/512x: DMA via LocalPlus Bus testing driver

2013-05-16 Thread Greg Kroah-Hartman
On Thu, May 02, 2013 at 07:23:15PM +0400, Alexander Popov wrote: > This module tests Direct Memory Access to some device on LocalPlus Bus > for Freescale MPC512x. In other words it tests the bundle > of mpc512x_lpbfifo and mpc512x_dma drivers. > > This testing driver was multiply used with static

Re: [PATCH] can: flexcan: allow compilation on arm and powerpc

2013-05-16 Thread Shawn Guo
Hi Marc, On Thu, May 16, 2013 at 03:42:36PM +0200, Marc Kleine-Budde wrote: > This patch removes the Kconfig symbols HAVE_CAN_FLEXCAN and > IMX_HAVE_PLATFORM_FLEXCAN from arch/{arm,powerpc} and allowing compilation on > all arm and powerpc platforms. I'm generally fine with the approach. But wit

Re: [PATCH v2 10/10] kernel: might_fault does not imply might_sleep

2013-05-16 Thread Peter Zijlstra
On Thu, May 16, 2013 at 02:16:10PM +0300, Michael S. Tsirkin wrote: > There are several ways to make sure might_fault > calling function does not sleep. > One is to use it on kernel or otherwise locked memory - apparently > nfs/sunrpc does this. As noted by Ingo, this is handled by the > migh_fault

RE: [PATCH 2/2 v2] powerpc: restore dbcr0 on user space exit

2013-05-16 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, May 16, 2013 10:24 PM > To: Bhushan Bharat-R65777 > Cc: ga...@kernel.crashing.org; b...@kernel.crashing.org; linuxppc- > d...@lists.ozlabs.org; Yoder Stuart-B08248; Yang James-RA8135; Bhushan Bharat- > R65777 > Subject: Re:

Re: [PATCH 2/2 v2] powerpc: restore dbcr0 on user space exit

2013-05-16 Thread Scott Wood
On 05/16/2013 12:34:32 AM, Bharat Bhushan wrote: On BookE (Branch taken + Single Step) is as same as Branch Taken on BookS and in Linux we simulate BookS behavior for BookE as well. When doing so, in Branch taken handling we want to set DBCR0_IC but we update the current->thread->dbcr0 and not DB

Re: [PATCH 3/3] perf, x86, lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

2013-05-16 Thread Stephane Eranian
On Thu, May 16, 2013 at 1:16 PM, Peter Zijlstra wrote: > On Thu, May 16, 2013 at 08:15:17PM +1000, Michael Neuling wrote: >> Peter, >> >> BTW PowerPC also has the ability to filter on conditional branches. Any >> chance we could add something like the follow to perf also? >> > > I don't see an im

FW:

2013-05-16 Thread zhghua0321
http://www.hazelnuts.it/1cr5if.php ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: SATA FSL and upstreaming

2013-05-16 Thread Timur Tabi
On Thu, May 16, 2013 at 1:52 AM, Benjamin Herrenschmidt wrote: >> 3) run " pix altbak" command >> >> 4) check you are on bank4 > > It stays on bank 0 pix altbank ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listin

[PATCH] can: flexcan: allow compilation on arm and powerpc

2013-05-16 Thread Marc Kleine-Budde
This patch removes the Kconfig symbols HAVE_CAN_FLEXCAN and IMX_HAVE_PLATFORM_FLEXCAN from arch/{arm,powerpc} and allowing compilation on all arm and powerpc platforms. This brings a bigger compile time coverage and removes the following dependency warning found by Arnd Bergmann: warning: (SO

Re: [PATCH v2 08/10] tile: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Chris Metcalf
On 5/16/2013 7:15 AM, Michael S. Tsirkin wrote: > The only reason uaccess routines might sleep > is if they fault. Make this explicit. > > Signed-off-by: Michael S. Tsirkin > --- > arch/tile/include/asm/uaccess.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Chris Metcalf

Re: [PATCH v2 02/10] arm64: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Catalin Marinas
On 16 May 2013 12:10, Michael S. Tsirkin wrote: > The only reason uaccess routines might sleep > is if they fault. Make this explicit. > > Signed-off-by: Michael S. Tsirkin > --- > arch/arm64/include/asm/uaccess.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) For arm64: Acked-by:

[PATCH v2 10/10] kernel: might_fault does not imply might_sleep

2013-05-16 Thread Michael S. Tsirkin
There are several ways to make sure might_fault calling function does not sleep. One is to use it on kernel or otherwise locked memory - apparently nfs/sunrpc does this. As noted by Ingo, this is handled by the migh_fault() implementation in mm/memory.c but not the one in linux/kernel.h so in the c

[PATCH v2 09/10] x86: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin Acked-by: Ingo Molnar --- arch/x86/include/asm/uaccess_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/incl

[PATCH v2 08/10] tile: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- arch/tile/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/tile/include/asm/uaccess.h b/arch/tile/include/asm/uaccess.h index 8a0

[PATCH v2 07/10] powerpc: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- arch/powerpc/include/asm/uaccess.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/incl

Re: [PATCH 3/3] perf, x86, lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

2013-05-16 Thread Peter Zijlstra
On Thu, May 16, 2013 at 08:15:17PM +1000, Michael Neuling wrote: > Peter, > > BTW PowerPC also has the ability to filter on conditional branches. Any > chance we could add something like the follow to perf also? > I don't see an immediate problem with that except that we on x86 need to implemen

[PATCH v2 01/10] asm-generic: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- include/asm-generic/uaccess.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess.h inde

[PATCH v2 06/10] mn10300: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- arch/mn10300/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mn10300/include/asm/uaccess.h b/arch/mn10300/include/asm/uacce

[PATCH v2 05/10] microblaze: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- arch/microblaze/include/asm/uaccess.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/includ

[PATCH v2 04/10] m32r: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- arch/m32r/include/asm/uaccess.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/m32r/include/asm/uaccess.h b/arch/m32r/include/asm/uacces

[PATCH v2 03/10] frv: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- arch/frv/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/frv/include/asm/uaccess.h b/arch/frv/include/asm/uaccess.h index 0b

[PATCH v2 02/10] arm64: uaccess s/might_sleep/might_fault/

2013-05-16 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by: Michael S. Tsirkin --- arch/arm64/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/uaccess.h b/arch/arm64/include/asm/uaccess.h in

[PATCH v2 00/10] uaccess: better might_sleep/might_fault behavior

2013-05-16 Thread Michael S. Tsirkin
This improves the might_fault annotations used by uaccess routines: 1. The only reason uaccess routines might sleep is if they fault. Make this explicit for all architectures. 2. Accesses (e.g through socket ops) to kernel memory with KERNEL_DS like net/sunrpc does will never sleep. Re

[RFC PATCH powerpc] Set cpu sibling mask before online cpu

2013-05-16 Thread Li Zhong
It seems following race is possible: cpu0cpux smp_init->cpu_up->_cpu_up __cpu_up kick_cpu(1) - waiting online ...

Re: [PATCH 3/3] perf, x86, lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

2013-05-16 Thread Michael Neuling
Peter Zijlstra wrote: > On Wed, May 15, 2013 at 03:37:22PM +0200, Stephane Eranian wrote: > > On Fri, May 3, 2013 at 2:11 PM, Peter Zijlstra > > wrote: > > > We should always have proper privileges when requesting kernel data. > > > > > > Cc: Andi Kleen > > > Cc: eran...@google.com > > > Signe

Re: [PATCH 3/3] perf, x86, lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL

2013-05-16 Thread Michael Neuling
Peter Zijlstra wrote: > On Wed, May 15, 2013 at 03:37:22PM +0200, Stephane Eranian wrote: > > On Fri, May 3, 2013 at 2:11 PM, Peter Zijlstra > > wrote: > > > We should always have proper privileges when requesting kernel data. > > > > > > Cc: Andi Kleen > > > Cc: eran...@google.com > > > Signe

Re: [PATCH 1/4] powerpc/book3e: introduce external_input_edge exception handler for 64bit kernel

2013-05-16 Thread Kevin Hao
On Wed, May 15, 2013 at 04:30:26PM -0500, Scott Wood wrote: > On 05/13/2013 09:03:17 PM, Kevin Hao wrote: > >On Mon, May 13, 2013 at 10:47:17AM -0500, Scott Wood wrote: > >> On 05/11/2013 06:26:21 PM, Kevin Hao wrote: > >> >In the external proxy facility mode, the interrupt is automatically > >> >a

Re: SATA FSL and upstreaming

2013-05-16 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 07:13 +, Bhushan Bharat-R65777 wrote: > Ben, Which SDK you are using? QorIQ-SDK-V1.3.2-PPC64E5500-20130325-yocto.iso Cheers, Ben. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/l

RE: SATA FSL and upstreaming

2013-05-16 Thread Bhushan Bharat-R65777
Ben, If you are using SDK1.3 and later then the support for p5020ds rev 1.0 support is removed. So use earlier sdk for rev 1.0 or wait for rev2.0 :) Thanks -Bharat > -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursday, May 16, 2013 12:36

RE: SATA FSL and upstreaming

2013-05-16 Thread Xie Shaohui-B21989
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursday, May 16, 2013 3:06 PM > To: Zang Roy-R61911 > Cc: Bhushan Bharat-R65777; tiejun.chen; Liu Qiang-B32616; Fleming Andy- > AFLEMING; linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989 > Subjec

RE: SATA FSL and upstreaming

2013-05-16 Thread Zang Roy-R61911
> -Original Message- > From: tiejun.chen [mailto:tiejun.c...@windriver.com] > Sent: Thursday, May 16, 2013 2:25 PM > To: Zang Roy-R61911 > Cc: Benjamin Herrenschmidt; Liu Qiang-B32616; Fleming Andy-AFLEMING; > linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989; Bhushan Bharat-R65777 > Subj

RE: SATA FSL and upstreaming

2013-05-16 Thread Zang Roy-R61911
> -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- > fei.zang=freescale@lists.ozlabs.org] On Behalf Of Benjamin > Herrenschmidt > Sent: Thursday, May 16, 2013 2:59 PM > To: Zang Roy-R61911 > Cc: Xie Shaohui-B21989; Liu Qiang-B32616; tiejun.chen; Fleming Andy-

RE: SATA FSL and upstreaming

2013-05-16 Thread Bhushan Bharat-R65777
Ben, Which SDK you are using? -Bharat > -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursday, May 16, 2013 12:36 PM > To: Zang Roy-R61911 > Cc: Bhushan Bharat-R65777; tiejun.chen; Liu Qiang-B32616; Fleming > Andy-AFLEMING; > linuxppc-dev@li

Re: SATA FSL and upstreaming

2013-05-16 Thread Benjamin Herrenschmidt
On Thu, 2013-05-16 at 07:01 +, Zang Roy-R61911 wrote: > I just tried your RCW. one e1000 card works in slot7. > we may need to check others ... Tried 4 and 7 ... Note that this *used* to work. Last year I had this machine up with 2 cards doing things. Not sure what changed, it's possible tha

RE: SATA FSL and upstreaming

2013-05-16 Thread Zang Roy-R61911
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursday, May 16, 2013 2:54 PM > To: Zang Roy-R61911 > Cc: Bhushan Bharat-R65777; tiejun.chen; Liu Qiang-B32616; Fleming Andy- > AFLEMING; linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989 > Subj