[v2 PATCH] powerpc: hugetlb: replace __get_cpu_var with get_cpu_var

2014-01-20 Thread Tiejun Chen
Replace __get_cpu_var safely with get_cpu_var to avoid the following call trace: [ 7253.637591] BUG: using smp_processor_id() in preemptible [ ] code: hugemmap01/9048 [ 7253.637601] caller is free_hugepd_range.constprop.25+0x88/0x1a8 [ 7253.637605] CPU: 1 PID: 9048 Comm: hugemmap01

Re: KGDB panics on p2020 target

2014-01-20 Thread “tiejun.chen”
On 01/21/2014 02:04 PM, Arun Chandran wrote: On Mon, Jan 20, 2014 at 1:55 PM, "�tiejun.chen�" wrote: On 01/17/2014 03:52 PM, Arun Chandran wrote: Hi, I am testing kgdb on freescale p2020 target. In target 1) root@freescale-p2020ds:~# uname -a Linux freescale-p2020ds 3.10.20-rt

RE: [PATCH 2/2] fsl/pci: The new pci suspend/resume implementation

2014-01-20 Thread dongsheng.w...@freescale.com
Any more comments? :) Thanks, -Dongsheng > -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+b40534=freescale@lists.ozlabs.org] On Behalf Of > dongsheng.w...@freescale.com > Sent: Wednesday, January 08, 2014 3:13 PM > To: Rafael J. Wysocki > Cc: linuxppc-dev@list

[PATCH] rtc/ds3232: Enable ds3232 to work as wakeup source

2014-01-20 Thread Dongsheng Wang
From: Wang Dongsheng Add suspend/resume and device_init_wakeup to enable ds3232 as wakeup source, /sys/class/rtc/rtcX/wakealarm for set wakeup alarm. Signed-off-by: Wang Dongsheng diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index b83bb5a5..a3c40d5 100644 --- a/drivers/rtc/

[PATCH] selftests: powerpc: Import Anton's memcpy / copy_tofrom_user tests

2014-01-20 Thread Michael Ellerman
Turn Anton's memcpy / copy_tofrom_user test into something that can live in tools/testing/selftests. It requires one turd in arch/powerpc/lib/memcpy_64.S, but it's pretty harmless IMHO. We are sailing very close to the wind with the feature macros. We define them to nothing, which currently means

Re: [PATCH 0/4] powernv: kvm: numa fault improvement

2014-01-20 Thread Aneesh Kumar K.V
Liu ping fan writes: > On Mon, Jan 20, 2014 at 11:45 PM, Aneesh Kumar K.V > wrote: >> Liu ping fan writes: >> >>> On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf wrote: On 11.12.2013, at 09:47, Liu Ping Fan wrote: > This series is based on Aneesh's series "[PATCH -V2 0/5] p

[PATCH] powerpc: T4240: Add ina220 node in dts

2014-01-20 Thread Tang Yuantian
From: Tang Yuantian Add power sensor chip ina220 node in dts to support power monitor Signed-off-by: Tang Yuantian --- arch/powerpc/boot/dts/t4240qds.dts | 42 ++ 1 file changed, 42 insertions(+) diff --git a/arch/powerpc/boot/dts/t4240qds.dts b/arch/power

[PATCH] clk: corenet: Update the clock bindings

2014-01-20 Thread Tang Yuantian
From: Tang Yuantian Main changs include: - Clarified the clock nodes' version number - Fixed a issue in example Singed-off-by: Tang Yuantian --- Documentation/devicetree/bindings/clock/corenet-clock.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Docu

RE: [PATCH 2/3] powerpc/85xx: Provide two functions to save/restore the core registers

2014-01-20 Thread dongsheng.w...@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, January 21, 2014 9:06 AM > To: Wang Dongsheng-B40534 > Cc: b...@kernel.crashing.org; Zhao Chenhui-B35336; an...@enomsg.org; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH 2/3] powerpc/85xx: Provide two functions to s

[PATCH] clk: mpc85xx: Update the driver to align to new clock bindings

2014-01-20 Thread Tang Yuantian
From: Tang Yuantian The clock bindings for Freescale CoreNet platform are updated. So, the driver needs to be updated accordingly. The main changes include: - Added a new node to present the input system clock - Changed PLL and MUX's compatible string Signed-off-by: Tang Yuantian

Re: [PATCH 0/4] powernv: kvm: numa fault improvement

2014-01-20 Thread Liu ping fan
On Mon, Jan 20, 2014 at 11:45 PM, Aneesh Kumar K.V wrote: > Liu ping fan writes: > >> On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf wrote: >>> >>> On 11.12.2013, at 09:47, Liu Ping Fan wrote: >>> This series is based on Aneesh's series "[PATCH -V2 0/5] powerpc: mm: Numa faults supp

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-20 Thread Wanpeng Li
On Mon, Jan 20, 2014 at 04:13:30PM -0600, Christoph Lameter wrote: >On Mon, 20 Jan 2014, Wanpeng Li wrote: > >> >+ enum zone_type high_zoneidx = gfp_zone(flags); >> > >> >+ if (!node_present_pages(searchnode)) { >> >+ zonelist = node_zonelist(searchnode, flags); >> >+

Re: [PATCH 2/3] powerpc/85xx: Provide two functions to save/restore the core registers

2014-01-20 Thread Scott Wood
On Mon, 2014-01-20 at 00:03 -0600, Wang Dongsheng-B40534 wrote: > > > > > + /* > > > > > + * Need to save float-point registers if MSR[FP] = 1. > > > > > + */ > > > > > + mfmsr r12 > > > > > + andi. r12, r12, MSR_FP > > > > > + beq 1f > > > > > + do_sr_fpr_regs

Re: [PATCH] powerpc/configs: Enbale Freescale IFC controller

2014-01-20 Thread Scott Wood
On Sat, 2014-01-18 at 09:16 +0530, Prabhakar Kushwaha wrote: > On 1/18/2014 12:19 AM, Scott Wood wrote: > > On Fri, 2014-01-17 at 11:02 -0600, Kumar Gala wrote: > >> On Jan 17, 2014, at 12:09 AM, Prabhakar Kushwaha > >> wrote: > >> > >>> Currently IFC NAND driver is enabled in corenet32smp_defcon

Re: [PATCH RFC] powerpc/mpc85xx: add support for the kmp204x reference board

2014-01-20 Thread Scott Wood
On Mon, 2014-01-20 at 17:38 +0100, Valentin Longchamp wrote: > On 01/17/2014 10:48 PM, Scott Wood wrote: > > On Fri, 2014-01-17 at 13:51 +0100, Valentin Longchamp wrote: > >> Hi Scott, > >> > >> Thanks for you feedback. > >> > >> On 01/17/2014 12:35 AM, Scott Wood wrote: > >>> On Thu, 2014-01-16 at

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-20 Thread Christoph Lameter
On Mon, 20 Jan 2014, Wanpeng Li wrote: > >+ enum zone_type high_zoneidx = gfp_zone(flags); > > > >+ if (!node_present_pages(searchnode)) { > >+ zonelist = node_zonelist(searchnode, flags); > >+ for_each_zone_zonelist(zone, z, zonelist, high_zoneidx) { > >+

Re: [PATCH] powerpc: hugetlb: replace __get_cpu_var with get_cpu_var

2014-01-20 Thread Scott Wood
On Mon, 2014-01-20 at 16:39 +0800, Tiejun Chen wrote: > if (atomic_read(&tlb->mm->mm_users) < 2 || > cpumask_equal(mm_cpumask(tlb->mm), > cpumask_of(smp_processor_id( { > kmem_cache_free(hugepte_cache, hugepte); > +put_cpu_var(hugepd

[PATCH] powerpc/kconfig: Remove TSI108_BRIDGE duplicates

2014-01-20 Thread Luis Henriques
The MPC7448HPC2 and PPC_HOLLY config options contain TSI108_BRIDGE duplicates since commit: commit 3490cba56f7f8a78ef4c94814c3181f09ce1e2ef Author: Jon Loeliger Date: Wed Jan 23 12:42:50 2008 -0600 [POWERPC] Add initial iomega StorCenter board port. This patch cleans these duplicates. Si

[PATCH] powerpc/mpic: Fix build errors for CONFIG_MPIC_WEIRD

2014-01-20 Thread Luis Henriques
When CONFIG_MPIC_WEIRD is defined, the following build error occurs: arch/powerpc/sysdev/mpic.c: In function 'mpic_set_irq_type': arch/powerpc/sysdev/mpic.c:892:9: error: case label does not reduce to an integer constant MPIC_INFO(VECPRI_POLARITY_POSITIVE): ^ arch/powerpc/sysdev

[PATCH] powerpc: Fix build dependencies for storcenter

2014-01-20 Thread Luis Henriques
This fixes a build failure that seems to be present since commit commit b81f18e55e9f4ea81759bcb00fea295de679bbe8 Author: Tony Breeds Date: Tue Apr 3 15:00:39 2012 + powerpc/boot: Only build board support files when required. This is easily reproducible my using the storcenter_defconfi

[PATCH] powerpc: Fix build dependencies for ep88xc

2014-01-20 Thread Luis Henriques
This fixes a build failure that seems to be present since commit commit b81f18e55e9f4ea81759bcb00fea295de679bbe8 Author: Tony Breeds Date: Tue Apr 3 15:00:39 2012 + powerpc/boot: Only build board support files when required. This is easily reproducible my using the ep88xc_defconfig co

Re: [PATCH] powerpc: 85xx: EDAC PCI: request irq as IRQF_SHARED

2014-01-20 Thread Scott Wood
On Mon, 2014-01-20 at 16:39 +0800, Tiejun Chen wrote: > AER driver needs to share this PCI err irq with EDAC, otherwise > we can't register AER driver successfully as follows: > > genirq: Flags mismatch irq 482. 0080 (aerdrv) vs. 0020 ([EDAC] PCI > err) > CPU: 3 PID: 1 Comm: swapper/0 Not

Re: [PATCH 02/13] ppc/cell: use get_unused_fd_flags(0) instead of get_unused_fd()

2014-01-20 Thread Yann Droneaud
Hi, Le lundi 13 janvier 2014 à 10:30 +0100, Yann Droneaud a écrit : > Le lundi 13 janvier 2014 à 10:06 +1100, Benjamin Herrenschmidt a écrit : > > On Tue, 2013-07-02 at 18:39 +0200, Yann Droneaud wrote: > > > Macro get_unused_fd() is used to allocate a file descriptor with > > > default flags. Tho

Re: [PATCH RFC] powerpc/mpc85xx: add support for the kmp204x reference board

2014-01-20 Thread Valentin Longchamp
On 01/17/2014 10:48 PM, Scott Wood wrote: > On Fri, 2014-01-17 at 13:51 +0100, Valentin Longchamp wrote: >> Hi Scott, >> >> Thanks for you feedback. >> >> On 01/17/2014 12:35 AM, Scott Wood wrote: >>> On Thu, 2014-01-16 at 14:38 +0100, Valentin Longchamp wrote: This patch introduces the suppor

RE: [PATCH][v2] powerpc/pci: Fix IMMRBAR address

2014-01-20 Thread Roy Zang
> -Original Message- > From: Minghuan Lian [mailto:minghuan.l...@freescale.com] > Sent: Monday, January 20, 2014 4:54 AM > To: linuxppc-dev@lists.ozlabs.org > Cc: Zang Roy-R61911; Wood Scott-B07421; Kumar Gala; Lian Minghuan-B31939 > Subject: [PATCH][v2] powerpc/pci: Fix IMMRBAR address >

Re: [PATCH 0/4] powernv: kvm: numa fault improvement

2014-01-20 Thread Aneesh Kumar K.V
Liu ping fan writes: > On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf wrote: >> >> On 11.12.2013, at 09:47, Liu Ping Fan wrote: >> >>> This series is based on Aneesh's series "[PATCH -V2 0/5] powerpc: mm: Numa >>> faults support for ppc64" >>> >>> For this series, I apply the same idea from t

Re: [PATCH 2/4] powernv: kvm: make _PAGE_NUMA take effect

2014-01-20 Thread Aneesh Kumar K.V
Liu Ping Fan writes: > To make _PAGE_NUMA take effect, we should force the checking when > guest uses hypercall to setup hpte. > > Signed-off-by: Liu Ping Fan > --- > arch/powerpc/kvm/book3s_hv_rm_mmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/kvm/bo

Re: [PATCH 0/4] powernv: kvm: numa fault improvement

2014-01-20 Thread Alexander Graf
On 15.01.2014, at 07:36, Liu ping fan wrote: > On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf wrote: >> >> On 11.12.2013, at 09:47, Liu Ping Fan wrote: >> >>> This series is based on Aneesh's series "[PATCH -V2 0/5] powerpc: mm: Numa >>> faults support for ppc64" >>> >>> For this series,

[PATCH] powerpc: 85xx: EDAC PCI: request irq as IRQF_SHARED

2014-01-20 Thread Tiejun Chen
AER driver needs to share this PCI err irq with EDAC, otherwise we can't register AER driver successfully as follows: genirq: Flags mismatch irq 482. 0080 (aerdrv) vs. 0020 ([EDAC] PCI err) CPU: 3 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc1-148346-g2513817 #69 Call Trace: [ee063cb0] [c00

[PATCH][v2] powerpc/pci: Fix IMMRBAR address

2014-01-20 Thread Minghuan Lian
For PEXCSRBAR, bit 3-0 indicate prefetchable and address type. So when getting base address, these bits should be masked, otherwise we may get incorrect base address. Signed-off-by: Minghuan Lian --- Change log: v2: Use PCI_BASE_ADDRESS_MEM_MASK instead of 0xfff0 arch/powerpc/sysdev/fsl_pci

Re: [PATCH] powerpc: 85xx: EDAC PCI: request irq as IRQF_SHARED

2014-01-20 Thread Johannes Thumshirn
On Mon, Jan 20, 2014 at 04:56:15PM +0800, Tiejun Chen wrote: > AER driver needs to share this PCI err irq with EDAC, otherwise > we can't register AER driver successfully as follows: > > genirq: Flags mismatch irq 482. 0080 (aerdrv) vs. 0020 ([EDAC] PCI > err) > CPU: 3 PID: 1 Comm: swapper

[PATCH] powerpc/mpc85xx: Update clock nodes in device tree

2014-01-20 Thread Yuantian.Tang
From: Tang Yuantian The following SoCs will be affected: p2041, p3041, p4080, p5020, p5040, b4420, b4860, t4240 Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- arch/powerpc/boot/dts/fsl/b4420si-post.dtsi | 36 + arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi | 2 + arch/powerp

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-20 Thread Wanpeng Li
Hi Joonsoo, On Tue, Jan 07, 2014 at 04:41:36PM +0900, Joonsoo Kim wrote: [...] > >->8 >diff --git a/mm/slub.c b/mm/slub.c >index c3eb3d3..a1f6dfa 100644 >--- a/mm/slub.c >+++ b/mm/slub.c >@@ -1672,7 +1672,19 @@ static void *get_partial(struct kmem_cache *s, gfp_t >f

[PATCH] powerpc: 85xx: EDAC PCI: request irq as IRQF_SHARED

2014-01-20 Thread Tiejun Chen
AER driver needs to share this PCI err irq with EDAC, otherwise we can't register AER driver successfully as follows: genirq: Flags mismatch irq 482. 0080 (aerdrv) vs. 0020 ([EDAC] PCI err) CPU: 3 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc1-148346-g2513817 #69 Call Trace: [ee063cb0] [c00

Re: [PATCH] DMA: Freescale: change BWC from 256 bytes to 1024 bytes

2014-01-20 Thread Vinod Koul
On Thu, Jan 16, 2014 at 02:10:53PM +0800, hongbo.zh...@freescale.com wrote: > From: Hongbo Zhang > > Freescale DMA has a feature of BandWidth Control (ab. BWC), which is currently > 256 bytes and should be changed to 1024 bytes for best DMA throughput. > Changing BWC from 256 to 1024 will improve

[PATCH] powerpc: hugetlb: replace __get_cpu_var with get_cpu_var

2014-01-20 Thread Tiejun Chen
Replace __get_cpu_var safely with get_cpu_var to avoid the following call trace: [ 7253.637591] BUG: using smp_processor_id() in preemptible [ ] code: hugemmap01/9048 [ 7253.637601] caller is free_hugepd_range.constprop.25+0x88/0x1a8 [ 7253.637605] CPU: 1 PID: 9048 Comm: hugemmap01

Re: KGDB panics on p2020 target

2014-01-20 Thread “tiejun.chen”
On 01/17/2014 03:52 PM, Arun Chandran wrote: Hi, I am testing kgdb on freescale p2020 target. In target 1) root@freescale-p2020ds:~# uname -a Linux freescale-p2020ds 3.10.20-rt14+ #9 SMP Thu Jan 16 16:32:15 IST 2014 ppc GNU/Linux 2) root@freescale-p2020ds:~# cat /proc/cpuinfo pro