Re: [PATCH v4.4 backport 14/16] powerpc/powernv: Check device-tree for RFI flush settings

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 04:00:08PM +1100, Michael Ellerman wrote: > From: Oliver O'Halloran > > commit 6e032b350cd1fdb830f18f8320ef0e13b4e24094 upstream. > > New device-tree properties are available which tell the hypervisor > settings related to the RFI flush. Use them to determine the > approp

Re: [PATCH v4.4 backport 15/16] powerpc/64s: Wire up cpu_show_meltdown()

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 04:00:09PM +1100, Michael Ellerman wrote: > commit fd6e440f20b1a4304553775fc55938848ff617c9 upstream. > > The recent commit 87590ce6e373 ("sysfs/cpu: Add vulnerability folder") > added a generic folder and set of files for reporting information on > CPU vulnerabilities. One

Re: [PATCH v4.4 backport 10/16] powerpc/64s: Convert slb_miss_common to use RFI_TO_USER/KERNEL

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 04:00:04PM +1100, Michael Ellerman wrote: > From: Nicholas Piggin > > commit c7305645eb0c1621351cfc104038831ae87c0053 upstream. > > In the SLB miss handler we may be returning to user or kernel. We need > to add a check early on and save the result in the cr4 register, an

Re: [PATCH v4.4 backport 06/16] powerpc/64: Add macros for annotating the destination of rfid/hrfid

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 04:00:00PM +1100, Michael Ellerman wrote: > From: Nicholas Piggin > > commit 50e51c13b3822d14ff6df4279423e4b7b2269bc3 upstream. > > The rfid/hrfid ((Hypervisor) Return From Interrupt) instruction is > used for switching from the kernel to userspace, and from the > hypervi

Re: [PATCH v4.4 backport 05/16] powerpc/pseries: Add H_GET_CPU_CHARACTERISTICS flags & wrapper

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 03:59:59PM +1100, Michael Ellerman wrote: > From: Michael Neuling > > commit 191eccb1580939fb0d47deb405b82a85b0379070 upstream. > > A new hypervisor call has been defined to communicate various > characteristics of the CPU to guests. Add definitions for the hcall > number

Re: [PATCH v4.4 backport 07/16] powerpc/64s: Simple RFI macro conversions

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 04:00:01PM +1100, Michael Ellerman wrote: > From: Nicholas Piggin > > commit 222f20f140623ef6033491d0103ee0875fe87d35 upstream. > > This commit does simple conversions of rfi/rfid to the new macros that > include the expected destination context. By simple we mean cases >

Re: [PATCH v4.4 backport 00/16] powerpc stable backports for v4.4

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 03:59:54PM +1100, Michael Ellerman wrote: > Hi Greg, > > This is a backport to v4.4 of the RFI flush series that went upstream > recently. > There's also a few other commits I noticed had not made it to v4.4 due to > needing manual backports. I've queued these up, and fil

Re: [PATCH v4.4 backport 11/16] powerpc/64s: Add support for RFI flush of L1-D cache

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 04:00:05PM +1100, Michael Ellerman wrote: > commit aa8a5e0062ac940f7659394f4817c948dc8c0667 upstream. > > On some CPUs we can prevent the Meltdown vulnerability by flushing the > L1-D cache on exit from kernel to user mode, and from hypervisor to > guest. > > This is known

Re: [PATCH v4.4 backport 16/16] powerpc/64s: Allow control of RFI flush via debugfs

2018-02-04 Thread Greg KH
On Sun, Feb 04, 2018 at 04:00:10PM +1100, Michael Ellerman wrote: > commit 236003e6b5443c45c18e613d2b0d776a9f87540e upstream. > > Expose the state of the RFI flush (enabled/disabled) via debugfs, and > allow it to be enabled/disabled at runtime. > > eg: $ cat /sys/kernel/debug/powerpc/rfi_flush >

PA Semi PWRficient Gigabit Ethernet doesn't work anymore since the first networking updates for the kernel 4.16

2018-02-04 Thread Christian Zigotzky
Hello, The PA Semi PWRficient Gigabit Ethernet doesn't work anymore since the first networking updates [1] for the kernel 4.16. Error messages: [    0.634241] libphy: pasemi gpio mdio bus: probed [    0.634749] pasemi gpio mdio bus: Cannot register as MDIO bus, err -38 [    2.311496] pasemi_m

Re: PA Semi PWRficient Gigabit Ethernet doesn't work anymore since the first networking updates for the kernel 4.16

2018-02-04 Thread Andrew Lunn
On Sun, Feb 04, 2018 at 05:47:03PM +0100, Christian Zigotzky wrote: > Hello, > > The PA Semi PWRficient Gigabit Ethernet doesn't work anymore since the first > networking updates [1] for the kernel 4.16. > > Error messages: > > [    0.634241] libphy: pasemi gpio mdio bus: probed > [    0.634749]

Re: PA Semi PWRficient Gigabit Ethernet doesn't work anymore since the first networking updates for the kernel 4.16

2018-02-04 Thread Florian Fainelli
On 02/04/2018 09:16 AM, Andrew Lunn wrote: > On Sun, Feb 04, 2018 at 05:47:03PM +0100, Christian Zigotzky wrote: >> Hello, >> >> The PA Semi PWRficient Gigabit Ethernet doesn't work anymore since the first >> networking updates [1] for the kernel 4.16. >> >> Error messages: >> >> [    0.634241] l

Re: [PATCH (skiboot)] dt: add /cpus/ibm, powerpc-cpu-features device tree bindings

2018-02-04 Thread Nicholas Piggin
On Sat, 3 Feb 2018 09:36:20 -0600 Segher Boessenkool wrote: > Hi! Some remarks: Hi Segher, Thanks for looking, we're a bit constrained in what we should do because Linux side of the patch is already merged. > > On Sat, Feb 03, 2018 at 02:27:32PM +1000, Nicholas Piggin wrote: > > + /* > > +

[PATCH 02/20] KVM: PPC: Book3S PR: Fix broken select due to misspelling

2018-02-04 Thread Ulf Magnusson
Commit 76d837a4c0f9 ("KVM: PPC: Book3S PR: Don't include SPAPR TCE code on non-pseries platforms") added a reference to the globally undefined symbol PPC_SERIES. Looking at the rest of the commit, PPC_PSERIES was probably intended. Change PPC_SERIES to PPC_PSERIES. Discovered with the https://git

Re: [PATCH 02/20] KVM: PPC: Book3S PR: Fix broken select due to misspelling

2018-02-04 Thread Paul Mackerras
On Mon, Feb 05, 2018 at 02:21:14AM +0100, Ulf Magnusson wrote: > Commit 76d837a4c0f9 ("KVM: PPC: Book3S PR: Don't include SPAPR TCE code > on non-pseries platforms") added a reference to the globally undefined > symbol PPC_SERIES. Looking at the rest of the commit, PPC_PSERIES was > probably intend

Re: [PATCH 02/20] KVM: PPC: Book3S PR: Fix broken select due to misspelling

2018-02-04 Thread Ulf Magnusson
On Mon, Feb 5, 2018 at 5:48 AM, Paul Mackerras wrote: > On Mon, Feb 05, 2018 at 02:21:14AM +0100, Ulf Magnusson wrote: >> Commit 76d837a4c0f9 ("KVM: PPC: Book3S PR: Don't include SPAPR TCE code >> on non-pseries platforms") added a reference to the globally undefined >> symbol PPC_SERIES. Looking

[PATCH] powerpc/tm: Update function prototype comment

2018-02-04 Thread Cyril Bur
In commit eb5c3f1c8647 ("powerpc: Always save/restore checkpointed regs during treclaim/trecheckpoint") __tm_recheckpoint was modified to no longer take the second parameter 'unsigned long orig_msr' as part of a TM rewrite to simplify the reclaiming/recheckpointing process. There is a comment in t

Re: [PATCH] powerpc/64s/radix: remove unused flush_tlb_lpid variants

2018-02-04 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > These were intended for use by KVM, but it has its own LPID > flushing code and never used these. > Reviewed-by: Aneesh Kumar K.V > Cc: Aneesh Kumar K.V > Signed-off-by: Nicholas Piggin > --- > .../powerpc/include/asm/book3s/64/tlbflush-radix.h | 3 -- > arch/powe

Re: [PATCH 02/20] KVM: PPC: Book3S PR: Fix broken select due to misspelling

2018-02-04 Thread Paul Mackerras
On Mon, Feb 05, 2018 at 05:58:59AM +0100, Ulf Magnusson wrote: > On Mon, Feb 5, 2018 at 5:48 AM, Paul Mackerras wrote: > > On Mon, Feb 05, 2018 at 02:21:14AM +0100, Ulf Magnusson wrote: > >> Commit 76d837a4c0f9 ("KVM: PPC: Book3S PR: Don't include SPAPR TCE code > >> on non-pseries platforms") add