[PATCH] powerpc/32: Fix critical and debug interrupts on BOOKE

2021-07-06 Thread Christophe Leroy
32 bits BOOKE have special interrupts for debug and other critical events. When handling those interrupts, dedicated registers are saved in the stack frame in addition to the standard registers, leading to a shift of the pt_regs struct. Since commit db297c3b07af ("powerpc/32: Don't save

Re: [PATCH] perf script python: Fix buffer size to report iregs in perf script

2021-07-06 Thread kajoljain
On 7/7/21 12:45 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 06, 2021 at 05:26:12PM +0530, kajoljain escreveu: >> >> >> On 6/29/21 12:39 PM, kajoljain wrote: >>> >>> >>> On 6/28/21 8:19 PM, Paul A. Clarke wrote: On Mon, Jun 28, 2021 at 11:53:41AM +0530, Kajol Jain wrote: > Commit

[PATCH kernel] KVM: PPC: Book3S HV: Make unique debugfs nodename

2021-07-06 Thread Alexey Kardashevskiy
Currently it is vm-$currentpid which works as long as there is just one VM per the userspace (99.99% cases) but produces a bunch of "debugfs: Directory 'vm16679' with parent 'kvm' already present!" when syzkaller (syscall fuzzer) is running so only one VM is present in the debugfs for a given

Re: [PATCH 4/4] bpf powerpc: Add addr > TASK_SIZE_MAX explicit check

2021-07-06 Thread Ravi Bangoria
@@ -763,6 +771,14 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, struct codegen_context *   /* dst = *(u16 *)(ul) (src + off) */   case BPF_LDX | BPF_MEM | BPF_H:   case BPF_LDX | BPF_PROBE_MEM | BPF_H: +    if (BPF_MODE(code) == BPF_PROBE_MEM) { +  

Re: [PATCH 3/4] bpf powerpc: Add BPF_PROBE_MEM support for 64bit JIT

2021-07-06 Thread Ravi Bangoria
On 7/6/21 3:23 PM, Christophe Leroy wrote: Le 06/07/2021 à 09:32, Ravi Bangoria a écrit : BPF load instruction with BPF_PROBE_MEM mode can cause a fault inside kernel. Append exception table for such instructions within BPF program. Can you do the same for 32bit ? Sure. But before

[powerpc:merge] BUILD SUCCESS 311c00a9a9990647758763cc87d0588b6adcad02

2021-07-06 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20210706 i386 randconfig-a006-20210706 i386 randconfig-a001-20210706 i386 randconfig-a003-20210706

[powerpc:fixes-test] BUILD SUCCESS 1df3af6dc3cfe643f43d46f202bd44861ccbdb99

2021-07-06 Thread kernel test robot
allnoconfig i386 randconfig-a004-20210706 i386 randconfig-a006-20210706 i386 randconfig-a001-20210706 i386 randconfig-a003-20210706 i386 randconfig-a005-20210706 i386 randconfig-a002

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Dan Williams
On Tue, Jul 6, 2021 at 8:51 AM Uwe Kleine-König wrote: > > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Uwe Kleine-König
Hello, v1 was acked by some more after I stopped looking in my mailbox while preparing v2: On Tue, Jul 06, 2021 at 05:48:03PM +0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Srinivas Pandruvada
On Tue, 2021-07-06 at 17:48 +0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because > there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Rafael J. Wysocki
On Tue, Jul 6, 2021 at 5:53 PM Uwe Kleine-König wrote: > > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return

[PATCH v2 0/4] bus: Make remove callback return void

2021-07-06 Thread Uwe Kleine-König
Hello, compared to (implicit) v1 that I sent earlier today (https://lore.kernel.org/r/20210706095037.1425211-1-u.kleine-koe...@pengutronix.de) the following is changed: - Add three more patches preparing some s390 specific busses and adapt them in the last patch. Thanks to Cornelia Huck for

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Cornelia Huck
On Tue, Jul 06 2021, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void from

[PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Uwe Kleine-König
The driver core ignores the return value of this callback because there is only little it can do when a device disappears. This is the final bit of a long lasting cleanup quest where several buses were converted to also return void from their remove callback. Additionally some resource leaks were

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Alexander Shishkin
Uwe Kleine-König writes: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void from their remove callback. >

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Mathieu Poirier
On Tue, 6 Jul 2021 at 03:56, Uwe Kleine-König wrote: > > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Yehezkel Bernat
On Tue, Jul 6, 2021 at 12:50 PM Uwe Kleine-König wrote: > > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Geoff Levand
On 7/6/21 2:50 AM, Uwe Kleine-König wrote: > --- a/arch/powerpc/platforms/ps3/system-bus.c > +++ b/arch/powerpc/platforms/ps3/system-bus.c > @@ -381,7 +381,7 @@ static int ps3_system_bus_probe(struct device *_dev) > return result; > } > > -static int ps3_system_bus_remove(struct device

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread William Breathitt Gray
On Tue, Jul 06, 2021 at 05:48:03PM +0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Bjorn Andersson
On Tue 06 Jul 13:43 CDT 2021, Uwe Kleine-K?nig wrote: > Hello Bjorn, > > On Tue, Jul 06, 2021 at 01:08:18PM -0500, Bjorn Andersson wrote: > > On Tue 06 Jul 10:48 CDT 2021, Uwe Kleine-K?nig wrote: > > > diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c > > > index

Re: [PATCH] perf script python: Fix buffer size to report iregs in perf script

2021-07-06 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 06, 2021 at 05:26:12PM +0530, kajoljain escreveu: > > > On 6/29/21 12:39 PM, kajoljain wrote: > > > > > > On 6/28/21 8:19 PM, Paul A. Clarke wrote: > >> On Mon, Jun 28, 2021 at 11:53:41AM +0530, Kajol Jain wrote: > >>> Commit 48a1f565261d ("perf script python: Add more PMU fields >

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Nathan Chancellor
Hi Will and Robin, On 7/6/2021 10:06 AM, Will Deacon wrote: On Tue, Jul 06, 2021 at 04:39:11PM +0100, Robin Murphy wrote: On 2021-07-06 15:05, Christoph Hellwig wrote: On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote: FWIW I was pondering the question of whether to do something

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Uwe Kleine-König
Hello Bjorn, On Tue, Jul 06, 2021 at 01:08:18PM -0500, Bjorn Andersson wrote: > On Tue 06 Jul 10:48 CDT 2021, Uwe Kleine-K?nig wrote: > > diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c > > index c1404d3dae2c..7f6fac618ab2 100644 > > --- a/drivers/rpmsg/rpmsg_core.c > > +++

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-06 Thread Bjorn Andersson
On Tue 06 Jul 10:48 CDT 2021, Uwe Kleine-K?nig wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Will Deacon
On Tue, Jul 06, 2021 at 04:39:11PM +0100, Robin Murphy wrote: > On 2021-07-06 15:05, Christoph Hellwig wrote: > > On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote: > > > FWIW I was pondering the question of whether to do something along those > > > lines or just scrap the default

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Konrad Rzeszutek Wilk
On Tue, Jul 06, 2021 at 05:57:21PM +0100, Will Deacon wrote: > On Tue, Jul 06, 2021 at 10:46:07AM -0400, Konrad Rzeszutek Wilk wrote: > > On Tue, Jul 06, 2021 at 04:05:13PM +0200, Christoph Hellwig wrote: > > > On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote: > > > > FWIW I was

Re: Xorg doesn't work anymore after the latest DRM updates

2021-07-06 Thread Das, Nirmoy
Happy to help, Christian :) Nirmoy On 7/6/2021 5:33 PM, Christian Zigotzky wrote: Hi Nirmoy, This patch works! Thanks a lot! We tested it on an A-EON AmigaOne X5000/20 today. Screenshot:

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Will Deacon
On Tue, Jul 06, 2021 at 10:46:07AM -0400, Konrad Rzeszutek Wilk wrote: > On Tue, Jul 06, 2021 at 04:05:13PM +0200, Christoph Hellwig wrote: > > On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote: > > > FWIW I was pondering the question of whether to do something along those > > > lines

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Juergen Gross
On 06.07.21 11:50, Uwe Kleine-König wrote: The driver core ignores the return value of this callback because there is only little it can do when a device disappears. This is the final bit of a long lasting cleanup quest where several buses were converted to also return void from their remove

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Robin Murphy
On 2021-07-06 15:05, Christoph Hellwig wrote: On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote: FWIW I was pondering the question of whether to do something along those lines or just scrap the default assignment entirely, so since I hadn't got round to saying that I've gone ahead

Re: Xorg doesn't work anymore after the latest DRM updates

2021-07-06 Thread Christian Zigotzky
Hi Nirmoy, This patch works! Thanks a lot! We tested it on an A-EON AmigaOne X5000/20 today. Screenshot: http://www.skateman.nl/wp-content/uploads/2021/07/Screenshot-at-2021-07-06-113237.png Cheers, Christian On 05 July 2021 at 06:48 pm, Christian Zigotzky wrote: Hi Nirmoy, Many thanks

Re: [FSL P50xx] IRQ issues

2021-07-06 Thread Christian Zigotzky
Hi Nick, Your patch works (see patch below)! Many thanks for your help! We tested it on an A-EON AmigaOne X5000/20 and in a virtual e5500 QEMU machine today. Screenshots: - http://www.skateman.nl/wp-content/uploads/2021/07/Screenshot-at-2021-07-06-113237.png -

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Konrad Rzeszutek Wilk
On Tue, Jul 06, 2021 at 04:05:13PM +0200, Christoph Hellwig wrote: > On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote: > > FWIW I was pondering the question of whether to do something along those > > lines or just scrap the default assignment entirely, so since I hadn't got > > round

Re: Hitting BUG_ON in do_notify_resume() with gdb and SIGTRAP

2021-07-06 Thread Christophe Leroy
Le 06/07/2021 à 16:05, Radu Rendec a écrit : On Tue, 2021-07-06 at 15:53 +0200, Christophe Leroy wrote: Le 06/07/2021 à 15:50, Radu Rendec a écrit : On Tue, 2021-07-06 at 15:16 +0200, Christophe Leroy wrote: Le 06/07/2021 à 13:56, Radu Rendec a écrit : On Tue, 2021-07-06 at 12:43 +0200,

Re: Hitting BUG_ON in do_notify_resume() with gdb and SIGTRAP

2021-07-06 Thread Radu Rendec
On Tue, 2021-07-06 at 15:53 +0200, Christophe Leroy wrote: >Le 06/07/2021 à 15:50, Radu Rendec a écrit : >> On Tue, 2021-07-06 at 15:16 +0200, Christophe Leroy wrote: >>> Le 06/07/2021 à 13:56, Radu Rendec a écrit : On Tue, 2021-07-06 at 12:43 +0200, Christophe Leroy wrote: > Le

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Christoph Hellwig
On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote: > FWIW I was pondering the question of whether to do something along those > lines or just scrap the default assignment entirely, so since I hadn't got > round to saying that I've gone ahead and hacked up the alternative > (similarly

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Robin Murphy
On 2021-07-06 14:24, Will Deacon wrote: On Tue, Jul 06, 2021 at 06:48:48AM +0200, Christoph Hellwig wrote: On Mon, Jul 05, 2021 at 08:03:52PM +0100, Will Deacon wrote: So at this point, the AMD IOMMU driver does: swiotlb= (iommu_default_passthrough() || sme_me_mask) ? 1 : 0;

Re: Hitting BUG_ON in do_notify_resume() with gdb and SIGTRAP

2021-07-06 Thread Christophe Leroy
Le 06/07/2021 à 15:50, Radu Rendec a écrit : On Tue, 2021-07-06 at 15:16 +0200, Christophe Leroy wrote: Le 06/07/2021 à 13:56, Radu Rendec a écrit : On Tue, 2021-07-06 at 12:43 +0200, Christophe Leroy wrote: Le 04/07/2021 à 23:38, Radu Rendec a écrit : I'm trying to set up my (virtual)

Re: Hitting BUG_ON in do_notify_resume() with gdb and SIGTRAP

2021-07-06 Thread Radu Rendec
On Tue, 2021-07-06 at 15:16 +0200, Christophe Leroy wrote: >Le 06/07/2021 à 13:56, Radu Rendec a écrit : >> On Tue, 2021-07-06 at 12:43 +0200, Christophe Leroy wrote: >>> Le 04/07/2021 à 23:38, Radu Rendec a écrit : I'm trying to set up my (virtual) environment to test an old bug in the

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-06 Thread Will Deacon
On Tue, Jul 06, 2021 at 06:48:48AM +0200, Christoph Hellwig wrote: > On Mon, Jul 05, 2021 at 08:03:52PM +0100, Will Deacon wrote: > > So at this point, the AMD IOMMU driver does: > > > > swiotlb= (iommu_default_passthrough() || sme_me_mask) ? 1 : 0; > > > > where 'swiotlb' is a

Re: Hitting BUG_ON in do_notify_resume() with gdb and SIGTRAP

2021-07-06 Thread Christophe Leroy
Le 06/07/2021 à 13:56, Radu Rendec a écrit : On Tue, 2021-07-06 at 12:43 +0200, Christophe Leroy wrote: Le 04/07/2021 à 23:38, Radu Rendec a écrit : I'm trying to set up my (virtual) environment to test an old bug in the PPC32 ptrace() code. I came across a completely different problem,

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Uwe Kleine-König
On Tue, Jul 06, 2021 at 01:17:37PM +0200, Cornelia Huck wrote: > On Tue, Jul 06 2021, Cornelia Huck wrote: > > > On Tue, Jul 06 2021, Uwe Kleine-König > > wrote: > > > >> The driver core ignores the return value of this callback because there > >> is only little it can do when a device

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Heikki Krogerus
On Tue, Jul 06, 2021 at 11:50:37AM +0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Maximilian Luz
On 7/6/21 11:50 AM, Uwe Kleine-König wrote: The driver core ignores the return value of this callback because there is only little it can do when a device disappears. This is the final bit of a long lasting cleanup quest where several buses were converted to also return void from their remove

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Cornelia Huck
On Tue, Jul 06 2021, Cornelia Huck wrote: > On Tue, Jul 06 2021, Uwe Kleine-König wrote: > >> The driver core ignores the return value of this callback because there >> is only little it can do when a device disappears. >> >> This is the final bit of a long lasting cleanup quest where several

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Kirti Wankhede
On 7/6/2021 3:20 PM, Uwe Kleine-König wrote: The driver core ignores the return value of this callback because there is only little it can do when a device disappears. This is the final bit of a long lasting cleanup quest where several buses were converted to also return void from their

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Alexandre Belloni
On 06/07/2021 11:50:37+0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Cornelia Huck
On Tue, Jul 06 2021, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void from

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Johan Hovold
On Tue, Jul 06, 2021 at 11:50:37AM +0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Vinod Koul
On 06-07-21, 11:50, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void from their

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Mauro Carvalho Chehab
Em Tue, 6 Jul 2021 11:50:37 +0200 Uwe Kleine-König escreveu: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Pali Rohár
On Tuesday 06 July 2021 11:50:37 Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Chen-Yu Tsai
On Tue, Jul 6, 2021 at 5:54 PM Uwe Kleine-König wrote: > > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Mark Brown
On Tue, Jul 06, 2021 at 11:50:37AM +0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. Acked-by: Mark Brown signature.asc Description: PGP signature

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Russell King (Oracle)
On Tue, Jul 06, 2021 at 11:50:37AM +0200, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also

[PATCH] bus: Make remove callback return void

2021-07-06 Thread Uwe Kleine-König
The driver core ignores the return value of this callback because there is only little it can do when a device disappears. This is the final bit of a long lasting cleanup quest where several buses were converted to also return void from their remove callback. Additionally some resource leaks were

Re: Hitting BUG_ON in do_notify_resume() with gdb and SIGTRAP

2021-07-06 Thread Radu Rendec
On Tue, 2021-07-06 at 12:43 +0200, Christophe Leroy wrote: > Le 04/07/2021 à 23:38, Radu Rendec a écrit : > > I'm trying to set up my (virtual) environment to test an old bug in the > > PPC32 ptrace() code. I came across a completely different problem, > > which seems to make gdb pretty much

Re: [PATCH] perf script python: Fix buffer size to report iregs in perf script

2021-07-06 Thread kajoljain
On 6/29/21 12:39 PM, kajoljain wrote: > > > On 6/28/21 8:19 PM, Paul A. Clarke wrote: >> On Mon, Jun 28, 2021 at 11:53:41AM +0530, Kajol Jain wrote: >>> Commit 48a1f565261d ("perf script python: Add more PMU fields >>> to event handler dict") added functionality to report fields like >>>

[PATCH AUTOSEL 5.12 089/160] ibmvnic: fix kernel build warnings in build_hdr_descs_arr

2021-07-06 Thread Sasha Levin
From: Lijun Pan [ Upstream commit 73214a690c50a134bd364e1a4430e0e7ac81a8d8 ] Fix the following kernel build warnings: drivers/net/ethernet/ibm/ibmvnic.c:1516: warning: Function parameter or member 'skb' not described in 'build_hdr_descs_arr' drivers/net/ethernet/ibm/ibmvnic.c:1516: warning:

[PATCH AUTOSEL 5.13 104/189] ibmvnic: fix kernel build warnings in build_hdr_descs_arr

2021-07-06 Thread Sasha Levin
From: Lijun Pan [ Upstream commit 73214a690c50a134bd364e1a4430e0e7ac81a8d8 ] Fix the following kernel build warnings: drivers/net/ethernet/ibm/ibmvnic.c:1516: warning: Function parameter or member 'skb' not described in 'build_hdr_descs_arr' drivers/net/ethernet/ibm/ibmvnic.c:1516: warning:

Re: [PATCH] powerpc/64e: Fix system call illegal mtmsrd instruction

2021-07-06 Thread Michael Ellerman
On Tue, 6 Jul 2021 15:13:10 +1000, Nicholas Piggin wrote: > BookE does not have mtmsrd, switch to use wrteei to enable MSR[EE]. Applied to powerpc/fixes. [1/1] powerpc/64e: Fix system call illegal mtmsrd instruction https://git.kernel.org/powerpc/c/1df3af6dc3cfe643f43d46f202bd44861ccbdb99

Re: [PATCH 0/2] powerpc/bpf: Fix issue with atomic ops

2021-07-06 Thread Michael Ellerman
On Thu, 1 Jul 2021 20:38:57 +0530, Naveen N. Rao wrote: > The first patch fixes an issue that causes a soft lockup on ppc64 with > the BPF_ATOMIC bounds propagation verifier test. The second one updates > ppc32 JIT to reject atomic operations properly. > > - Naveen > > Naveen N. Rao (2): >

Re: [PATCH] powerpc/mm: Fix lockup on kernel exec fault

2021-07-06 Thread Michael Ellerman
On Thu, 1 Jul 2021 11:17:08 + (UTC), Christophe Leroy wrote: > The powerpc kernel is not prepared to handle exec faults from kernel. > Especially, the function is_exec_fault() will return 'false' when an > exec fault is taken by kernel, because the check is based on reading >

Re: [PATCH] powerpc/xive: Fix error handling when allocating an IPI

2021-07-06 Thread Michael Ellerman
On Thu, 1 Jul 2021 17:24:12 +0200, Cédric Le Goater wrote: > This is a smatch warning: > > arch/powerpc/sysdev/xive/common.c:1161 xive_request_ipi() warn: unsigned > 'xid->irq' is never less than zero. Applied to powerpc/fixes. [1/1] powerpc/xive: Fix error handling when allocating an IPI

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Johannes Thumshirn
On 06/07/2021 12:36, Lee Jones wrote: > On Tue, 06 Jul 2021, Uwe Kleine-König wrote: > >> The driver core ignores the return value of this callback because there >> is only little it can do when a device disappears. >> >> This is the final bit of a long lasting cleanup quest where several >>

Re: Hitting BUG_ON in do_notify_resume() with gdb and SIGTRAP

2021-07-06 Thread Christophe Leroy
Le 04/07/2021 à 23:38, Radu Rendec a écrit : Hi Everyone, I'm trying to set up my (virtual) environment to test an old bug in the PPC32 ptrace() code. I came across a completely different problem, which seems to make gdb pretty much unusable on PPC32. I'm not sure if this is a real kernel

Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Lee Jones
On Tue, 06 Jul 2021, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void from

Re: [PATCH 4/4] bpf powerpc: Add addr > TASK_SIZE_MAX explicit check

2021-07-06 Thread Christophe Leroy
Le 06/07/2021 à 09:32, Ravi Bangoria a écrit : On PowerPC with KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. So, when BPF program tries to access invalid userspace

Re: [PATCH 3/4] bpf powerpc: Add BPF_PROBE_MEM support for 64bit JIT

2021-07-06 Thread Christophe Leroy
Le 06/07/2021 à 09:32, Ravi Bangoria a écrit : BPF load instruction with BPF_PROBE_MEM mode can cause a fault inside kernel. Append exception table for such instructions within BPF program. Can you do the same for 32bit ? Unlike other archs which uses extable 'fixup' field to pass

[PATCH v2 0/1] Interface to represent PAPR firmware attributes

2021-07-06 Thread Pratik R. Sampat
RFC: https://lkml.org/lkml/2021/6/4/791 PATCH v1: https://lkml.org/lkml/2021/6/16/805 Changelog v1 --> v2 Based on comments from Fabiano and Gautham, the following changes were made: 1. Added flag attributes to fetch either single or all attributes from the H_GET_ENERGY_SCALE_INFO HCALL 2.

[PATCH v2 1/1] powerpc/pseries: Interface to represent PAPR firmware attributes

2021-07-06 Thread Pratik R. Sampat
Adds a generic interface to represent the energy and frequency related PAPR attributes on the system using the new H_CALL "H_GET_ENERGY_SCALE_INFO". H_GET_EM_PARMS H_CALL was previously responsible for exporting this information in the lparcfg, however the H_GET_EM_PARMS H_CALL will be deprecated

Re: [PATCH v3 4/4] powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP

2021-07-06 Thread kernel test robot
Hi Christophe, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on next-20210701] [cannot apply to v5.13] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

[PATCH 4/4] bpf powerpc: Add addr > TASK_SIZE_MAX explicit check

2021-07-06 Thread Ravi Bangoria
On PowerPC with KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. So, when BPF program tries to access invalid userspace address, page-fault handler considers it as bad KUAP

[PATCH 3/4] bpf powerpc: Add BPF_PROBE_MEM support for 64bit JIT

2021-07-06 Thread Ravi Bangoria
BPF load instruction with BPF_PROBE_MEM mode can cause a fault inside kernel. Append exception table for such instructions within BPF program. Unlike other archs which uses extable 'fixup' field to pass dest_reg and nip, BPF exception table on PowerPC follows the generic PowerPC exception table

[PATCH 2/4] bpf powerpc: Remove extra_pass from bpf_jit_build_body()

2021-07-06 Thread Ravi Bangoria
In case of extra_pass, we always skips usual JIT passes. Thus extra_pass is always false while calling bpf_jit_build_body() and thus it can be removed. Signed-off-by: Ravi Bangoria --- arch/powerpc/net/bpf_jit.h| 2 +- arch/powerpc/net/bpf_jit_comp.c | 6 +++---

[PATCH 0/4] bpf powerpc: Add BPF_PROBE_MEM support for 64bit JIT

2021-07-06 Thread Ravi Bangoria
Patch #1, #2 are simple cleanup patches. Patch #3 adds BPF_PROBE_MEM support with PowerPC 64bit JIT compiler. Patch #4 adds explicit addr > TASK_SIZE_MAX check to handle bad userspace pointers. Ravi Bangoria (4): bpf powerpc: Remove unused SEEN_STACK bpf powerpc: Remove extra_pass from

[PATCH 1/4] bpf powerpc: Remove unused SEEN_STACK

2021-07-06 Thread Ravi Bangoria
SEEN_STACK is unused on PowerPC. Remove it. Also, have SEEN_TAILCALL use 0x4000. Signed-off-by: Ravi Bangoria --- arch/powerpc/net/bpf_jit.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/net/bpf_jit.h b/arch/powerpc/net/bpf_jit.h index

Re: [PATCH v3 0/4] Add perf interface to expose nvdimm

2021-07-06 Thread kajoljain
On 6/23/21 4:46 PM, Michael Ellerman wrote: > Peter Zijlstra writes: >> On Wed, Jun 23, 2021 at 01:40:38PM +0530, kajoljain wrote: >>> >>> On 6/22/21 6:44 PM, Peter Zijlstra wrote: On Thu, Jun 17, 2021 at 06:56:13PM +0530, Kajol Jain wrote: > --- > Kajol Jain (4): >