Re: [PATCH] powerpc: thp: Add write barrier after updating the valid bit

2014-07-28 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Wed, 2014-07-23 at 00:23 +0530, Aneesh Kumar K.V wrote: >> > A better place for this would be right before the last write to the PMD >> > (that's also clearing BUSY) in __hash_page_thp(). Basically, it's the >> > normal lock ordering that's missing here, nothin

Re: [PATCH v4] arm64, ia64, ppc, s390, sh, tile, um, x86, mm: Remove default gate area

2014-07-28 Thread Michael Ellerman
On Thu, 2014-07-24 at 13:56 -0700, Andy Lutomirski wrote: > The core mm code will provide a default gate area based on > FIXADDR_USER_START and FIXADDR_USER_END if > !defined(__HAVE_ARCH_GATE_AREA) && defined(AT_SYSINFO_EHDR). > > This default is only useful for ia64. arm64, ppc, s390, sh, tile,

Re: [PATCH] powerpc/pci: reorder pci bus/bridge unregistration during PHB removal

2014-07-28 Thread Michael Ellerman
On Mon, 2014-07-28 at 20:48 -0400, Tyrel Datwyler wrote: > Commit bcdde7e made __sysfs_remove_dir() recursive and introduced a BUG_ON > during PHB removal while attempting to delete the power managment attribute > group of the bus. This is a result of tearing the bridge and bus devices down > out o

[PATCH] powerpc/pci: reorder pci bus/bridge unregistration during PHB removal

2014-07-28 Thread Tyrel Datwyler
Commit bcdde7e made __sysfs_remove_dir() recursive and introduced a BUG_ON during PHB removal while attempting to delete the power managment attribute group of the bus. This is a result of tearing the bridge and bus devices down out of order in remove_phb_dynamic. Since, the the bus resides below t

Re: [PATCH 1/4] KVM: PPC: BOOK3S: PR: Emulate virtual timebase register

2014-07-28 Thread Stewart Smith
Alexander Graf writes: > --- a/arch/powerpc/include/asm/reg.h > +++ b/arch/powerpc/include/asm/reg.h > @@ -25,7 +25,6 @@ > #ifdef CONFIG_8xx > #include > #endif /* CONFIG_8xx */ > -#include > > #define MSR_SF_LG 63 /* Enable 64 bit mode */ > #define MSR_ISF_LG 61

Re: [PATCH 1/6 v2] KVM: PPC: Book3E: Use common defines for SPE/FP/AltiVec int numbers

2014-07-28 Thread Scott Wood
On Mon, 2014-07-28 at 03:54 -0500, Caraman Mihai Claudiu-B02008 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Saturday, July 26, 2014 3:11 AM > > To: Caraman Mihai Claudiu-B02008 > > Cc: Alexander Graf; kvm-...@vger.kernel.org; k...@vger.kernel.org; > > linuxppc-dev@li

[PATCH] powerpc/e6500: Work around erratum A-008139

2014-07-28 Thread Scott Wood
Erratum A-008139 can cause duplicate TLB entries if an indirect entry is overwritten using tlbwe while the other thread is using it to do a lookup. Work around this by using tlbilx to invalidate prior to overwriting. To avoid the need to save another register to hold MAS1 during the workaround co

Re: [PATCH] KVM: PPC: BOOK3S: HV: Update compute_tlbie_rb to handle 16MB base page

2014-07-28 Thread Alexander Graf
On 27.06.14 15:35, Aneesh Kumar K.V wrote: When calculating the lower bits of AVA field, use the shift count based on the base page size. Also add the missing segment size and remove stale comment. Signed-off-by: Aneesh Kumar K.V Thanks, applied to kvm-ppc-queue. Alex

Re: [PATCH 1/4] KVM: PPC: BOOK3S: PR: Emulate virtual timebase register

2014-07-28 Thread Alexander Graf
On 06.06.14 18:27, Aneesh Kumar K.V wrote: Alexander Graf writes: On 05.06.14 14:08, Aneesh Kumar K.V wrote: virtual time base register is a per VM, per cpu register that needs to be saved and restored on vm exit and entry. Writing to VTB is not allowed in the privileged mode. Signed-off-by

Re: [PATCH v4 0/2] Use the POWER8 Micro Partition Prefetch Engine in KVM HV

2014-07-28 Thread Alexander Graf
On 18.07.14 06:18, Stewart Smith wrote: changes since v3: - use kvmppc namespace - MPP_BUFFER_ORDER of 3 not 4, as we only need 32k and it's already 32k aligned - split out kvmppc_vcore_create in separate patch - give a variable a better name: s/tmp/mpp_addr/ - logmpp becomes static inline funct

Re: [PATCH v3] Use the POWER8 Micro Partition Prefetch Engine in KVM HV on POWER8

2014-07-28 Thread Alexander Graf
On 18.07.14 06:10, Stewart Smith wrote: Alexander Graf writes: diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 1eaea2d..5769497 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h @@ -305,6 +305,8 @@ struct kv

Re: Kernel crash caused by cpufreq

2014-07-28 Thread Vaidyanathan Srinivasan
* Michael Ellerman [2014-07-28 17:03:10]: > On Fri, 2014-07-25 at 11:07 +1000, Gavin Shan wrote: > > I'm tracing one LSI interrupt issue on P8 box, and eventually into the > > following kernel crash. Not sure if there is one fix against this? :-) > > Vaidy wrote that I'm pretty sure (on CC). Ye

Re: [PATCH v3 04/18] vfio: powerpc: Move locked_vm accounting to a helper

2014-07-28 Thread Alexey Kardashevskiy
On 07/28/2014 10:46 AM, Benjamin Herrenschmidt wrote: > On Thu, 2014-07-24 at 18:47 +1000, Alexey Kardashevskiy wrote: >> Additional DMA windows support is coming and accounting will include them >> so let's move this code to a helper for reuse. > > This code looks a LOT like the one you added in

RE: [PATCH 1/6 v2] KVM: PPC: Book3E: Use common defines for SPE/FP/AltiVec int numbers

2014-07-28 Thread mihai.cara...@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, July 26, 2014 3:11 AM > To: Caraman Mihai Claudiu-B02008 > Cc: Alexander Graf; kvm-...@vger.kernel.org; k...@vger.kernel.org; > linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH 1/6 v2] KVM: PPC: Book3E: Use common defines f

Re: [PATCH] powerpc: kvm: make the setup of hpte under the protection of KVMPPC_RMAP_LOCK_BIT

2014-07-28 Thread Liu ping fan
Hope I am right. Take the following seq as an example if (hptep[0] & HPTE_V_VALID) { /* HPTE was previously valid, so we need to invalidate it */ unlock_rmap(rmap); hptep[0] |= HPTE_V_ABSENT; kvmppc_invalidate_hpte(kvm, hptep, index); /* don't lose previous R and C bits */ r |= hptep[1] & (HPTE_R

Re: [PATCH v2 5/7] powerpc/corenet: Add MDIO bus muxing support to the board device tree(s)

2014-07-28 Thread Emil Medve
Hello Scott, Scott Wood freescale.com> writes: > On Wed, 2014-07-16 at 15:17 -0500, Shruti Kanetkar wrote: > > + mdio fd000 { > > + /* For 10g interfaces */ > > + phy_xaui_slot1: xaui-phy slot1 { > > +

Re: Kernel crash caused by cpufreq

2014-07-28 Thread Michael Ellerman
On Fri, 2014-07-25 at 11:07 +1000, Gavin Shan wrote: > I'm tracing one LSI interrupt issue on P8 box, and eventually into the > following kernel crash. Not sure if there is one fix against this? :-) Vaidy wrote that I'm pretty sure (on CC). > Starting Linux PPC64 #401 SMP Fri Jul 25 10:52:28 EST