[PATCH v2] powerpc/mm: Use is_vmalloc_addr to validate addr

2022-07-04 Thread Aneesh Kumar K.V
Instead of high_memory use is_vmalloc_addr to validate that the address is not in the vmalloc range. Cc: Kefeng Wang Cc: Christophe Leroy Signed-off-by: Aneesh Kumar K.V - --- arch/powerpc/include/asm/page.h | 10 -- arch/powerpc/mm/mem.c | 11 +++ 2 files changed,

Re: [PATCH v2] powerpc/mm: Use is_vmalloc_addr to validate addr

2022-07-04 Thread Christophe Leroy
Le 04/07/2022 à 08:39, Aneesh Kumar K.V a écrit : > Instead of high_memory use is_vmalloc_addr to validate that the address is > not in the vmalloc range. Do we really need even more extra checks, and a function that is not inlined anymore ? virt_addr_valid() used to be pretty simple. Some

[PATCH v2] mm/add_pages: Move Kconfig variable to mm/Kconfig

2022-07-04 Thread Aneesh Kumar K.V
No functional change in this patch. This was done so that the previous change (commit ac790d09885d ("powerpc/memhotplug: Add add_pages override for PPC")) can be easily backported. Cc: Michal Hocko Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/Kconfig | 5 + arch/x86/Kconfig | 5

[PATCH v2] powerpc/mm: Update max/min_low_pfn in the same function

2022-07-04 Thread Aneesh Kumar K.V
For both CONFIG_NUMA enabled/disabled use mem_topology_setup to update max/min_low_pfn. This also add min_low_pfn update to CONFIG_NUMA which was initialized to zero before. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/numa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Michael Ellerman
On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: >> gcc e500 compiler does not support -mcpu=powerpc option. When it is >> specified then gcc throws compile error: >> >> gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ >>

Re: [PATCH] soc: fsl: guts: fix IS_ERR() vs NULL bug

2022-07-04 Thread Michael Walle
Am 2022-07-04 12:55, schrieb Dan Carpenter: The of_iomap() function returns NULL on failure, it never returns error pointers. Fixes: ab4988d6a393 ("soc: fsl: guts: embed fsl_guts_get_svr() in probe()") Signed-off-by: Dan Carpenter --- drivers/soc/fsl/guts.c | 4 ++-- 1 file changed, 2

Re: [PATCH v1 1/6] powerpc/64e: Fix early TLB miss with KUAP

2022-07-04 Thread Michael Ellerman
On Tue, 28 Jun 2022 16:48:54 +0200, Christophe Leroy wrote: > With KUAP, the TLB miss handler bails out when an access to user > memory is performed with a nul TID. > > But the normal TLB miss routine which is only used early during boot > does the check regardless for all memory areas, not only

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

2022-07-04 Thread Michael Ellerman
On Fri, 3 Jun 2022 15:08:14 +0200, Christophe Leroy wrote: > 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

Re: [PATCH v2 1/3] powerpc/irq: Make __do_irq() static

2022-07-04 Thread Michael Ellerman
On Thu, 9 Jun 2022 12:16:40 +0200, Christophe Leroy wrote: > Since commit 48cf12d88969 ("powerpc/irq: Inline call_do_irq() and > call_do_softirq()"), __do_irq() is not used outside irq.c > > Reorder functions and make __do_irq() static and > drop the declaration in irq.h. > > > [...] Applied

Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

2022-07-04 Thread Peter Zijlstra
On Wed, Jun 29, 2022 at 06:30:23PM +, Christophe Leroy wrote: > The problem is that that function has size 0: > > 03d0 l F .text > qdisc_root_sleeping_lock.part.0 I'm somewhat confused; how is an empty STT_FUNC a valid construct on Power?

Re: [PATCH v2] powerpc/mm: Use is_vmalloc_addr to validate addr

2022-07-04 Thread Aneesh Kumar K V
On 7/4/22 12:43 PM, Christophe Leroy wrote: > > > Le 04/07/2022 à 08:39, Aneesh Kumar K.V a écrit : >> Instead of high_memory use is_vmalloc_addr to validate that the address is >> not in the vmalloc range. > > > Do we really need even more extra checks, and a function that is not > inlined

Re: [PATCH v2] powerpc/mm: Use is_vmalloc_addr to validate addr

2022-07-04 Thread Christophe Leroy
Le 04/07/2022 à 09:45, Aneesh Kumar K V a écrit : > On 7/4/22 12:43 PM, Christophe Leroy wrote: >> >> >> Le 04/07/2022 à 08:39, Aneesh Kumar K.V a écrit : >>> Instead of high_memory use is_vmalloc_addr to validate that the address is >>> not in the vmalloc range. >> >> >> Do we really need even

Re: [PATCH 1/2] powerpc/irq: Don't open code irq_soft_mask helpers

2022-07-04 Thread Michael Ellerman
On Wed, 18 May 2022 10:32:27 +0200, Christophe Leroy wrote: > Use READ_ONCE() and WRITE_ONCE() instead of open coding > read and write of local PACA irq_soft_mask. > > For the write, add a barrier to keep the memory clobber > that was there previously. > > > [...] Applied to powerpc/next.

Re: [PATCH] powerpc/papr_scm: use dev_get_drvdata

2022-07-04 Thread Michael Ellerman
On Tue, 31 May 2022 17:19:50 +0800, Haowen Bai wrote: > Eliminate direct accesses to the driver_data field. > > Applied to powerpc/next. [1/1] powerpc/papr_scm: use dev_get_drvdata https://git.kernel.org/powerpc/c/d9abe36df74976231baa5abc4d399d11b504ace2 cheers

Re: [PATCH 1/2] powerpc/irq: Split irq.c

2022-07-04 Thread Michael Ellerman
On Wed, 18 May 2022 09:40:15 +0200, Christophe Leroy wrote: > More than half of irq.c is dedicated to PPC64. > > Move PPC64 code out of irq.c into irq_64.c > > Applied to powerpc/next. [1/2] powerpc/irq: Split irq.c

Re: [PATCH v2] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-07-04 Thread Michael Ellerman
On Fri, 24 Jun 2022 10:55:50 +0200, Pali Rohár wrote: > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > PowerPC Freescale P2020 CPU and are based on Freescale P2020RDB-PC-A board. > Hardware design is fully open source, all firmware and hardware design > files are

Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

2022-07-04 Thread Peter Zijlstra
On Thu, Jun 30, 2022 at 04:07:47PM +0530, Naveen N. Rao wrote: > Objtool classifies 'ud2' as INSN_BUG, and 'int3' as INSN_TRAP. In x86 BUG(), Yes, ud2 is the traditional 'kill' instruction and a number of emulators treat it as such, however it also being the shortest encoding (2 bytes) for #UD

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

2022-07-04 Thread Michael Ellerman
On Tue, 31 May 2022 16:59:36 +1000, Michael Ellerman wrote: > The ppc_inst_as_str() macro tries to make printing variable length, > aka "prefixed", instructions convenient. It mostly succeeds, but it does > hide an on-stack buffer, which triggers stack protector. > > More problematically it

Re: [PATCH] selftests/powerpc: Add missing files to .gitignores

2022-07-04 Thread Michael Ellerman
On Thu, 16 Jun 2022 17:07:05 +1000, Michael Ellerman wrote: > These were missed when the respective tests were added, add them now. > > Applied to powerpc/next. [1/1] selftests/powerpc: Add missing files to .gitignores

Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

2022-07-04 Thread Peter Zijlstra
On Thu, Jun 30, 2022 at 10:58:11AM -0500, Segher Boessenkool wrote: > On Thu, Jun 30, 2022 at 04:07:47PM +0530, Naveen N. Rao wrote: > > Objtool classifies 'ud2' as INSN_BUG, and 'int3' as INSN_TRAP. In x86 > > BUG(), there is no need for an annotation since objtool assumes that > > 'ud2'

Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

2022-07-04 Thread Peter Zijlstra
On Sat, Jun 25, 2022 at 06:46:54AM +, Christophe Leroy wrote: > > > Le 24/06/2022 à 20:32, Sathvika Vasireddy a écrit : > > objtool is throwing *unannotated intra-function call* > > warnings with a few instructions that are marked > > unreachable. Remove unreachable() from WARN_ON() > > to

Re: [PATCH 1/3] powerpc/32: Remove the 'nobats' kernel parameter

2022-07-04 Thread Michael Ellerman
On Tue, 14 Jun 2022 12:32:23 +0200, Christophe Leroy wrote: > Mapping without BATs doesn't bring any added value to the user. > > Remove that option. > > Applied to powerpc/next. [1/3] powerpc/32: Remove the 'nobats' kernel parameter

Re: [PATCH] powerpc/64e: Rewrite p4d_populate() as a static inline function

2022-07-04 Thread Michael Ellerman
On Thu, 23 Jun 2022 10:56:57 +0200, Christophe Leroy wrote: > Rewrite p4d_populate() as a static inline function instead of > a macro. > > This change allows typechecking and would have helped detecting > a recently found bug in map_kernel_page(). > > > [...] Applied to powerpc/next. [1/1]

Re: [PATCH] powerpc/irq: remove inline assembly in hard_irq_disable macro

2022-07-04 Thread Michael Ellerman
On Wed, 18 May 2022 10:48:55 +0200, Christophe Leroy wrote: > Use WRITE_ONCE() instead of opencoding the saving of current > stack pointeur. > > Applied to powerpc/next. [1/1] powerpc/irq: remove inline assembly in hard_irq_disable macro

Re: [PATCH] powerpc/powernv: delay rng of node creation until later in boot

2022-07-04 Thread Michael Ellerman
On Thu, 30 Jun 2022 14:16:54 +0200, Jason A. Donenfeld wrote: > The of node for the rng must be created much later in boot. Otherwise it > tries to connect to a parent that doesn't yet exist, resulting on this > splat: > > [0.000478] kobject: '(null)' ((ptrval)): is not initialized,

[PATCH] soc: fsl: guts: fix IS_ERR() vs NULL bug

2022-07-04 Thread Dan Carpenter
The of_iomap() function returns NULL on failure, it never returns error pointers. Fixes: ab4988d6a393 ("soc: fsl: guts: embed fsl_guts_get_svr() in probe()") Signed-off-by: Dan Carpenter --- drivers/soc/fsl/guts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] powerpc: Remove _PAGE_SAO stub for book3e/64

2022-07-04 Thread Michael Ellerman
On Mon, 20 Jun 2022 08:21:22 +0200, Christophe Leroy wrote: > Since commit 634093c59a12 ("powerpc/mm: enable > ARCH_HAS_VM_GET_PAGE_PROT"), _PAGE_SAO is used only in > arch/powerpc/mm/book3s64/pgtable.c > > The _PAGE_SAO stub defined as 0 for book3e/64 can be removed. > > > [...] Applied to

Re: [PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E

2022-07-04 Thread Michael Ellerman
On Tue, 28 Jun 2022 16:43:35 +0200, Christophe Leroy wrote: > On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one > for supervisor. As soon as one of the two bits is set, the page has > to be display as RW. But the way it is implemented today requires both > bits to be set in

Re: [PATCH] powerpc: Restore CONFIG_DEBUG_INFO in defconfigs

2022-07-04 Thread Michael Ellerman
On Sat, 11 Jun 2022 08:51:57 +0200, Christophe Leroy wrote: > Commit f9b3cd245784 ("Kconfig.debug: make DEBUG_INFO selectable from a > choice") broke the selection of CONFIG_DEBUG_INFO by powerpc defconfigs. > > It is now necessary to select one of the three DEBUG_INFO_DWARF* > options to get

Re: [PATCH v1 1/2] powerpc: Include asm/firmware.h in all users of firmware_has_feature()

2022-07-04 Thread Michael Ellerman
On Fri, 6 May 2022 11:14:24 +0200, Christophe Leroy wrote: > Trying to remove asm/ppc_asm.h from all places that don't need it > leads to several failures linked to firmware_has_feature(). > > To fix it, include asm/firmware.h in all files using > firmware_has_feature() > > All users found with:

Re: [PATCH] powerpc/perf: Update MMCR2 to support event exclude_idle

2022-07-04 Thread Michael Ellerman
On Thu, 29 Apr 2021 10:32:08 +0530, Madhavan Srinivasan wrote: > struct perf_event_attr supports exclude counting of idle task. > This is sent to kernel via perf_event_attr.exclude_idle and > in perf tool, user can use ":I" event modifier to enable this > for specific event. > > Monitor Mode

Re: [PATCH 0/2] powerpc: Kconfig cleanups

2022-07-04 Thread Michael Ellerman
On Thu, 26 May 2022 08:57:35 +0200, Juerg Haefliger wrote: > Replace some stray tabs with whitespaces and remove an extra empty > line. > > Juerg Haefliger (2): > powerpc: Kconfig: Replace tabs with whitespaces > powerpc: Kconfig.debug: Remove extra empty line > > [...] Applied to

Re: [PATCH v2 0/5] Atomics support for eBPF on powerpc

2022-07-04 Thread Michael Ellerman
On Fri, 10 Jun 2022 21:25:47 +0530, Hari Bathini wrote: > This patchset adds atomic operations to the eBPF instruction set on > powerpc. The instructions that are added here can be summarised with > this list of kernel operations for ppc64: > > * atomic[64]_[fetch_]add > * atomic[64]_[fetch_]and

Re: [PATCH v2] powerpc/64s: Don't read H_BLOCK_REMOVE characteristics in radix mode

2022-07-04 Thread Michael Ellerman
On Mon, 23 May 2022 18:43:53 +0200, Laurent Dufour wrote: > There is no need to read the H_BLOCK_REMOVE characteristics when running in > Radix mode because this hcall is never called. > > Furthermore since the commit 387e220a2e5e ("powerpc/64s: Move hash MMU > support code under

Re: [PATCH] powerpc/powernv: Kconfig: Replace single quotes

2022-07-04 Thread Michael Ellerman
On Fri, 20 May 2022 13:52:29 +0200, Juerg Haefliger wrote: > Replace single quotes with double quotes which seems to be the convention > for strings. > > Applied to powerpc/next. [1/1] powerpc/powernv: Kconfig: Replace single quotes

[PATCH] soc: fsl: qbman: Fix missing of_node_put() in qbman_init_private_mem()

2022-07-04 Thread Liang He
We should call of_node_put() for the reference returned by of_parse_phandle() which will increase the refcount. Fixes: 42d0349784c7 ("soc/fsl/qbman: Add common routine for QBMan private allocations") Co-authored-by: Miaoqian Lin Signed-off-by: Liang He --- drivers/soc/fsl/qbman/dpaa_sys.c |

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > >> gcc e500 compiler does not support -mcpu=powerpc option. When it is > >> specified then gcc throws compile error: > >> > >>

Re: [RFC PATCH v3 07/12] objtool: Use macros to define arch specific reloc types

2022-07-04 Thread Peter Zijlstra
On Sat, Jun 25, 2022 at 12:02:33AM +0530, Sathvika Vasireddy wrote: > Make relocation types architecture specific. > > Signed-off-by: Sathvika Vasireddy > --- > tools/objtool/arch/x86/include/arch/elf.h | 2 ++ > tools/objtool/check.c | 2 +- > 2 files changed, 3

Re: [PATCH] powerpc/powernv: delay rng of node creation until later in boot

2022-07-04 Thread Michael Ellerman
On 2 July 2022 8:42:06 pm AEST, "Jason A. Donenfeld" wrote: >Hi Benjamin, Paul, > >On Thu, Jun 30, 2022 at 07:24:05PM +0530, Sachin Sant wrote: >> > On 30-Jun-2022, at 5:46 PM, Jason A. Donenfeld wrote: >> > >> > The of node for the rng must be created much later in boot. Otherwise it >> >

Re: [PATCH kernel] powerpc/pseries/iommu: Print ibm,query-pe-dma-windows parameters

2022-07-04 Thread Michael Ellerman
On Wed, 1 Jun 2022 14:01:17 +1000, Alexey Kardashevskiy wrote: > PowerVM has a stricter policy about allocating TCEs for LPARs and > often there is not enough TCEs for 1:1 mapping, this adds the supported > numbers into dev_info() to help analyzing bugreports. > > Applied to powerpc/next.

Re: [PATCH] powerpc/perf: Optimize clearing the pending PMI and remove WARN_ON for PMI check in power_pmu_disable

2022-07-04 Thread Michael Ellerman
On Sun, 22 May 2022 19:52:56 +0530, Athira Rajeev wrote: > commit 2c9ac51b850d ("powerpc/perf: Fix PMU callbacks to clear > pending PMI before resetting an overflown PMC") added a new > function "pmi_irq_pending" in hw_irq.h. This function is to check > if there is a PMI marked as pending in Paca

Re: [PATCH V3 00/35] Add group constraints and event code test as part of selftest

2022-07-04 Thread Michael Ellerman
On Fri, 10 Jun 2022 19:10:38 +0530, Athira Rajeev wrote: > Patch series extends the perf interface selftests > to cover scenarios for event code checking, > group constraints, and also thresholding/branch related > interface tests in sampling area. > > In this series, patches 1 to 14 adds

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Arnd Bergmann
On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > > >> gcc e500 compiler does not support -mcpu=powerpc option. When it is >

Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

2022-07-04 Thread Peter Zijlstra
On Mon, Jul 04, 2022 at 12:44:30PM +, Christophe Leroy wrote: > > > Le 04/07/2022 à 14:05, Peter Zijlstra a écrit : > > On Sat, Jun 25, 2022 at 06:46:54AM +, Christophe Leroy wrote: > >> > >> > >> Le 24/06/2022 à 20:32, Sathvika Vasireddy a écrit : > >>> objtool is throwing *unannotated

Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

2022-07-04 Thread Christophe Leroy
Le 04/07/2022 à 14:05, Peter Zijlstra a écrit : > On Sat, Jun 25, 2022 at 06:46:54AM +, Christophe Leroy wrote: >> >> >> Le 24/06/2022 à 20:32, Sathvika Vasireddy a écrit : >>> objtool is throwing *unannotated intra-function call* >>> warnings with a few instructions that are marked >>>

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > > > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > > > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > > > >> gcc

Re: [RFC PATCH v3 07/12] objtool: Use macros to define arch specific reloc types

2022-07-04 Thread Christophe Leroy
Le 04/07/2022 à 13:14, Peter Zijlstra a écrit : > On Sat, Jun 25, 2022 at 12:02:33AM +0530, Sathvika Vasireddy wrote: >> Make relocation types architecture specific. >> >> Signed-off-by: Sathvika Vasireddy >> --- >> tools/objtool/arch/x86/include/arch/elf.h | 2 ++ >> tools/objtool/check.c

Re: [RFC PATCH v3 07/12] objtool: Use macros to define arch specific reloc types

2022-07-04 Thread Peter Zijlstra
On Mon, Jul 04, 2022 at 03:53:50PM +, Christophe Leroy wrote: > > > Le 04/07/2022 à 13:14, Peter Zijlstra a écrit : > > On Sat, Jun 25, 2022 at 12:02:33AM +0530, Sathvika Vasireddy wrote: > >> Make relocation types architecture specific. > >> > >> Signed-off-by: Sathvika Vasireddy > >> ---

Re: [RFC PATCH v3 11/12] powerpc: Remove unreachable() from WARN_ON()

2022-07-04 Thread Christophe Leroy
Le 04/07/2022 à 13:45, Peter Zijlstra a écrit : > On Wed, Jun 29, 2022 at 06:30:23PM +, Christophe Leroy wrote: > > >> The problem is that that function has size 0: >> >> 03d0 l F .text >> qdisc_root_sleeping_lock.part.0 > > I'm somewhat confused;

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Arnd Bergmann
On Mon, Jul 4, 2022 at 3:13 PM Pali Rohár wrote: > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > CFLAGS_CPU-$(CONFIG_PPC_BOOK3S_32) := -mcpu=powerpc > > CFLAGS_CPU-$(CONFIG_PPC_85xx) := -mcpu=8540 > > CFLAGS_CPU-$(CONFIG_PPC8xx) := -mcpu=860 > > CFLAGS_CPU-$(CONFIG_PPC44x) :=

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 15:22:03 Arnd Bergmann wrote: > On Mon, Jul 4, 2022 at 3:13 PM Pali Rohár wrote: > > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > > > CFLAGS_CPU-$(CONFIG_PPC_BOOK3S_32) := -mcpu=powerpc > > > CFLAGS_CPU-$(CONFIG_PPC_85xx) := -mcpu=8540 > > >

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Arnd Bergmann
On Mon, Jul 4, 2022 at 3:29 PM Pali Rohár wrote: > > And still what to do with 4bf4f42a2feb ("powerpc/kbuild: Set default > generic machine type for 32-bit compile")? I'm somehow lost there... As far as I can tell, that is not needed, as long as every configuration sets a specific -mcpu= option,

[PATCH] powerpc: fsl: gtm: Remove of_node_get() in fsl_gtm_init()

2022-07-04 Thread Liang He
for_each_compatible_node() will automaitically increase and decrease the refcount of the device_node object. There is no need to call additional of_node_get(). It is better to keep the original meaning of refcounting as there is no any new reference created. Signed-off-by: Liang He --- I do not

[PATCH] powerpc: sysdev: fsl_msi: Add missing of_node_put() for of_parse_phandle()

2022-07-04 Thread Liang He
In fsl_setup_msi_irqs(), we should use of_node_put() for the refernece 'np' returned by of_parse_phandle() which increases the refcount. Fixes: 895d603f945ba ("powerpc/fsl_msi: add support for the fsl, msi property in PCI nodes") Co-authored-by: Miaoqian Lin Signed-off-by: Liang He --- There

[Bug 213733] Kernel NULL pointer dereference on read (Oops: Kernel access of bad area, sig: 7 [#1]) at systemctl poweroff

2022-07-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213733 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED

[powerpc:fixes-test] BUILD SUCCESS 887502826549caa7e4215fd9e628f48f14c0825a

2022-07-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test branch HEAD: 887502826549caa7e4215fd9e628f48f14c0825a powerpc/powernv: delay rng platform device creation until later in boot elapsed time: 753m configs tested: 83 configs skipped: 101 The following

[powerpc:merge] BUILD SUCCESS 2de1dc71f21dda721fe9a4608d417aa9006ed92b

2022-07-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git merge branch HEAD: 2de1dc71f21dda721fe9a4608d417aa9006ed92b Automatic merge of 'next' into merge (2022-07-04 21:48) elapsed time: 752m configs tested: 52 configs skipped: 2 The following configs have been built

Re: [PATCH -next 1/2] soc: fsl: guts: fix return value check in fsl_guts_init()

2022-07-04 Thread Shawn Guo
On Tue, Jun 28, 2022 at 10:02:48PM +0800, Yang Yingliang wrote: > In case of error, of_iomap() returns NULL pointer not ERR_PTR(). > The IS_ERR() test in the return value check should be replaced > with NULL test and return -ENOMEM as error value. > > Fixes: ab4988d6a393 ("soc: fsl: guts: embed

[powerpc:next-test] BUILD SUCCESS 054994d9eef39921bcb8924ca15913174fe37f8a

2022-07-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test branch HEAD: 054994d9eef39921bcb8924ca15913174fe37f8a Merge branch 'topic/ppc-kvm' into next-test elapsed time: 752m configs tested: 92 configs skipped: 3 The following configs have been built

[linux-next:master] BUILD REGRESSION b6f1f2fa2bddd69ff46a190b8120bd440fd50563

2022-07-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: b6f1f2fa2bddd69ff46a190b8120bd440fd50563 Add linux-next specific files for 20220704 Error/Warning: (recently discovered and may have been fixed) drivers/pci/endpoint/functions/pci-epf-vntb.c