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

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

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 hongbo.zh...@freescale.com 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

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

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 flags,

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

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

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/0

[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 minghuan.l...@freescale.com --- Change log: v2: Use PCI_BASE_ADDRESS_MEM_MASK instead of 0xfff0

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

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 kernelf...@gmail.com wrote: On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf ag...@suse.de wrote: On 11.12.2013, at 09:47, Liu Ping Fan kernelf...@gmail.com wrote: This series is based on Aneesh's series [PATCH -V2 0/5] powerpc: mm: Numa faults

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

2014-01-20 Thread Aneesh Kumar K.V
Liu Ping Fan kernelf...@gmail.com 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 pingf...@linux.vnet.ibm.com --- arch/powerpc/kvm/book3s_hv_rm_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1

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

2014-01-20 Thread Aneesh Kumar K.V
Liu ping fan kernelf...@gmail.com writes: On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf ag...@suse.de wrote: On 11.12.2013, at 09:47, Liu Ping Fan kernelf...@gmail.com wrote: This series is based on Aneesh's series [PATCH -V2 0/5] powerpc: mm: Numa faults support for ppc64 For this

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 For

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 support for Keymile's

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

[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 t...@bakeyournoodle.com Date: Tue Apr 3 15:00:39 2012 + powerpc/boot: Only build board support files when required. This is easily reproducible my using

[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 t...@bakeyournoodle.com Date: Tue Apr 3 15:00:39 2012 + powerpc/boot: Only build board support files when required. This is easily reproducible my using

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); +

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 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 14:38 +0100,

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 prabha...@freescale.com wrote: Currently IFC NAND driver is enabled in

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(save) C code should have

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 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 aneesh.ku...@linux.vnet.ibm.com wrote: Liu ping fan kernelf...@gmail.com writes: On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf ag...@suse.de wrote: On 11.12.2013, at 09:47, Liu Ping Fan kernelf...@gmail.com wrote: This series is based on

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

[PATCH] clk: corenet: Update the clock bindings

2014-01-20 Thread Tang Yuantian
From: Tang Yuantian yuantian.t...@freescale.com Main changs include: - Clarified the clock nodes' version number - Fixed a issue in example Singed-off-by: Tang Yuantian yuantian.t...@freescale.com --- Documentation/devicetree/bindings/clock/corenet-clock.txt | 4 +++- 1 file

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

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

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

2014-01-20 Thread Aneesh Kumar K.V
Liu ping fan kernelf...@gmail.com writes: On Mon, Jan 20, 2014 at 11:45 PM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Liu ping fan kernelf...@gmail.com writes: On Thu, Jan 9, 2014 at 8:08 PM, Alexander Graf ag...@suse.de wrote: On 11.12.2013, at 09:47, Liu Ping Fan

[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

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

2014-01-20 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com 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 dongsheng.w...@freescale.com diff --git a/drivers/rtc/rtc-ds3232.c

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:

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� tiejun.c...@windriver.comwrote: 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

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