[PATCH] powerpc/cell/axon_msi: Fix refcount leak in setup_msi_msg_address

2022-06-04 Thread Miaoqian Lin
of_get_next_parent() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() in the error path to avoid refcount leak. Fixes: ce21b3c9648a ("[CELL] add support for MSI on Axon-based Cell systems") Signed-off-by: Miaoqian

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

2022-06-04 Thread Stafford Horne
On Fri, Jun 03, 2022 at 03:44:11PM +0530, Anshuman Khandual wrote: > 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:

[PATCH] cxl: Fix refcount leak in cxl_calc_capp_routing

2022-06-04 Thread Miaoqian Lin
of_get_next_parent() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. This function only calls of_node_put() in normal path, missing it in the error path. Add missing of_node_put() to avoid refcount leak. Fixes: f24be42aab37 ("cxl: Add psl9

[PATCH] powerpc/xive: Fix refcount leak in xive_get_max_prio

2022-06-04 Thread Miaoqian Lin
of_find_node_by_path() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controller") Signed-off-by: Miaoqian Lin --- arch/

Re: [PATCH] powerpc: get rid of #include

2022-06-04 Thread Scott Wood
On Sat, 2022-06-04 at 17:50 +0900, Masahiro Yamada wrote: > You cannot include here because it is generated > in init/Makefile but there is no guarantee that it happens before > arch/powerpc/mm/nohash/kaslr_booke.c is compiled for parallel builds. > > The places where you can reliably include ar

Re: [PATCH v1] kernel/reboot: Change registration order of legacy power-off handler

2022-06-04 Thread Michael Ellerman
Dmitry Osipenko writes: > We're unconditionally registering sys-off handler for the legacy > pm_power_off() callback, this causes problem for platforms that don't > use power-off handlers at all and should be halted. Now reboot syscall > assumes that there is a power-off handler installed and trie

Re: [FSL P50x0] Keyboard and mouse don't work anymore after the devicetree updates for 5.19

2022-06-04 Thread Christian Zigotzky
On 27 May 2022 at 03:40 pm, Darren Stevens wrote: > Hi Christian, > > Can you send me the full dmesg output from this failed boot? I looked but can't seem to find which component is at fault here > > Thanks > Darren On 01 June 2022 at 02:35 pm, Rob Herring wrote: On Tue, May 31, 2022 at 06:29:

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

2022-06-04 Thread Guo Ren
Acked-by: Guo Ren On Fri, Jun 3, 2022 at 6:15 PM Anshuman Khandual wrote: > > 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 U

[PATCH] powerpc: get rid of #include

2022-06-04 Thread Masahiro Yamada
You cannot include here because it is generated in init/Makefile but there is no guarantee that it happens before arch/powerpc/mm/nohash/kaslr_booke.c is compiled for parallel builds. The places where you can reliably include are: - init/ (because init/Makefile can specify the depend