[PATCH] powerpc/traps: merge unrecoverable_exception() and nonrecoverable_exception()

2018-09-23 Thread Christophe Leroy
PPC32 uses nonrecoverable_exception() while PPC64 uses unrecoverable_exception(). Both functions are doing almost the same thing. This patch removes nonrecoverable_exception() Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/asm-prototypes.h | 1 - arch/powerpc/kernel/entry_32.S

[RFC PATCH v0 3/3] kvmppc: Handle memory plug/unplug to secure VM

2018-09-23 Thread Bharata B Rao
Register the new memslot with UV during plug and unregister the memslot during unplug. Signed-off-by: Bharata B Rao --- arch/powerpc/include/asm/kvm_ppc.h | 6 -- arch/powerpc/include/asm/ucall-api.h | 5 + arch/powerpc/kvm/book3s.c| 5 +++-- arch/powerpc/kvm/book3s_hv.c

[RFC PATCH v0 1/3] kvmppc: HMM backend driver to manage pages of secure guest

2018-09-23 Thread Bharata B Rao
HMM driver for KVM PPC to manage page transitions of secure guest via H_SVM_PAGE_IN and H_SVM_PAGE_OUT hcalls. H_SVM_PAGE_IN: Move the content of a normal page to secure page H_SVM_PAGE_OUT: Move the content of a secure page to normal page Signed-off-by: Bharata B Rao --- arch/powerpc/include/a

[RFC PATCH v0 2/3] kvmppc: H_SVM_INIT_START and H_SVM_INIT_DONE hcalls

2018-09-23 Thread Bharata B Rao
H_SVM_INIT_START: Initiate securing a VM H_SVM_INIT_DONE: Conclude securing a VM During early guest init, these hcalls will be issued by UV. As part of these hcalls, [un]register memslots with UV. Signed-off-by: Bharata B Rao --- arch/powerpc/include/asm/hvcall.h| 4 ++- arch/powerpc/inclu

[RFC PATCH v0 0/3] KVMPPC HMM driver to manage secure guest pages

2018-09-23 Thread Bharata B Rao
Hi, A pseries guest can be run as a secure guest on Ultravisor-enabled POWER platforms. On such platforms, this driver will be used to manage the movement of guest pages between the normal memory managed by hypervisor (HV) and secure memory managed by Ultravisor (UV). This is an early post of HMM

Re: [PATCH ppc-next] powerpc/fsl-booke: don't load early TLB at once

2018-09-23 Thread Michael Ellerman
David Lamparter writes: > This is a *partial* revert of "powerpc/85xx: Load all early TLB entries > at once" (d9e1831a420267a7ced708bb259d65b0a3c0344d.) > > My dusty old P4080DS just completely fails to boot (no output at all) > without this revert. I have no clue what's going on here, I just >

Re: [PATCH v8 1/3] powerpc: Detect the presence of big-cores via "ibm,thread-groups"

2018-09-23 Thread Michael Neuling
On Fri, 2018-09-21 at 22:47 +0530, Gautham R Shenoy wrote: > Hello Michael, > > On Fri, Sep 21, 2018 at 01:02:45PM +1000, Michael Neuling wrote: > > This doesn't compile for me with: > > > > arch/powerpc/kernel/smp.c: In function ‘smp_prepare_cpus’: > > arch/powerpc/kernel/smp.c:812:23: error: ‘t

Re: [PATCH v3 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-23 Thread Masahiro Yamada
2018-09-13 11:51 GMT-04:00 Geert Uytterhoeven : > Hi Yamada-san, > > On Wed, Sep 12, 2018 at 3:02 AM Masahiro Yamada > wrote: >> 2018-09-12 0:40 GMT+09:00 Rob Herring : >> > On Mon, Sep 10, 2018 at 10:04 AM Rob Herring wrote: >> >> There is nothing arch specific about building dtb files other tha

Re: [PATCH 3/3] mm: optimise pte dirty/accessed bit setting by demand based pte insertion

2018-09-23 Thread Nicholas Piggin
On Fri, 21 Sep 2018 16:42:05 +0800 Ley Foon Tan wrote: > On Tue, 2018-09-18 at 03:53 +1000, Nicholas Piggin wrote: > > On Wed, 5 Sep 2018 07:29:51 -0700 > > Guenter Roeck wrote: > > > > > > > > Hi, > > > > > > On Tue, Aug 28, 2018 at 09:20:34PM +1000, Nicholas Piggin wrote: > > > > > > >

Re: [PATCH -next] powerpc: Remove duplicated include from pci_32.c

2018-09-23 Thread Stephen Rothwell
Hi YueHaibing, On Sun, 23 Sep 2018 08:12:08 + YueHaibing wrote: > > Remove duplicated include. > > Signed-off-by: YueHaibing Good catch. It was added by 2 separate commits in v4.18-rc1. Reviewed-by: Stephen Rothwell -- Cheers, Stephen Rothwell pgpv567hKMRl9.pgp Description: OpenPGP

[PATCH -next] powerpc: Remove duplicated include from pci_32.c

2018-09-23 Thread YueHaibing
Remove duplicated include. Signed-off-by: YueHaibing --- arch/powerpc/kernel/pci_32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index d63be12..274bd14 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c