[PATCH v2] selftests/powerpc: Fix L1D flushing tests for Power10

2021-02-22 Thread Russell Currey
The rfi_flush and entry_flush selftests work by using the PM_LD_MISS_L1 perf event to count L1D misses. The value of this event has changed over time: - Power7 uses 0x400f0 - Power8 and Power9 use both 0x400f0 and 0x3e054 - Power10 uses only 0x3e054 Rather than relying on raw values, configure

[PATCH] powerpc/perf: Fix handling of privilege level checks in perf interrupt context

2021-02-22 Thread Athira Rajeev
Running "perf mem record" in powerpc platforms with selinux enabled resulted in soft lockup's. Below call-trace was seen in the logs: CPU: 58 PID: 3751 Comm: sssd_nss Not tainted 5.11.0-rc7+ #2 NIP: c0dff3d4 LR: c0dff3d0 CTR: REGS: c07fffab7d60 TRAP: 0100

Re: [PATCH kernel] powerpc/iommu: Annotate nested lock for lockdep

2021-02-22 Thread Alexey Kardashevskiy
On 18/02/2021 23:59, Frederic Barrat wrote: On 16/02/2021 04:20, Alexey Kardashevskiy wrote: The IOMMU table is divided into pools for concurrent mappings and each pool has a separate spinlock. When taking the ownership of an IOMMU group to pass through a device to a VM, we lock these

Re: [PATCH v4 2/3] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-02-22 Thread David Gibson
On Mon, Feb 22, 2021 at 12:16:08PM +0530, Bharata B Rao wrote: > On Wed, Feb 17, 2021 at 11:38:07AM +1100, David Gibson wrote: > > On Mon, Feb 15, 2021 at 12:05:41PM +0530, Bharata B Rao wrote: > > > Implement H_RPT_INVALIDATE hcall and add KVM capability > > > KVM_CAP_PPC_RPT_INVALIDATE to

Re: [PATCH RFC v1 5/6] xen-swiotlb: convert variables to arrays

2021-02-22 Thread Stefano Stabellini
On Fri, 19 Feb 2021, Konrad Rzeszutek Wilk wrote: > On Sun, Feb 07, 2021 at 04:56:01PM +0100, Christoph Hellwig wrote: > > On Thu, Feb 04, 2021 at 09:40:23AM +0100, Christoph Hellwig wrote: > > > So one thing that has been on my mind for a while: I'd really like > > > to kill the separate dma ops

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread Michael Ellerman
Rob Herring writes: > On Mon, Feb 22, 2021 at 6:05 AM Michael Ellerman wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Hi Linus, >> >> Please pull powerpc updates for 5.12. >> >> There will be a conflict with the devicetree tree. It's OK to just take their >> side of the

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread Michael Ellerman
"Oliver O'Halloran" writes: > On Tue, Feb 23, 2021 at 9:44 AM Linus Torvalds > wrote: >> >> On Mon, Feb 22, 2021 at 4:06 AM Michael Ellerman wrote: >> > >> > Please pull powerpc updates for 5.12. >> >> Pulled. However: >> >> > mode change 100755 => 100644 >> >

Re: linux-next: manual merge of the spi tree with the powerpc tree

2021-02-22 Thread Stephen Rothwell
Hi Stephen, On Fri, 12 Feb 2021 15:31:42 +1100 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the spi tree got a conflict in: > > drivers/spi/spi-mpc52xx.c > > between commit: > > e10656114d32 ("spi: mpc52xx: Avoid using get_tbl()") > > from the powerpc tree and

[powerpc:fixes-test] BUILD SUCCESS a5c2f7d40511976f30de38b4374b8da2b39a073c

2021-02-22 Thread kernel test robot
randconfig-a001-20210222 x86_64 randconfig-a002-20210222 x86_64 randconfig-a003-20210222 x86_64 randconfig-a005-20210222 x86_64 randconfig-a006-20210222 x86_64 randconfig-a004-20210222 i386

[powerpc:merge] BUILD SUCCESS b267c8c58643460da9159ee69f46b3945cfd9de6

2021-02-22 Thread kernel test robot
powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a001-20210222 x86_64 randconfig-a002-20210222 x86_64 randconfig-a003-20210222 x86_64

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread Oliver O'Halloran
On Tue, Feb 23, 2021 at 9:44 AM Linus Torvalds wrote: > > On Mon, Feb 22, 2021 at 4:06 AM Michael Ellerman wrote: > > > > Please pull powerpc updates for 5.12. > > Pulled. However: > > > mode change 100755 => 100644 > > tools/testing/selftests/powerpc/eeh/eeh-functions.sh > > create mode

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread Linus Torvalds
On Mon, Feb 22, 2021 at 4:06 AM Michael Ellerman wrote: > > Please pull powerpc updates for 5.12. Pulled. However: > mode change 100755 => 100644 > tools/testing/selftests/powerpc/eeh/eeh-functions.sh > create mode 100755 tools/testing/selftests/powerpc/eeh/eeh-vf-aware.sh > create mode

Re: [PATCH 06/13] KVM: PPC: Book3S 64: Move GUEST_MODE_SKIP test into KVM

2021-02-22 Thread Fabiano Rosas
Nicholas Piggin writes: > Move the GUEST_MODE_SKIP logic into KVM code. This is quite a KVM > internal detail that has no real need to be in common handlers. > > Also add a comment explaining why this this thing exists. this this > > Signed-off-by: Nicholas Piggin Reviewed-by: Fabiano Rosas

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread pr-tracker-bot
The pull request you sent on Mon, 22 Feb 2021 23:05:37 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.12-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b12b47249688915e987a9a2a393b522f86f6b7ab Thank you! --

Re: [PATCH 03/13] KVM: PPC: Book3S HV: Ensure MSR[ME] is always set in guest MSR

2021-02-22 Thread Fabiano Rosas
Nicholas Piggin writes: > Rather than add the ME bit to the MSR when the guest is entered, make > it clear that the hypervisor does not allow the guest to clear the bit. > > The ME addition is kept in the code for now, but a future patch will > warn if it's not present. > > Signed-off-by:

Re: [PATCH 02/13] powerpc/64s: remove KVM SKIP test from instruction breakpoint handler

2021-02-22 Thread Fabiano Rosas
Nicholas Piggin writes: > The code being executed in KVM_GUEST_MODE_SKIP is hypervisor code with > MSR[IR]=0, so the faults of concern are the d-side ones caused by access > to guest context by the hypervisor. > > Instruction breakpoint interrupts are not a concern here. It's unlikely > any good

Re: [PATCH 01/13] powerpc/64s: Remove KVM handler support from CBE_RAS interrupts

2021-02-22 Thread Fabiano Rosas
Nicholas Piggin writes: > Cell does not support KVM. > > Signed-off-by: Nicholas Piggin Reviewed-by: Fabiano Rosas > --- > arch/powerpc/kernel/exceptions-64s.S | 6 -- > 1 file changed, 6 deletions(-) > > diff --git a/arch/powerpc/kernel/exceptions-64s.S >

Re: [PATCH kernel 2/2] powerpc/iommu: Do not immediately panic when failed IOMMU table allocation

2021-02-22 Thread Leonardo Bras
On Mon, 2021-02-22 at 16:24 +1100, Alexey Kardashevskiy wrote: > > On 18/02/2021 06:32, Leonardo Bras wrote: > > On Tue, 2021-02-16 at 14:33 +1100, Alexey Kardashevskiy wrote: > > > Most platforms allocate IOMMU table structures (specifically it_map) > > > at the boot time and when this fails -

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread Rob Herring
On Mon, Feb 22, 2021 at 6:05 AM Michael Ellerman wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi Linus, > > Please pull powerpc updates for 5.12. > > There will be a conflict with the devicetree tree. It's OK to just take their > side of the conflict, we'll fix up the minor

[GIT PULL] Please pull powerpc/linux.git powerpc-5.12-1 tag

2021-02-22 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 5.12. There will be a conflict with the devicetree tree. It's OK to just take their side of the conflict, we'll fix up the minor behaviour change that causes in a follow-up patch. There's also a trivial

Re: [PATCH kernel] powerpc/iommu: Annotate nested lock for lockdep

2021-02-22 Thread Alexey Kardashevskiy
On 20/02/2021 14:49, Alexey Kardashevskiy wrote: On 18/02/2021 23:59, Frederic Barrat wrote: On 16/02/2021 04:20, Alexey Kardashevskiy wrote: The IOMMU table is divided into pools for concurrent mappings and each pool has a separate spinlock. When taking the ownership of an IOMMU group

[PATCH] ibmveth: Switch to using the new API kobj_to_dev()

2021-02-22 Thread Yang Li
fixed the following coccicheck: ./drivers/net/ethernet/ibm/ibmveth.c:1805:51-52: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/ibm/ibmveth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git