Re: [PATCH V2] cpuidle/governors: Fix logic in selection of idle states

2014-01-28 Thread Daniel Lezcano
On 01/24/2014 11:21 AM, Preeti U Murthy wrote: On 01/24/2014 02:38 PM, Daniel Lezcano wrote: On 01/23/2014 12:15 PM, Preeti U Murthy wrote: Hi Daniel, Thank you for the review. [ ... ] --- drivers/cpuidle/cpuidle.c | 15 + drivers/cpuidle/governors/ladder.c | 101

Re: [git pull] Please pull powerpc.git next branch

2014-01-28 Thread Olaf Hering
On Tue, Jan 28, Benjamin Herrenschmidt wrote: So here's my next branch for powerpc. A bit late as I was on vacation This breaks booting on G5 11,2, the nouveau driver prints errors and as result the kernel hangs, fans kick in. This is what I did: # Rebase 54c0a4b..b2e448e onto 54c0a4b I will

Re: [PATCH V2 0/2] time/cpuidle: Support in tick broadcast framework in absence of external clock device

2014-01-28 Thread Preeti U Murthy
Hi Thomas, I realized that the below patch is also required for this patchset. This patch apart, I noticed that there is also one corner case which we will need to handle. The BROADCAST_ON notifications in periodic mode (oneshot mode is a nop). We will need to fail the BROADCAST_ON

[PATCH] powerpc: thp: Fix crash on mremap

2014-01-28 Thread Aneesh Kumar K.V
This patch fix the below crash NIP [c004cee4] .__hash_page_thp+0x2a4/0x440 LR [c00439ac] .hash_page+0x18c/0x5e0 ... Call Trace: [c00736103c40] [1b00] 0x1b00(unreliable) [437908.479693] [c00736103d50] [c00439ac] .hash_page+0x18c/0x5e0

[PATCH] powerpc: thp: Fix crash on mremap

2014-01-28 Thread Aneesh Kumar K.V
This patch fix the below crash NIP [c004cee4] .__hash_page_thp+0x2a4/0x440 LR [c00439ac] .hash_page+0x18c/0x5e0 ... Call Trace: [c00736103c40] [1b00] 0x1b00(unreliable) [437908.479693] [c00736103d50] [c00439ac] .hash_page+0x18c/0x5e0

[PATCH 2/2] Fix compile error of pgtable-ppc64.h

2014-01-28 Thread Aneesh Kumar K.V
From: Li Zhong zh...@linux.vnet.ibm.com It seems that forward declaration couldn't work well with typedef, use struct spinlock directly to avoiding following build errors: In file included from include/linux/spinlock.h:81, from include/linux/seqlock.h:35, from

[PATCH 1/2] powerpc/thp: Fix crash on mremap

2014-01-28 Thread Aneesh Kumar K.V
This patch fix the below crash NIP [c004cee4] .__hash_page_thp+0x2a4/0x440 LR [c00439ac] .hash_page+0x18c/0x5e0 ... Call Trace: [c00736103c40] [1b00] 0x1b00(unreliable) [437908.479693] [c00736103d50] [c00439ac] .hash_page+0x18c/0x5e0

[PATCH] powerpc: don't re-issue spinlock typedef that breaks older gcc

2014-01-28 Thread Paul Gortmaker
Commit b3084f4db3aeb991c507ca774337c7e7893ed04f (powerpc/thp: Fix crash on mremap) added a typedef struct spinlock spinlock_t; which on gcc 4.5.2 (and possibly other versions) causes many of: include/linux/spinlock_types.h:76:3: error: redefinition of typedef 'spinlock_t'

[RFC PATCH 01/10] KVM: PPC: BOOK3S: PR: Add POWER8 support

2014-01-28 Thread Aneesh Kumar K.V
Hello, This patch series implements PR KVM support for POWER8 platform -aneesh ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[RFC PATCH 01/10] KVM: PPC: BOOK3S: PR: Fix PURR and SPURR emulation

2014-01-28 Thread Aneesh Kumar K.V
We definitely don't need to emulate mtspr, because both the registers are hypervisor resource. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/include/asm/kvm_book3s.h | 2 -- arch/powerpc/include/asm/kvm_host.h | 4 ++-- arch/powerpc/kvm/book3s_emulate.c

[RFC PATCH 02/10] KVM: PPC: BOOK3S: PR: Emulate virtual timebase register

2014-01-28 Thread Aneesh Kumar K.V
virtual time base register is a per vm register and need to saved and restored on vm exit and entry. Writing to VTB is not allowed in the privileged mode. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/include/asm/kvm_host.h | 1 +

[RFC PATCH 04/10] KVM: PPC: BOOK3S: PR: Emulate Thread identification register

2014-01-28 Thread Aneesh Kumar K.V
Since PR KVM doesn't support SMT yet, we always return 0. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/kvm/book3s_emulate.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/kvm/book3s_emulate.c b/arch/powerpc/kvm/book3s_emulate.c index

[RFC PATCH 05/10] KVM: PPC: BOOK3S: PR: Doorbell support

2014-01-28 Thread Aneesh Kumar K.V
We don't have SMT support yet, hence we should not find a doorbell message generated Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/kvm/book3s_emulate.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/powerpc/kvm/book3s_emulate.c

[RFC PATCH 06/10] KVM: PPC: BOOK3S: PR: Emulate DPDES register

2014-01-28 Thread Aneesh Kumar K.V
Since we don't support SMT yet, we should always find zero in Directed privileged doorbell exception state register. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/kvm/book3s_emulate.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[RFC PATCH 08/10] KVM: PPC: BOOK3S: PR: Add support for facility unavailable interrupt

2014-01-28 Thread Aneesh Kumar K.V
At this point we allow all the supported facilities except EBB. So forward the interrupt to guest as illegal instruction. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/include/asm/kvm_asm.h | 4 +++- arch/powerpc/kvm/book3s.c | 4

[RFC PATCH 07/10] KVM: PPC: BOOK3S: PR: Emulate facility status and control register

2014-01-28 Thread Aneesh Kumar K.V
We allow priv-mode update of this. The guest value is saved in fscr, and the value actually used is saved in shadow_fscr. shadow_fscr only contains values that are allowed by the host. On facility unavailable interrupt, if the facility is allowed by fscr but disabled in shadow_fscr we need to

[RFC PATCH 10/10] PPC: BOOK3S: Disable/Enable TM looking at the ibm, pa-features device tree entry

2014-01-28 Thread Aneesh Kumar K.V
Runtime disable transactional memory feature looking at pa-features device tree entry. We need to do this so that we can run a kernel built with TM config in PR mode. For PR guest we provide a device tree entry with TM feature disabled in pa-features Signed-off-by: Aneesh Kumar K.V

[RFC PATCH 09/10] KVM: PPC: BOOK3S: PR: Ignore write to monitor mode control register

2014-01-28 Thread Aneesh Kumar K.V
We ignore write to these registers now Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/kvm/book3s_emulate.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/kvm/book3s_emulate.c b/arch/powerpc/kvm/book3s_emulate.c index

[RFC PATCH 03/10] KVM: PPC: BOOK3S: PR: Emulate instruction counter

2014-01-28 Thread Aneesh Kumar K.V
Writing to IC is not allowed in the privileged mode. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/include/asm/kvm_host.h | 1 + arch/powerpc/kvm/book3s_emulate.c | 3 +++ arch/powerpc/kvm/book3s_pr.c| 2 ++ 3 files changed, 6 insertions(+) diff

Re: [PATCH] powerpc: don't re-issue spinlock typedef that breaks older gcc

2014-01-28 Thread Aneesh Kumar K.V
Paul Gortmaker paul.gortma...@windriver.com writes: Commit b3084f4db3aeb991c507ca774337c7e7893ed04f (powerpc/thp: Fix crash on mremap) added a typedef struct spinlock spinlock_t; which on gcc 4.5.2 (and possibly other versions) causes many of: include/linux/spinlock_types.h:76:3: error:

Re: [PATCH] powerpc: don't re-issue spinlock typedef that breaks older gcc

2014-01-28 Thread Paul Gortmaker
On 14-01-28 12:28 PM, Aneesh Kumar K.V wrote: Paul Gortmaker paul.gortma...@windriver.com writes: Commit b3084f4db3aeb991c507ca774337c7e7893ed04f (powerpc/thp: Fix crash on mremap) added a typedef struct spinlock spinlock_t; which on gcc 4.5.2 (and possibly other versions) causes many of:

[PATCH] powerpc: numa: Fix decimal permissions

2014-01-28 Thread Joe Perches
This should have been octal. Signed-off-by: Joe Perches j...@perches.com --- arch/powerpc/mm/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 86a63de..30a42e2 100644 --- a/arch/powerpc/mm/numa.c +++

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

2014-01-28 Thread Nishanth Aravamudan
On 27.01.2014 [14:58:05 +0900], Joonsoo Kim wrote: On Fri, Jan 24, 2014 at 05:10:42PM -0800, Nishanth Aravamudan wrote: On 24.01.2014 [16:25:58 -0800], David Rientjes wrote: On Fri, 24 Jan 2014, Nishanth Aravamudan wrote: Thank you for clarifying and providing a test patch. I ran

[PATCH] powerpc: enable CONFIG_HAVE_MEMORYLESS_NODES

2014-01-28 Thread Nishanth Aravamudan
Anton Blanchard found an issue with an LPAR that had no memory in Node 0. Christoph Lameter recommended, as one possible solution, to use numa_mem_id() for locality of the nearest memory node-wise. However, numa_mem_id() [and the other related APIs] are only useful if CONFIG_HAVE_MEMORYLESS_NODES

Re: [PATCH] powerpc: don't re-issue spinlock typedef that breaks older gcc

2014-01-28 Thread Aneesh Kumar K.V
Paul Gortmaker paul.gortma...@windriver.com writes: On 14-01-28 12:28 PM, Aneesh Kumar K.V wrote: Paul Gortmaker paul.gortma...@windriver.com writes: Commit b3084f4db3aeb991c507ca774337c7e7893ed04f (powerpc/thp: Fix crash on mremap) added a typedef struct spinlock spinlock_t; which on gcc

Re: [PATCH] powerpc: don't re-issue spinlock typedef that breaks older gcc

2014-01-28 Thread Paul Gortmaker
On 14-01-28 01:49 PM, Aneesh Kumar K.V wrote: Paul Gortmaker paul.gortma...@windriver.com writes: On 14-01-28 12:28 PM, Aneesh Kumar K.V wrote: Paul Gortmaker paul.gortma...@windriver.com writes: Commit b3084f4db3aeb991c507ca774337c7e7893ed04f (powerpc/thp: Fix crash on mremap) added a

Re: [PATCH v2 2/3] powerpc/pseries: Update dynamic cache nodes for suspend/resume operation

2014-01-28 Thread Nathan Fontenot
On 01/22/2014 01:58 PM, Tyrel Datwyler wrote: From: Haren Myneni hb...@us.ibm.com From: Haren Myneni hb...@us.ibm.com pHyp can change cache nodes for suspend/resume operation. The current code updates the device tree after all non boot CPUs are enabled. Hence, we do not modify the cache

Re: [PATCH v2 1/3] powerpc/pseries: Device tree should only be updated once after suspend/migrate

2014-01-28 Thread Nathan Fontenot
On 01/22/2014 01:58 PM, Tyrel Datwyler wrote: From: Haren Myneni hb...@us.ibm.com From: Haren Myneni hb...@us.ibm.com The current code makes rtas calls for update-nodes, activate-firmware and then update-nodes again. The FW provides the same data for both update-nodes calls. As a result a

Re: [PATCH v2 3/3] powerpc/pseries: Report in kernel device tree update to drmgr

2014-01-28 Thread Nathan Fontenot
On 01/22/2014 01:58 PM, Tyrel Datwyler wrote: Traditionally it has been drmgr's responsibilty to update the device tree through the /proc/ppc64/ofdt interface after a suspend/resume operation. This patchset however has modified suspend/resume ops to preform that update entirely in the kernel

Re: [git pull] Please pull powerpc.git next branch

2014-01-28 Thread Benjamin Herrenschmidt
On Tue, 2014-01-28 at 16:03 +0100, Olaf Hering wrote: d084775738b746648d4102337163a04534a02982 is the first bad commit commit d084775738b746648d4102337163a04534a02982 Author: Alistair Popple alist...@popple.id.au Date: Mon Dec 9 18:17:03 2013 +1100 powerpc/iommu: Update the generic

Re: [PATCH] powerpc/sysdev: Fix a mpic section mismatch for MPC85xx

2014-01-28 Thread Christian Engelmayer
On Fri, 20 Dec 2013 00:00:41 +0100, Christian Engelmayer cenge...@gmx.at wrote: On Mon, 16 Dec 2013 11:10:53 +1100 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Sun, 2013-12-15 at 19:38 +0100, Christian Engelmayer wrote: Moved arch/powerpc/sysdev/mpic.c : smp_mpic_probe() out

Re: [git pull] Please pull powerpc.git next branch

2014-01-28 Thread Alistair Popple
On Wed, 29 Jan 2014 07:19:55 Benjamin Herrenschmidt wrote: On Tue, 2014-01-28 at 16:03 +0100, Olaf Hering wrote: d084775738b746648d4102337163a04534a02982 is the first bad commit commit d084775738b746648d4102337163a04534a02982 Author: Alistair Popple alist...@popple.id.au Date: Mon Dec 9

[PATCH] powerpc/iommu: Fix initialisation of DART iommu table

2014-01-28 Thread Alistair Popple
Commit d084775738b746648d4102337163a04534a02982 switched the generic powerpc iommu backend code to use the it_page_shift field to determine page size. Commit 3a553170d35d69bea3877bffa508489dfa6f133d should have initiliased this field for all platforms, however the DART iommu table code was not

[PATCH] powerpc: Fix 32-bit frames for signals delivered when transactional

2014-01-28 Thread Paul Mackerras
Commit d31626f70b61 (powerpc: Don't corrupt transactional state when using FP/VMX in kernel) introduced a bug where the uc_link and uc_regs fields of the ucontext_t that is created to hold the transactional values of the registers in a 32-bit signal frame didn't get set correctly. The reason is

Re: Please pull 'next' branch of 5xxx tree

2014-01-28 Thread Benjamin Herrenschmidt
On Tue, 2014-01-28 at 17:00 +1100, Benjamin Herrenschmidt wrote: On Tue, 2014-01-28 at 06:46 +0100, Anatolij Gustschin wrote: Hi Ben ! On Wed, 15 Jan 2014 22:18:59 +0100 Anatolij Gustschin ag...@denx.de wrote: Hi Ben ! please pull mpc5xxx patches for v3.14: Ping.