ppc64le bzImage and Build_id elf note

2022-06-03 Thread Donald Zickus
Hi Michael, I am working on two packaging issues with Fedora and CKI that I am hoping you can give me some guidance on. 1 - Fedora has always packaged an eu-strip'd vmlinux file for powerpc. The other arches we support used native compressed images. I was looking into using powerpc's zImage

Re: [PATCH] PCI/AER: Iterate over error counters instead of error

2022-06-03 Thread Bjorn Helgaas
On Fri, Jun 03, 2022 at 10:12:47PM +, Mohamed Khalfella wrote: > Is there any chance for this to land in 5.19? Too late for v5.19, since the merge window will end in a couple days. Remind me again if you don't see it in -next by v5.20-rc5 or so. > On 5/10/22 14:17, Mohamed Khalfella wrote: >

[PATCH 00/14] mtd: Fix platform remove callbacks to always return 0

2022-06-03 Thread Uwe Kleine-König
Hello, this series prepares to make platform remove callbacks return void. Therefor first update them to always return 0. The rationale is that the Linux device model doesn't handle failures on remove and if a remove callback returns an error, it just emits a quite generic error message and still

[PATCH 03/14] mtd: powernv_flash: Warn about failure to unregister mtd device

2022-06-03 Thread Uwe Kleine-König
mtd_device_unregister() shouldn't fail. Wail loudly if it does anyhow. This matches how other drivers (e.g. nand/raw/nandsim.c) use mtd_device_unregister(). By returning 0 in the platform remove callback a generic error message by the device core is suppressed, nothing else changes. This is a

Re: [PATCH v2 1/4] of: constify of_property_check_flags() prop argument

2022-06-03 Thread Rob Herring
On Wed, 01 Jun 2022 10:17:58 +0200, Clément Léger wrote: > This argument is not modified and thus can be set as const. > > Signed-off-by: Clément Léger > --- > include/linux/of.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > As this looks independent of the rest of the

Re: [PATCH v2 4/4] powerpc/pseries: use of_property_alloc/free() and of_node_alloc()

2022-06-03 Thread Rob Herring
On Wed, Jun 01, 2022 at 10:18:01AM +0200, Clément Léger wrote: > Use of_property_alloc/free() and of_node_alloc() to create and free > device-tree nodes and properties. > > Signed-off-by: Clément Léger > --- > arch/powerpc/platforms/pseries/dlpar.c| 51 +++ >

[PATCH v2] powerpc/irq: Increase stack_overflow detection limit when KASAN is enabled

2022-06-03 Thread Christophe Leroy
When KASAN is enabled, as shown by the Oops below, the 2k limit is not enough to allow stack dump after a stack overflow detection when CONFIG_DEBUG_STACKOVERFLOW is selected: do_IRQ: stack overflow: 1984 CPU: 0 PID: 126 Comm: systemd-udevd Not tainted 5.18.0-gentoo-PMacG4 #1

Re: [PATCH] powerpc/64: Drop ppc_inst_as_str()

2022-06-03 Thread Segher Boessenkool
Hi! On Fri, Jun 03, 2022 at 03:03:05PM +1000, Jordan Niethe wrote: > On Thu, Jun 2, 2022 at 6:49 PM Segher Boessenkool > wrote: > > On Thu, Jun 02, 2022 at 01:01:04PM +1000, Jordan Niethe wrote: > > > > What about the more fundamental thing? Have the order of the two halves > > > > of a

Re: [PATCH] powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader

2022-06-03 Thread Arnd Bergmann
On Fri, Jun 3, 2022 at 2:15 PM Miaoqian Lin wrote: > > of_find_node_by_path() returns remote device nodepointer with > refcount incremented, we should use of_node_put() on it when done. > Add missing of_node_put() to avoid refcount leak. > > Fixes: 0afacde3df4c ("[POWERPC] spufs: allow isolated

Re: [PATCH 2/6] s390/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-06-03 Thread Christophe Leroy
Le 03/06/2022 à 12:14, Anshuman Khandual a écrit : > This defines and exports a platform specific custom vm_get_page_prot() via > subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX > macros can be dropped which are no longer needed. > > Cc: Heiko Carstens > Cc: Vasily

Re: [PATCH 1/6] mm/mmap: Restrict generic protection_map[] array visibility

2022-06-03 Thread Christophe Leroy
Le 03/06/2022 à 12:14, Anshuman Khandual a écrit : > Restrict generic protection_map[] array visibility only for platforms which > do not enable ARCH_HAS_VM_GET_PAGE_PROT. For other platforms that do define > their own vm_get_page_prot() enabling ARCH_HAS_VM_GET_PAGE_PROT, could have > their

[PATCH v2] powerpc/85xx: Fix reference leak in xes_mpc85xx_setup_arch

2022-06-03 Thread Miaoqian Lin
of_find_node_by_path() returns remote device nodepointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: 3038acf9091f ("powerpc/85xx: Add platform support for X-ES MPC85xx boards") Signed-off-by: Miaoqian Lin ---

[PATCH] powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader

2022-06-03 Thread Miaoqian Lin
of_find_node_by_path() returns remote device nodepointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: 0afacde3df4c ("[POWERPC] spufs: allow isolated mode apps by starting the SPE loader") Signed-off-by: Miaoqian

[PATCH] powerpc/85xx: Fix reference leak in xes_mpc85xx_setup_arch

2022-06-03 Thread Miaoqian Lin
of_find_node_by_path() returns remote device nodepointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: format:3038acf9091f ("powerpc/85xx: Add platform support for X-ES MPC85xx boards") Signed-off-by: Miaoqian Lin

Re: [PATCH 06/10] scsi/ibmvscsi_tgt: Replace work tasklet with threaded irq

2022-06-03 Thread Sebastian Andrzej Siewior
On 2022-05-30 16:15:08 [-0700], Davidlohr Bueso wrote: > diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c > b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c > index eee1a24f7e15..fafadb7158a3 100644 > --- a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c > +++ b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c >

Re: [PATCH 4/4] powerpc/pseries: Implement CONFIG_PARAVIRT_TIME_ACCOUNTING

2022-06-03 Thread shrikanth suresh hegde
On 5/18/22 7:09 PM, Nicholas Piggin wrote: CONFIG_VIRT_CPU_ACCOUNTING_GEN under pseries does not implement stolen time accounting. Implement it with the paravirt time accounting option. Signed-off-by: Nicholas Piggin Tested-by: Shrikanth Hegde Patch fails to compile with

[PATCH 6/6] openrisc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-06-03 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX macros can be dropped which are no longer needed. Cc: Jonas Bonn Cc: openr...@lists.librecores.org Cc: linux-ker...@vger.kernel.org Acked-by:

[PATCH 5/6] nios2/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-06-03 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX macros can be dropped which are no longer needed. Cc: Dinh Nguyen Cc: linux-ker...@vger.kernel.org Acked-by: Dinh Nguyen Signed-off-by: Anshuman

[PATCH 4/6] csky/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-06-03 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX macros can be dropped which are no longer needed. Cc: Geert Uytterhoeven Cc: linux-c...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Acked-by:

[PATCH 3/6] mips/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-06-03 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX macros can be dropped which are no longer needed. Cc: Thomas Bogendoerfer Cc: linux-m...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Acked-by:

[PATCH 2/6] s390/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-06-03 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX macros can be dropped which are no longer needed. Cc: Heiko Carstens Cc: Vasily Gorbik Cc: linux-s...@vger.kernel.org Cc:

[PATCH 1/6] mm/mmap: Restrict generic protection_map[] array visibility

2022-06-03 Thread Anshuman Khandual
Restrict generic protection_map[] array visibility only for platforms which do not enable ARCH_HAS_VM_GET_PAGE_PROT. For other platforms that do define their own vm_get_page_prot() enabling ARCH_HAS_VM_GET_PAGE_PROT, could have their private static protection_map[] still implementing an array look

[PATCH 0/6] mm/mmap: Enable more platforms with ARCH_HAS_VM_GET_PAGE_PROT

2022-06-03 Thread Anshuman Khandual
>From the last discussion [1], some more platforms (s390, mips, csky, nios2, openrisc) were willing to enable ARCH_HAS_VM_GET_PAGE_PROT and also provide custom vm_get_page_prot() via switch case statement implementation without any objection. All those platform specific patches have already been

Re: [PATCH 2/6] powerpc: Provide syscall wrapper

2022-06-03 Thread Arnd Bergmann
On Wed, Jun 1, 2022 at 7:48 AM Rohan McLure wrote: > > Syscall wrapper implemented as per s390, x86, arm64, providing the > option for gprs to be cleared on entry to the kernel, reducing caller > influence influence on speculation within syscall routine. The wrapper > is a macro that emits

Re: [PATCH 0/2] Disabling NMI watchdog during LPM's memory transfer

2022-06-03 Thread Laurent Dufour
On 02/06/2022, 19:58:31, Nathan Lynch wrote: > Laurent Dufour writes: >> When a partition is transferred, once it arrives at the destination node, >> the partition is active but much of its memory must be transferred from the >> start node. >> >> It depends on the activity in the partition, but

Re: [PATCH 2/6] powerpc: Provide syscall wrapper

2022-06-03 Thread Christophe Leroy
Le 03/06/2022 à 09:09, Andrew Donnellan a écrit : > On Fri, 2022-06-03 at 13:24 +1000, Rohan McLure wrote: >> The implementation of ppc_personality can be immediately reworked to >> call ksys_personality, but I can’t do the same for sys_old_select for >> example, which is required to implement

Re: [PATCH 2/6] powerpc: Provide syscall wrapper

2022-06-03 Thread Andrew Donnellan
On Fri, 2022-06-03 at 13:24 +1000, Rohan McLure wrote: > The implementation of ppc_personality can be immediately reworked to > call ksys_personality, but I can’t do the same for sys_old_select for > example, which is required to implement ppc_select. As such we emit > both For ppc_select, I