Re: [PATCH -next v2] soc/fsl/qbman: make use of the helper function kthread_run_on_cpu()

2024-11-13 Thread Christophe Leroy
Hi, Le 04/09/2024 à 04:26, Hongbo Li a écrit : Replace kthread_create/kthread_bind/wake_up_process() with kthread_run_on_cpu() to simplify the code. Signed-off-by: Hongbo Li A similar change is proposed as part of a larger series, see patch 7 in that series https://lore.kernel.org/lkml/202

Re: [PATCH] soc: fsl: Add missing of_node_put() after using device_node

2024-11-13 Thread Christophe Leroy
Hi, Le 06/11/2024 à 08:11, Zhang Zekun a écrit : of_find_compatible_node() will increase the refcount of the device_node. Decrease the refcount once finish using it. Fixes: e95f287deed2 ("soc: fsl: handle RCPM errata A-008646 on SoC LS1021A") Signed-off-by: Zhang Zekun Your patch is redundan

Re: [PATCH] soc: fsl: cpm1: tsa: switch to for_each_available_child_of_node_scoped()

2024-11-13 Thread Herve Codina
Hi Javier, On Wed, 02 Oct 2024 22:21:51 +0200 Javier Carrasco wrote: > The non-scoped variant of this macro turns error-prone as soon as error > paths are included, because explicit calls to of_node_put() are required > to avoid leaking memory. > > Using its scoped counterpart simplifies the co

[Bug 214913] [xfstests generic/051] BUG: Kernel NULL pointer dereference on read at 0x00000108 NIP [c0000000000372e4] tm_cgpr_active+0x14/0x40

2024-11-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214913 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|NEEDINFO|CLOSED

Re: [PATCH v2] of: WARN on deprecated #address-cells/#size-cells handling

2024-11-13 Thread Michael Ellerman
Geert Uytterhoeven writes: > On Thu, Nov 7, 2024 at 12:37 PM Michael Ellerman wrote: >> "Rob Herring (Arm)" writes: >> > While OpenFirmware originally allowed walking parent nodes and default >> > root values for #address-cells and #size-cells, FDT has long required >> > explicit values. It's be

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-13 Thread Michael Ellerman
Shrikanth Hegde writes: > Thank you Sebastian for taking a look and rwb tag. > >> On 2024-11-08 15:48:53 [+0530], Shrikanth Hegde wrote: >>> Define preempt lazy bit for Powerpc. Use bit 9 which is free and within >>> 16 bit range of NEED_RESCHED, so compiler can issue single andi. >>> >>> Since Po

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

2024-11-13 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the powerpc tree got a conflict in: > > arch/powerpc/Makefile > > between commit: > > de51342c5157 ("kbuild: add $(objtree)/ prefix to some in-kernel build > artifacts") > > from the kbuild tree and commit: > > bee08a9e6ab0

[PATCH] dt-bindings: Unify "fsl,liodn" type definitions

2024-11-13 Thread Rob Herring (Arm)
The type definition of "fsl,liodn" is defined as uint32 in crypto/fsl,sec-v4.0.yaml and uint32-array in soc/fsl/fsl,bman.yaml, soc/fsl/fsl,qman-portal.yaml, and soc/fsl/fsl,qman.yaml. Unify the type to be uint32-array and constraint the single entry cases. Signed-off-by: Rob Herring (Arm) --- ..

[PATCH v8 5/5] perf: Correct perf sampling with guest VMs

2024-11-13 Thread Colton Lewis
Previously any PMU overflow interrupt that fired while a VCPU was loaded was recorded as a guest event whether it truly was or not. This resulted in nonsense perf recordings that did not honor perf_event_attr.exclude_guest and recorded guest IPs where it should have recorded host IPs. Rework the s

[PATCH v8 4/5] x86: perf: Refactor misc flag assignments

2024-11-13 Thread Colton Lewis
Break the assignment logic for misc flags into their own respective functions to reduce the complexity of the nested logic. Signed-off-by: Colton Lewis Acked-by: Kan Liang Reviewed-by: Oliver Upton --- arch/x86/events/core.c| 59 ++- arch/x86/include/asm

[PATCH v8 3/5] powerpc: perf: Use perf_arch_instruction_pointer()

2024-11-13 Thread Colton Lewis
Make sure powerpc uses the arch-specific function now that those have been reorganized. Signed-off-by: Colton Lewis Acked-by: Madhavan Srinivasan Reviewed-by: Oliver Upton --- arch/powerpc/perf/callchain.c| 2 +- arch/powerpc/perf/callchain_32.c | 2 +- arch/powerpc/perf/callchain_64.c | 2

[PATCH v8 2/5] perf: Hoist perf_instruction_pointer() and perf_misc_flags()

2024-11-13 Thread Colton Lewis
For clarity, rename the arch-specific definitions of these functions to perf_arch_* to denote they are arch-specifc. Define the generic-named functions in one place where they can call the arch-specific ones as needed. Signed-off-by: Colton Lewis Acked-by: Thomas Richter Acked-by: Mark Rutland

[PATCH v8 1/5] arm: perf: Drop unused functions

2024-11-13 Thread Colton Lewis
For arm's implementation, perf_instruction_pointer() and perf_misc_flags() are equivalent to the generic versions in include/linux/perf_event.h so arch/arm doesn't need to provide its own versions. Drop them here. Signed-off-by: Colton Lewis Acked-by: Will Deacon Reviewed-by: Oliver Upton ---

[PATCH v8 0/5] Correct perf sampling with Guest VMs

2024-11-13 Thread Colton Lewis
v8: * Improve patch 4 perf flags refactor * Rebase to v6.12-rc7 v7: https://lore.kernel.org/all/20241107190336.2963882-1-coltonle...@google.com/ v6: https://lore.kernel.org/all/20241105195603.2317483-1-coltonle...@google.com/ v5: https://lore.kernel.org/all/20240920174740.781614-1-coltonle...@go

Re: [PATCH v7 4/5] x86: perf: Refactor misc flag assignments

2024-11-13 Thread Colton Lewis
Colton Lewis writes: Peter Zijlstra writes: On Fri, Nov 08, 2024 at 08:20:44PM +0100, Peter Zijlstra wrote: Isn't the below more or less what you want? static unsigned long misc_flags(struct pt_regs *regs) { unsigned long flags = 0; if (regs->flags & PERF_EFLAGS_EXA

Re: [PATCH v5 0/7] mm/mprotect: Fix dax puds

2024-11-13 Thread David Hildenbrand
On 13.11.24 18:56, Peter Xu wrote: On Wed, Nov 13, 2024 at 05:42:15PM +0100, David Hildenbrand wrote: On 13.11.24 17:39, Peter Xu wrote: On Mon, Nov 11, 2024 at 10:20:59PM +0100, Jann Horn wrote: On Mon, Aug 12, 2024 at 8:12 PM Peter Xu wrote: Dax supports pud pages for a while, but mprotect

Re: [PATCH v7 4/5] x86: perf: Refactor misc flag assignments

2024-11-13 Thread Colton Lewis
Peter Zijlstra writes: On Fri, Nov 08, 2024 at 08:20:44PM +0100, Peter Zijlstra wrote: Isn't the below more or less what you want? static unsigned long misc_flags(struct pt_regs *regs) { unsigned long flags = 0; if (regs->flags & PERF_EFLAGS_EXACT) flags

Re: [PATCH v5 0/7] mm/mprotect: Fix dax puds

2024-11-13 Thread Peter Xu
On Wed, Nov 13, 2024 at 05:42:15PM +0100, David Hildenbrand wrote: > On 13.11.24 17:39, Peter Xu wrote: > > On Mon, Nov 11, 2024 at 10:20:59PM +0100, Jann Horn wrote: > > > On Mon, Aug 12, 2024 at 8:12 PM Peter Xu wrote: > > > > Dax supports pud pages for a while, but mprotect on puds was missing

Re: [PATCH v5 0/7] mm/mprotect: Fix dax puds

2024-11-13 Thread David Hildenbrand
On 13.11.24 17:39, Peter Xu wrote: On Mon, Nov 11, 2024 at 10:20:59PM +0100, Jann Horn wrote: On Mon, Aug 12, 2024 at 8:12 PM Peter Xu wrote: Dax supports pud pages for a while, but mprotect on puds was missing since the start. This series tries to fix that by providing pud handling in mprote

Re: [PATCH v5 0/7] mm/mprotect: Fix dax puds

2024-11-13 Thread Peter Xu
On Mon, Nov 11, 2024 at 10:20:59PM +0100, Jann Horn wrote: > On Mon, Aug 12, 2024 at 8:12 PM Peter Xu wrote: > > Dax supports pud pages for a while, but mprotect on puds was missing since > > the start. This series tries to fix that by providing pud handling in > > mprotect(). The goal is to add

[PATCH v4 -next] cma: Enforce non-zero pageblock_order during cma_init_reserved_mem()

2024-11-13 Thread Ritesh Harjani (IBM)
cma_init_reserved_mem() checks base and size alignment with CMA_MIN_ALIGNMENT_BYTES. However, some users might call this during early boot when pageblock_order is 0. That means if base and size does not have pageblock_order alignment, it can cause functional failures during cma activate area. So l

Re: [PATCH] powerpc/vdso: Remove unused clockmode asm offsets

2024-11-13 Thread Christophe Leroy
DEFINE(VDSO_CLOCKMODE_TIMENS, VDSO_CLOCKMODE_TIMENS); #ifdef CONFIG_BUG DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry)); --- base-commit: 0161bd38c24312853ed5ae9a425a1c41c4ac674a change-id: 20241113-vdso-powerpc-asm-offsets-056016f80174 Best regards,

Re: [PATCHv3 net-next] net: modernize IRQ resource acquisition

2024-11-13 Thread Julian Calaby
Hi Rosen, On Wed, Nov 13, 2024 at 8:14 AM Rosen Penev wrote: > > In probe, np == pdev->dev.of_node. It's easier to pass pdev directly. > > Replace irq_of_parse_and_map() by platform_get_irq() to do so. Requires > removing the error message as well as fixing the return type. > > Replace of_address

Re: [PATCH v2 8/8] powerpc/entry: fix ppc syscall entry issues for common entry

2024-11-13 Thread Luming Yu
On Wed, Nov 13, 2024 at 08:06:04AM +0100, Thomas Gleixner wrote: > On Mon, Nov 11 2024 at 11:19, Luming Yu wrote: > > Due to the common layer and internal calls details are hidden from > > the top level at the call side in ppc arch code, there are some > > difficulties in preserving > > all semanti

[PATCH] powerpc/vdso: Remove unused clockmode asm offsets

2024-11-13 Thread Thomas Weißschuh
ZE, sizeof(struct bug_entry)); --- base-commit: 0161bd38c24312853ed5ae9a425a1c41c4ac674a change-id: 20241113-vdso-powerpc-asm-offsets-056016f80174 Best regards, -- Thomas Weißschuh