[PATCH 1/2] powerpc/cpuidle: Only clear LPCR decrementer wakeup bit on fast sleep entry

2014-06-02 Thread Michael Neuling
Currently when entering fastsleep we clear all LPCR PECE bits. This patch changes it to only clear the decrementer bit (ie. PECE1), which is the only bit we really need to clear here. This is needed if we want to set other wakeup causes like the PECEDH bit so we can use hypervisor doorbells on

[PATCH 2/2] powerpc/powernv: Enable POWER8 doorbell IPIs

2014-06-02 Thread Michael Neuling
This patch enables POWER8 doorbell IPIs on powernv. Since doorbells can only IPI within a core, we test to see when we can use doorbells and if not we fall back to XICS. This also enables hypervisor doorbells to wakeup us up from nap/sleep via the LPCR PECEDH bit. Based on tests by Anton, the

Re: [PATCH] powerpc: Remove platforms/wsp and associated pieces

2014-06-02 Thread Paul Bolle
On Mon, 2014-06-02 at 11:20 +1000, Michael Ellerman wrote: __attribute__ ((unused)) WSP is the last user of CONFIG_PPC_A2, so we remove that as well. Although CONFIG_PPC_ICSWX still exists, it's no longer selectable for any Book3E platform, so we can remove the code in mmu-book3e.h that

Re: [PATCH] powerpc, xmon: Enable hardware instruction breakpoint support on POWER8

2014-06-02 Thread Anshuman Khandual
On 06/01/2014 11:48 AM, Michael Neuling wrote: On Fri, 2014-05-30 at 17:40 +0530, Anshuman Khandual wrote: This patch enables support for hardware instruction breakpoints on POWER8 with the help of a new register called CIABR (Completed Instruction Address Breakpoint Register). With this

Re: [PATCH 1/3] powerpc: Split __SYSFS_SPRSETUP macro

2014-06-02 Thread Madhavan Srinivasan
On Wednesday 21 May 2014 12:02 PM, Sam Bobroff wrote: Split the __SYSFS_SPRSETUP macro into two parts so that registers requiring custom read and write functions can use common code for their show and store functions. Signed-off-by: Sam Bobroff sam.bobr...@au1.ibm.com ---

Re: [PATCH 2/3] powerpc: fix regression of per-CPU DSCR setting

2014-06-02 Thread Madhavan Srinivasan
On Wednesday 21 May 2014 12:02 PM, Sam Bobroff wrote: Since commit efcac65 powerpc: Per process DSCR + some fixes (try#4) it is no longer possible to set the DSCR on a per-CPU basis. The old behaviour was to minipulate the DSCR SPR directly but this is no longer sufficient: the value is

Re: [PATCH v2] powerpc/booke64: wrap tlb lock and search in htw miss with FTR_SMT

2014-06-02 Thread Tudor Laurentiu
On 05/31/2014 01:45 AM, Scott Wood wrote: From: Laurentiu Tudor laurentiu.tu...@freescale.com Virtualized environments may expose a e6500 dual-threaded core as two single-threaded e6500 cores. Take advantage of this and get rid of the tlb lock and the trap-causing tlbsx in the htw miss handler

Re: [V6 00/11] perf: New conditional branch filter

2014-06-02 Thread Stephane Eranian
On Wed, May 28, 2014 at 10:04 AM, Anshuman Khandual khand...@linux.vnet.ibm.com wrote: On 05/27/2014 05:39 PM, Stephane Eranian wrote: I have been looking at those patches and ran some tests. And I found a few issues so far. I am running: $ perf record -j any_ret -e cycles:u test_program $

[PATCH 1/4 v3] KVM: PPC: e500mc: Revert add load inst fixup

2014-06-02 Thread Mihai Caraman
The commit 1d628af7 add load inst fixup made an attempt to handle failures generated by reading the guest current instruction. The fixup code that was added works by chance hiding the real issue. Load external pid (lwepx) instruction, used by KVM to read guest instructions, is executed in a

[PATCH 2/4] KVM: PPC: Book3e: Add TLBSEL/TSIZE defines for MAS0/1

2014-06-02 Thread Mihai Caraman
Add mising defines MAS0_GET_TLBSEL() and MAS1_GET_TSIZE() for Book3E. Signed-off-by: Mihai Caraman mihai.cara...@freescale.com --- v3: - no change v2: - no change arch/powerpc/include/asm/mmu-book3e.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH 0/4 v3] KVM: PPC: Read guest instruction from kvmppc_get_last_inst()

2014-06-02 Thread Mihai Caraman
Read guest last instruction from kvmppc_get_last_inst() allowing the function to fail in order to emulate again. On bookehv architecture search for the physical address and kmap it, instead of using Load External PID (lwepx) instruction. This fixes an infinite loop caused by lwepx's data TLB miss

[PATCH 4/4 v3] KVM: PPC: Bookehv: Get vcpu's last instruction for emulation

2014-06-02 Thread Mihai Caraman
On book3e, KVM uses load external pid (lwepx) dedicated instruction to read guest last instruction on the exit path. lwepx exceptions (DTLB_MISS, DSI and LRAT), generated by loading a guest address, needs to be handled by KVM. These exceptions are generated in a substituted guest translation

[PATCH 3/4 v3] KVM: PPC: Alow kvmppc_get_last_inst() to fail

2014-06-02 Thread Mihai Caraman
On book3e, guest last instruction is read on the exit path using load external pid (lwepx) dedicated instruction. This load operation may fail due to TLB eviction and execute-but-not-read entries. This patch lay down the path for an alternative solution to read the guest last instruction, by

Re: P1022 audio driver help!

2014-06-02 Thread Timur Tabi
eshe...@gmail.com wrote: I have another question. Did you test full duplex in P1022 RDK board? Our design is same with P1022 RDK. No, I don't think I did. The P1022RDK was not a board that my team was responsible for, so I only did minimal work on it. I added support for it in the

Re: [V6 00/11] perf: New conditional branch filter

2014-06-02 Thread Anshuman Khandual
On 06/02/2014 06:29 PM, Stephane Eranian wrote: On Wed, May 28, 2014 at 10:04 AM, Anshuman Khandual khand...@linux.vnet.ibm.com wrote: On 05/27/2014 05:39 PM, Stephane Eranian wrote: I have been looking at those patches and ran some tests. And I found a few issues so far. I am running: $

Re: [V6 00/11] perf: New conditional branch filter

2014-06-02 Thread Stephane Eranian
On Mon, Jun 2, 2014 at 6:04 PM, Anshuman Khandual khand...@linux.vnet.ibm.com wrote: On 06/02/2014 06:29 PM, Stephane Eranian wrote: On Wed, May 28, 2014 at 10:04 AM, Anshuman Khandual khand...@linux.vnet.ibm.com wrote: On 05/27/2014 05:39 PM, Stephane Eranian wrote: I have been looking at

Re: [PATCH v2] powerpc/booke64: wrap tlb lock and search in htw miss with FTR_SMT

2014-06-02 Thread Scott Wood
On Mon, 2014-06-02 at 15:48 +0300, Tudor Laurentiu wrote: On 05/31/2014 01:45 AM, Scott Wood wrote: From: Laurentiu Tudor laurentiu.tu...@freescale.com - resent since the original didn't make it to the list archives or patchwork. The only thing i can think of is that maybe i've

Re: Re: P1022 audio driver help!

2014-06-02 Thread eshe...@gmail.com
Hi Timur thanks for your repons. I have another question. Did you test full duplex in P1022 RDK board?Our design is same with P1022 RDK. B.R.杨小帅  From: Timur TabiDate: 2014-05-30 23:48To: eshe168CC: linuxppc-dev; zhphsearchSubject: Re: P1022 audio driver help!On 05/30/2014 01:03 AM,

Re: [PATCH 2/2] powerpc/powernv: Enable POWER8 doorbell IPIs

2014-06-02 Thread Anton Blanchard
Hi, This patch enables POWER8 doorbell IPIs on powernv. Since doorbells can only IPI within a core, we test to see when we can use doorbells and if not we fall back to XICS. This also enables hypervisor doorbells to wakeup us up from nap/sleep via the LPCR PECEDH bit. Based on tests by

Re: [V6 00/11] perf: New conditional branch filter

2014-06-02 Thread Michael Neuling
On Mon, 2014-06-02 at 14:59 +0200, Stephane Eranian wrote: On Wed, May 28, 2014 at 10:04 AM, Anshuman Khandual khand...@linux.vnet.ibm.com wrote: On 05/27/2014 05:39 PM, Stephane Eranian wrote: I have been looking at those patches and ran some tests. And I found a few issues so far. I

[RFC PATCH 0/3] CMA: generalize CMA reserved area management code

2014-06-02 Thread Joonsoo Kim
Currently, there are two users on CMA functionality, one is the DMA subsystem and the other is the kvm on powerpc. They have their own code to manage CMA reserved area even if they looks really similar. From my guess, it is caused by some needs on bitmap management. Kvm side wants to maintain

[RFC PATCH 1/3] CMA: generalize CMA reserved area management functionality

2014-06-02 Thread Joonsoo Kim
Currently, there are two users on CMA functionality, one is the DMA subsystem and the other is the kvm on powerpc. They have their own code to manage CMA reserved area even if they looks really similar. From my guess, it is caused by some needs on bitmap management. Kvm side wants to maintain

[RFC PATCH 2/3] DMA, CMA: use general CMA reserved area management framework

2014-06-02 Thread Joonsoo Kim
Now, we have general CMA reserved area management framework, so use it for future maintainabilty. There is no functional change. Signed-off-by: Joonsoo Kim iamjoonsoo@lge.com diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index b3fe1cc..4eac559 100644 --- a/drivers/base/Kconfig +++

[RFC PATCH 3/3] PPC, KVM, CMA: use general CMA reserved area management framework

2014-06-02 Thread Joonsoo Kim
Now, we have general CMA reserved area management framework, so use it for future maintainabilty. There is no functional change. Signed-off-by: Joonsoo Kim iamjoonsoo@lge.com diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c b/arch/powerpc/kvm/book3s_hv_builtin.c index 8cd0dae..43c3f81

Re: [PATCH 4/4] powerpc/eeh: Avoid event on passed PE

2014-06-02 Thread Paul Mackerras
On Tue, May 20, 2014 at 01:25:11PM +0200, Alexander Graf wrote: On 20.05.14 10:30, Gavin Shan wrote: If we detects frozen state on PE that has been passed to guest, we needn't handle it. Instead, we rely on the guest to detect and recover it. The patch avoid EEH event on the frozen passed PE