Re: [PATCH v6 3/9] powerpc/pseries: Add papr-hvpipe char driver for HVPIPE interfaces

2025-09-08 Thread kernel test robot
Hi Haren, kernel test robot noticed the following build warnings: [auto build test WARNING on powerpc/next] [also build test WARNING on powerpc/fixes linus/master v6.17-rc5 next-20250908] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH RFC] powerpc: Panic on jump label code patching failure

2025-09-08 Thread IBM
Christophe Leroy writes: > Le 06/09/2025 à 05:52, Ritesh Harjani a écrit : >> [Vous ne recevez pas souvent de courriers de rite...@linux.ibm.com. >> Découvrez pourquoi ceci est important à >> https://aka.ms/LearnAboutSenderIdentification ] >> >> Andrew Donnellan writes: >> >>> If patch_branc

[PATCH v2 0/7] Nesting support for lazy MMU mode

2025-09-08 Thread Kevin Brodsky
When the lazy MMU mode was introduced eons ago, it wasn't made clear whether such a sequence was legal: arch_enter_lazy_mmu_mode() ... arch_enter_lazy_mmu_mode() ... arch_leave_lazy_mmu_mode() ... arch_leave_lazy_mmu_m

[RFC V2 8/8] powerpc: Enable Generic Entry/Exit for syscalls.

2025-09-08 Thread Mukesh Kumar Chaurasiya
Enable the syscall entry and exit path from generic framework. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/Kconfig| 1 + arch/powerpc/include/asm/entry-common.h | 2 +- arch/powerpc/kernel/interrupt.c | 135 +++ arch/powerpc/kernel/

[RFC V2 4/8] powerpc: Introduce syscall exit arch functions

2025-09-08 Thread Mukesh Kumar Chaurasiya
Introducing following functions for syscall exit - arch_exit_to_user_mode_work - arch_exit_to_user_mode_work_prepare Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/include/asm/entry-common.h | 46 ++ arch/powerpc/include/asm/interrupt.h| 82 + a

[RFC V2 3/8] powerpc: introduce arch_enter_from_user_mode

2025-09-08 Thread Mukesh Kumar Chaurasiya
- Implement the hook arch_enter_from_user_mode for syscall entry. - Move booke_load_dbcr0 from interrupt.c to interrupt.h No functional change intended. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/include/asm/entry-common.h | 96 + arch/powerpc/include/asm/in

[RFC V2 2/8] powerpc: Prepare to build with generic entry/exit framework

2025-09-08 Thread Mukesh Kumar Chaurasiya
Enabling build with generic entry/exit framework for powerpc architecture requires few necessary steps. Introducing minor infrastructure updates to prepare for future generic framework handling: - Add syscall_work field to struct thread_info for SYSCALL_WORK_* flags. - Provide arch_syscall_is_vds

[RFC V2 0/8] Generic IRQ entry/exit support for powerpc

2025-09-08 Thread Mukesh Kumar Chaurasiya
Adding support for the generic irq entry/exit handling for PowerPC. The goal is to bring PowerPC in line with other architectures that already use the common irq entry infrastructure, reducing duplicated code and making it easier to share future changes in entry/exit paths. This is slightly tested

Re: [PATCH v5 2/6] ACPI: processor: thermal: Use scope-based cleanup helper

2025-09-08 Thread Rafael J. Wysocki
On Fri, Sep 5, 2025 at 3:24 PM Zihuan Zhang wrote: > > Replace the manual cpufreq_cpu_put() with __free(put_cpufreq_policy) > annotation for policy references. This reduces the risk of reference > counting mistakes and aligns the code with the latest kernel style. > > No functional change intended

Re: [PATCH v5 2/6] ACPI: processor: thermal: Use scope-based cleanup helper

2025-09-08 Thread Rafael J. Wysocki
On Mon, Sep 8, 2025 at 11:16 AM Zihuan Zhang wrote: > > > 在 2025/9/6 04:17, Rafael J. Wysocki 写道: > > On Fri, Sep 5, 2025 at 3:24 PM Zihuan Zhang wrote: > >> Replace the manual cpufreq_cpu_put() with __free(put_cpufreq_policy) > >> annotation for policy references. This reduces the risk of refere

Re: [PATCH v2 0/7] Nesting support for lazy MMU mode

2025-09-08 Thread Lorenzo Stoakes
On Mon, Sep 08, 2025 at 08:39:24AM +0100, Kevin Brodsky wrote: > When the lazy MMU mode was introduced eons ago, it wasn't made clear > whether such a sequence was legal: > > arch_enter_lazy_mmu_mode() > ... > arch_enter_lazy_mmu_mode() > ... >

Re: [PATCH v2 12/12] wireguard: kconfig: Simplify crypto kconfig selections

2025-09-08 Thread Eric Biggers
On Mon, Sep 08, 2025 at 06:35:04PM +0200, Jason A. Donenfeld wrote: > Hi Eric, > > Just a small nit -- would you commit this with the subject line all > lower case, like the other wireguard commits? Done. > By the way, I have been reading every single one of your patches. It > didn't seem like i

Re: [PATCH 4/7] x86/xen: support nested lazy_mmu sections (again)

2025-09-08 Thread Kevin Brodsky
On 05/09/2025 17:48, Alexander Gordeev wrote: > On Thu, Sep 04, 2025 at 01:57:33PM +0100, Kevin Brodsky wrote: > ... >> -static void xen_enter_lazy_mmu(void) >> +static lazy_mmu_state_t xen_enter_lazy_mmu(void) >> { >> +if (this_cpu_read(xen_lazy_mode) == XEN_LAZY_MMU) >> +return L

Re: [PATCH 5/7] powerpc/mm: support nested lazy_mmu sections

2025-09-08 Thread Kevin Brodsky
On 05/09/2025 17:52, Alexander Gordeev wrote: > On Thu, Sep 04, 2025 at 01:57:34PM +0100, Kevin Brodsky wrote: > ... >> static inline lazy_mmu_state_t arch_enter_lazy_mmu_mode(void) >> { >> struct ppc64_tlb_batch *batch; >> +int lazy_mmu_nested; >> >> if (radix_enabled()) >>

[PATCH v2 7/7] mm: update lazy_mmu documentation

2025-09-08 Thread Kevin Brodsky
We now support nested lazy_mmu sections on all architectures implementing the API. Update the API comment accordingly. Acked-by: Mike Rapoport (Microsoft) Signed-off-by: Kevin Brodsky --- include/linux/pgtable.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a

Re: [PATCH v4 00/16] dma-mapping: migrate to physical address-based API

2025-09-08 Thread Jason Gunthorpe
On Sun, Sep 07, 2025 at 11:25:09PM +0900, Takashi Sakamoto wrote: > Hi, > > I'm a present maintainer of Linux FireWire subsystem, and recent years > have been working to modernize the subsystem. > > On Fri, Sep 05, 2025 at 14:43:24PM -0300, Jason Gunthorpe wrote: > > There is only one user I foun

Re: [PATCH v2 1/7] mm: remove arch_flush_lazy_mmu_mode()

2025-09-08 Thread Yeoreum Yun
Reviewed-by: Yeoreum Yun On Mon, Sep 08, 2025 at 08:39:25AM +0100, Kevin Brodsky wrote: > This function has only ever been used in arch/x86, so there is no > need for other architectures to implement it. Remove it from > linux/pgtable.h and all architectures besides x86. > > The arm64 implementat

Re: [PATCH v2 2/7] mm: introduce local state for lazy_mmu sections

2025-09-08 Thread Yeoreum Yun
Reviewed-by: Yeoreum Yun On Mon, Sep 08, 2025 at 08:39:26AM +0100, Kevin Brodsky wrote: > arch_{enter,leave}_lazy_mmu_mode() currently have a stateless API > (taking and returning no value). This is proving problematic in > situations where leave() needs to restore some context back to its > orig

[PATCH v2 2/7] mm: introduce local state for lazy_mmu sections

2025-09-08 Thread Kevin Brodsky
arch_{enter,leave}_lazy_mmu_mode() currently have a stateless API (taking and returning no value). This is proving problematic in situations where leave() needs to restore some context back to its original state (before enter() was called). In particular, this makes it difficult to support the nest

Re: [PATCH v2 7/7] mm: update lazy_mmu documentation

2025-09-08 Thread Yeoreum Yun
Reviewed-by: Yeoreum Yun On Mon, Sep 08, 2025 at 08:39:31AM +0100, Kevin Brodsky wrote: > We now support nested lazy_mmu sections on all architectures > implementing the API. Update the API comment accordingly. > > Acked-by: Mike Rapoport (Microsoft) > Signed-off-by: Kevin Brodsky > --- > incl

Re: [PATCH v2 3/7] arm64: mm: fully support nested lazy_mmu sections

2025-09-08 Thread Yeoreum Yun
Reviewed-by: Yeoreum Yun On Mon, Sep 08, 2025 at 08:39:27AM +0100, Kevin Brodsky wrote: > Despite recent efforts to prevent lazy_mmu sections from nesting, it > remains difficult to ensure that it never occurs - and in fact it > does occur on arm64 in certain situations (CONFIG_DEBUG_PAGEALLOC).

Re: [PATCH] powerpc64/modules: fix ool-ftrace-stub vs. livepatch relocation corruption

2025-09-08 Thread Naveen N Rao
On Wed, Sep 03, 2025 at 10:37:39PM -0400, Joe Lawrence wrote: > On Wed, Sep 03, 2025 at 10:29:50PM -0400, Joe Lawrence wrote: > > The powerpc64 module .stubs section holds ppc64_stub_entry[] code > > trampolines that are generated at module load time. These stubs are > > necessary for function call

Re: [PATCH v5 0/6] cpufreq: use __free() for all cpufreq_cpu_get() references

2025-09-08 Thread Borislav Petkov
On Mon, Sep 08, 2025 at 05:12:37PM +0800, Zihuan Zhang wrote: > > From: Documentation/process/submitting-patches.rst > > > > Don't get discouraged - or impatient > > > > > > After you have submitted your change, be patient and wait. Reviewers are > > busy peo

[PATCH v2] powerpc/powernv: Enable cpuidle state detection for POWER11

2025-09-08 Thread Aboorva Devarajan
Extend cpuidle state detection to POWER11 by updating the PVR check. This ensures POWER11 correctly recognizes supported stop states, similar to POWER9 and POWER10. Without Patch: (Power11 - PowerNV systems) CPUidle driver: powernv_idle CPUidle governor: menu analyzing CPU 927: Number of idle st

Re: [PATCH v5 0/6] cpufreq: use __free() for all cpufreq_cpu_get() references

2025-09-08 Thread Zihuan Zhang
在 2025/9/6 01:49, Borislav Petkov 写道: On Fri, Sep 05, 2025 at 09:24:07PM +0800, Zihuan Zhang wrote: This patchset converts all remaining cpufreq users to rely on the __free(put_cpufreq_policy) annotation for policy references, instead of calling cpufreq_cpu_put() manually. Sep 01 Zihuan Zhang

Re: [linux-next20250903] Kernel OOPs at perf_callchain_user

2025-09-08 Thread Athira Rajeev
> On 5 Sep 2025, at 10:14 AM, Venkat Rao Bagalkote > wrote: > > Greetings!!! > > > IBM CI has reported kernel crash, while running perf test case on > next20250903 kernel. > > > Test: > https://github.com/avocado-framework-tests/avocado-misc-tests/blob/master/perf/perf_test.py > > >

[PATCH v2 6/7] sparc/mm: support nested lazy_mmu sections

2025-09-08 Thread Kevin Brodsky
The lazy_mmu API now allows nested sections to be handled by arch code: enter() can return a flag if called inside another lazy_mmu section, so that the matching call to leave() leaves any optimisation enabled. This patch implements that new logic for sparc: if there is an active batch, then enter

[PATCH v2 4/7] x86/xen: support nested lazy_mmu sections (again)

2025-09-08 Thread Kevin Brodsky
Commit 49147beb0ccb ("x86/xen: allow nesting of same lazy mode") originally introduced support for nested lazy sections (LAZY_MMU and LAZY_CPU). It later got reverted by commit c36549ff8d84 as its implementation turned out to be intolerant to preemption. Now that the lazy_mmu API allows enter() to

[PATCH v2 3/7] arm64: mm: fully support nested lazy_mmu sections

2025-09-08 Thread Kevin Brodsky
Despite recent efforts to prevent lazy_mmu sections from nesting, it remains difficult to ensure that it never occurs - and in fact it does occur on arm64 in certain situations (CONFIG_DEBUG_PAGEALLOC). Commit 1ef3095b1405 ("arm64/mm: Permit lazy_mmu_mode to be nested") made nesting tolerable on ar

[PATCH v2 1/7] mm: remove arch_flush_lazy_mmu_mode()

2025-09-08 Thread Kevin Brodsky
This function has only ever been used in arch/x86, so there is no need for other architectures to implement it. Remove it from linux/pgtable.h and all architectures besides x86. The arm64 implementation is not empty but it is only called from arch_leave_lazy_mmu_mode(), so we can simply fold it th