Re: [PATCH 6/6] powerpc/pseries: Add firmware details to dump stack arch description

2022-09-29 Thread Michael Ellerman
Nathan Lynch writes: > Michael Ellerman writes: > >> Add firmware version details to the dump stack arch description, which >> is printed in case of an oops. >> >> Currently /hypervisor only exists on KVM, so if we don't find that >> look for something that suggests we're on phyp and if so

Re: [PATCH v2 1/6] powerpc: Add hardware description string

2022-09-29 Thread Michael Ellerman
Nathan Lynch writes: > Michael Ellerman writes: >> Create a hardware description string, which we will use to record >> various details of the hardware platform we are running on. >> >> Print the accumulated description at boot, and use it to set the generic >> description which is printed in

Re: [PATCH v2 6/6] powerpc/pseries: Add firmware details to the hardware description

2022-09-29 Thread Michael Ellerman
Nathan Lynch writes: > Michael Ellerman writes: >> Add firmware version details to the hardware description, which is >> printed at boot and in case of an oops. >> >> Use /hypervisor if we find it, though currently it only exists if we're >> running under qemu. >> >> Look for

Re: [Bug report] BUG: Kernel NULL pointer dereference at 0x00000069, filemap_release_folio+0x88/0xb0

2022-09-29 Thread Michael Ellerman
Matthew Wilcox writes: > On Tue, Sep 27, 2022 at 09:17:20AM +0800, Zorro Lang wrote: >> Hi mm and ppc list, >> >> Recently I started to hit a kernel panic [2] rarely on *ppc64le* with *1k >> blocksize* ext4. It's not easy to reproduce, but still has chance to trigger >> by loop running

Re: [PATCH 2/7] mm: Free device private pages have zero refcount

2022-09-29 Thread Dan Williams
Alistair Popple wrote: > > Dan Williams writes: > > > Alistair Popple wrote: > >> > >> Jason Gunthorpe writes: > >> > >> > On Mon, Sep 26, 2022 at 04:03:06PM +1000, Alistair Popple wrote: > >> >> Since 27674ef6c73f ("mm: remove the extra ZONE_DEVICE struct page > >> >> refcount") device

Re: [PATCH -next] powerpc/mpic_msgr: fix cast removes address space of expression warnings

2022-09-29 Thread Ruan Jinjie
Ping. On 2022/9/1 16:54, ruanjinjie wrote: > When build Linux kernel, encounter the following warnings: > > ./arch/powerpc/sysdev/mpic_msgr.c:230:38: warning: cast removes address space > '__iomem' of expression > ./arch/powerpc/sysdev/mpic_msgr.c:230:27: warning: incorrect type in >

Re: [PATCH 2/7] mm: Free device private pages have zero refcount

2022-09-29 Thread Alistair Popple
Dan Williams writes: > Alistair Popple wrote: >> >> Jason Gunthorpe writes: >> >> > On Mon, Sep 26, 2022 at 04:03:06PM +1000, Alistair Popple wrote: >> >> Since 27674ef6c73f ("mm: remove the extra ZONE_DEVICE struct page >> >> refcount") device private pages have no longer had an extra

Re: [PATCH] powerpc/pseries/vas: Pass hw_cpu_id to node associativity HCALL

2022-09-29 Thread Nathan Lynch
Haren Myneni writes: > Generally the hypervisor decides to allocate a window on different > VAS instances. But if the user space wishes to allocate on the > current VAS instance where the process is executing, the kernel has > to pass associativity domain IDs to allocate VAS window HCALL. To >

Re: [PATCH v2 6/6] powerpc/pseries: Add firmware details to the hardware description

2022-09-29 Thread Nathan Lynch
Michael Ellerman writes: > Add firmware version details to the hardware description, which is > printed at boot and in case of an oops. > > Use /hypervisor if we find it, though currently it only exists if we're > running under qemu. > > Look for "ibm,powervm-partition" which is specified in

Re: [PATCH v2 1/6] powerpc: Add hardware description string

2022-09-29 Thread Nathan Lynch
Michael Ellerman writes: > Create a hardware description string, which we will use to record > various details of the hardware platform we are running on. > > Print the accumulated description at boot, and use it to set the generic > description which is printed in oopses. > > To begin with add

Re: [Bug report] BUG: Kernel NULL pointer dereference at 0x00000069, filemap_release_folio+0x88/0xb0

2022-09-29 Thread Matthew Wilcox
On Tue, Sep 27, 2022 at 09:17:20AM +0800, Zorro Lang wrote: > Hi mm and ppc list, > > Recently I started to hit a kernel panic [2] rarely on *ppc64le* with *1k > blocksize* ext4. It's not easy to reproduce, but still has chance to trigger > by loop running generic/048 on ppc64le (not sure all

Re: [PATCH 2/7] mm: Free device private pages have zero refcount

2022-09-29 Thread Dan Williams
Alistair Popple wrote: > > Jason Gunthorpe writes: > > > On Mon, Sep 26, 2022 at 04:03:06PM +1000, Alistair Popple wrote: > >> Since 27674ef6c73f ("mm: remove the extra ZONE_DEVICE struct page > >> refcount") device private pages have no longer had an extra reference > >> count when the page is

[PATCH v2 6/6] powerpc/pseries: Add firmware details to the hardware description

2022-09-29 Thread Michael Ellerman
Add firmware version details to the hardware description, which is printed at boot and in case of an oops. Use /hypervisor if we find it, though currently it only exists if we're running under qemu. Look for "ibm,powervm-partition" which is specified in PAPR+ v2.11 and tells us we're running

[PATCH v2 5/6] powerpc/powernv: Add opal details to the hardware description

2022-09-29 Thread Michael Ellerman
Add OPAL version details to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: ... opal:v6.2 Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powernv/setup.c | 22 ++ 1 file changed, 22 insertions(+) v2: Use

[PATCH v2 4/6] powerpc: Add device-tree model to the hardware description

2022-09-29 Thread Michael Ellerman
Add the model of the machine we're on to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: model:'IBM,8247-22L' Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v2 3/6] powerpc/64: Add logical PVR to the hardware description

2022-09-29 Thread Michael Ellerman
If we detect a logical PVR add that to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: ... lpvr:0xf04 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 2/6] powerpc: Add PVR & CPU name to hardware description

2022-09-29 Thread Michael Ellerman
Add the PVR and CPU name to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: ... cpu:'POWER8E (raw)' pvr:0x4b0201 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v2 1/6] powerpc: Add hardware description string

2022-09-29 Thread Michael Ellerman
Create a hardware description string, which we will use to record various details of the hardware platform we are running on. Print the accumulated description at boot, and use it to set the generic description which is printed in oopses. To begin with add ppc_md.name, aka the "machine

Re: [PATCH v2 1/6] powerpc: Add hardware description string

2022-09-29 Thread Michael Ellerman
Michael Ellerman writes: > Create a hardware description string, which we will use to record > various details of the hardware platform we are running on. > > Print the accumulated description at boot, and use it to set the generic > description which is printed in oopses. > > To begin with add

[PATCH v2 5/6] powerpc/powernv: Add opal details to the hardware description

2022-09-29 Thread Michael Ellerman
Add OPAL version details to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: ... opal:v6.2 Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powernv/setup.c | 22 ++ 1 file changed, 22 insertions(+) v2: Use

[PATCH v2 1/6] powerpc: Add hardware description string

2022-09-29 Thread Michael Ellerman
Create a hardware description string, which we will use to record various details of the hardware platform we are running on. Print the accumulated description at boot, and use it to set the generic description which is printed in oopses. To begin with add ppc_md.name, aka the "machine

[PATCH v2 2/6] powerpc: Add PVR & CPU name to hardware description

2022-09-29 Thread Michael Ellerman
Add the PVR and CPU name to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: ... cpu:'POWER8E (raw)' pvr:0x4b0201 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v2 6/6] powerpc/pseries: Add firmware details to the hardware description

2022-09-29 Thread Michael Ellerman
Add firmware version details to the hardware description, which is printed at boot and in case of an oops. Use /hypervisor if we find it, though currently it only exists if we're running under qemu. Look for "ibm,powervm-partition" which is specified in PAPR+ v2.11 and tells us we're running

[PATCH v2 3/6] powerpc/64: Add logical PVR to the hardware description

2022-09-29 Thread Michael Ellerman
If we detect a logical PVR add that to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: ... lpvr:0xf04 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 4/6] powerpc: Add device-tree model to the hardware description

2022-09-29 Thread Michael Ellerman
Add the model of the machine we're on to the hardware description, which is printed at boot and in case of an oops. eg: Hardware name: model:'IBM,8247-22L' Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

Re: [PATCH] tools/perf: Fix aggr_printout to display cpu field irrespective of core value

2022-09-29 Thread James Clark
On 29/09/2022 09:49, Athira Rajeev wrote: > > >> On 28-Sep-2022, at 9:05 PM, James Clark wrote: >> >> >> > > Hi James, > > Thanks for looking at the patch and sharing review comments. > >> On 13/09/2022 12:57, Athira Rajeev wrote: >>> perf stat includes option to specify aggr_mode to

Re: [PATCH v2 39/44] cpuidle,clk: Remove trace_.*_rcuidle()

2022-09-29 Thread Stephen Boyd
Quoting Peter Zijlstra (2022-09-19 03:00:18) > OMAP was the one and only user. > > Signed-off-by: Peter Zijlstra (Intel) > --- Acked-by: Stephen Boyd

Re: [RFC PATCH RESEND 00/28] per-VMA locks proposal

2022-09-29 Thread Vlastimil Babka
On 9/28/22 04:28, Suren Baghdasaryan wrote: > On Sun, Sep 11, 2022 at 2:35 AM Vlastimil Babka wrote: >> >> On 9/2/22 01:26, Suren Baghdasaryan wrote: >> > >> >> >> >> Two complaints so far: >> >> - I don't like the vma_mark_locked() name. To me it says that the caller >> >>already took or is

linux-next: manual merge of the powerpc tree with the kbuild tree

2022-09-29 Thread broonie
Hi all, Today's linux-next merge of the powerpc tree got conflicts in: arch/powerpc/Makefile arch/powerpc/kernel/Makefile between commits: 4f62512adbe9a ("kbuild: use obj-y instead extra-y for objects placed at the head") 0f17eda6118db ("kbuild: remove head-y syntax") from the kbuild

[PATCH] powerpc: update config files

2022-09-29 Thread Lukas Bulwahn
Clean up config files by: - removing configs that were deleted in the past - removing configs not in tree and without recently pending patches - adding new configs that are replacements for old configs in the file For some detailed information, see Link. Link:

Re: [PATCH] tools/perf: Fix aggr_printout to display cpu field irrespective of core value

2022-09-29 Thread Athira Rajeev
> On 28-Sep-2022, at 9:05 PM, James Clark wrote: > > > Hi James, Thanks for looking at the patch and sharing review comments. > On 13/09/2022 12:57, Athira Rajeev wrote: >> perf stat includes option to specify aggr_mode to display >> per-socket, per-core, per-die, per-node counter

Re: [powerpc] Build failure include/linux/compiler_types.h __alloc_size__ (next-20220928)

2022-09-29 Thread Kees Cook
On Thu, Sep 29, 2022 at 11:49:28AM +0530, Sachin Sant wrote: > Linux-next 6.0.0-rc7-next-20220928 fails to build on powerpc with > following error: > > make -j 17 -s && make modules_install && make install > In file included from : > ./include/linux/percpu.h: In function