Re: [PATCH RESEND v2] kexec/crash: no crash update when kexec in progress

2024-09-12 Thread Sourabh Jain
Hello Baoquan, On 11/09/24 19:50, Baoquan He wrote: On 09/11/24 at 04:51pm, Sourabh Jain wrote: The following errors are observed when kexec is done with SMT=off on powerpc. [ 358.458385] Removing IBM Power 842 compression device [ 374.795734] kexec_core: Starting new kernel [ 374.795748] k

[PATCH 1/2] powerpc/entry: convert to common and generic entry

2024-09-12 Thread Luming Yu
From: Yu Luming convert powerpc entry code in syscall and fault to use syscall_work and irqentry_state as well as common calls from generic entry infrastructure. Signed-off-by: Luming Yu --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/hw_irq.h | 5 + arch/po

[PATCH 2/2] powerpc/entry: entry clean up for common entry

2024-09-12 Thread Luming Yu
From: Yu Luming clean up do_syscall_trace_enter/leave and do_seccomp Signed-off-by: Luming Yu --- arch/powerpc/kernel/interrupt.c | 5 - arch/powerpc/kernel/ptrace/ptrace.c | 141 2 files changed, 146 deletions(-) diff --git a/arch/powerpc/kernel/interrupt.

Re: [PATCH RESEND v2] kexec/crash: no crash update when kexec in progress

2024-09-12 Thread Baoquan He
On 09/12/24 at 01:33pm, Sourabh Jain wrote: > Hello Baoquan, > > On 11/09/24 19:50, Baoquan He wrote: > > On 09/11/24 at 04:51pm, Sourabh Jain wrote: > > > The following errors are observed when kexec is done with SMT=off on > > > powerpc. > > > > > > [ 358.458385] Removing IBM Power 842 compres

Re: [PATCH 1/2] powerpc/entry: convert to common and generic entry

2024-09-12 Thread Christophe Leroy
Le 12/09/2024 à 10:24, Luming Yu a écrit : From: Yu Luming convert powerpc entry code in syscall and fault to use syscall_work and irqentry_state as well as common calls from generic entry infrastructure. Could you add more description about the change ? When I look at x86, riscv or s390

Re: [PATCH v3 01/14] mm: pgtable: introduce pte_offset_map_{ro|rw}_nolock()

2024-09-12 Thread Qi Zheng
Hi Muchun, On 2024/9/6 15:20, Muchun Song wrote: On 2024/9/4 16:40, Qi Zheng wrote: Currently, the usage of pte_offset_map_nolock() can be divided into the following two cases: 1) After acquiring PTL, only read-only operations are performed on the PTE     page. In this case, the RCU lock in

Re: [PATCH v3 10/14] mm: page_vma_mapped_walk: map_pte() use pte_offset_map_rw_nolock()

2024-09-12 Thread Qi Zheng
On 2024/9/5 20:07, Muchun Song wrote: On 2024/9/4 16:40, Qi Zheng wrote: In the caller of map_pte(), we may modify the pvmw->pte after acquiring the pvmw->ptl, so convert it to using pte_offset_map_rw_nolock(). At this time, the pte_same() check is not performed after the pvmw->ptl held, s

Re: [PATCH 1/2] powerpc/entry: convert to common and generic entry

2024-09-12 Thread Christophe Leroy
Le 12/09/2024 à 10:24, Luming Yu a écrit : From: Yu Luming convert powerpc entry code in syscall and fault to use syscall_work and irqentry_state as well as common calls from generic entry infrastructure. Signed-off-by: Luming Yu --- arch/powerpc/Kconfig | 1 + arch/po

Re: [PATCH 1/2] powerpc/entry: convert to common and generic entry

2024-09-12 Thread Christophe Leroy
Le 12/09/2024 à 10:24, Luming Yu a écrit : From: Yu Luming convert powerpc entry code in syscall and fault to use syscall_work and irqentry_state as well as common calls from generic entry infrastructure. Signed-off-by: Luming Yu --- arch/powerpc/Kconfig | 1 + arch/po

Re: [PATCH v5 06/30] arm64: context switch POR_EL0 register

2024-09-12 Thread Will Deacon
Hi Dave, On Wed, Sep 11, 2024 at 08:33:54AM -0700, Dave Hansen wrote: > On 9/11/24 08:01, Kevin Brodsky wrote: > > On 22/08/2024 17:10, Joey Gouly wrote: > >> @@ -371,6 +382,9 @@ int copy_thread(struct task_struct *p, const struct > >> kernel_clone_args *args) > >>if (system_supports_

Re: [PATCH RFC v3 1/2] mm: Add personality flag to limit address to 47 bits

2024-09-12 Thread Catalin Marinas
On Wed, Sep 11, 2024 at 11:18:12PM -0700, Charlie Jenkins wrote: > Opting-in to the higher address space is reasonable. However, it is not > my preference, because the purpose of this flag is to ensure that > allocations do not exceed 47-bits, so it is a clearer ABI to have the > applications that

Re: [PATCH v5 3/4] arm64: topology: Support SMT control on ACPI based system

2024-09-12 Thread Morten Rasmussen
On Fri, Sep 06, 2024 at 04:36:30PM +0800, Yicong Yang wrote: > On 2024/9/6 15:06, Morten Rasmussen wrote: > > Hi Yicong, > > > > On Thu, Sep 05, 2024 at 08:02:20PM +0800, Yicong Yang wrote: > >> On 2024/9/5 16:34, Pierre Gondois wrote: > >>> Hello Yicong, > >>> > >>> If a platform has CPUs with: >

Re: [PATCH v2] selftest/powerpc/benchmark: remove requirement libc-dev

2024-09-12 Thread Michael Ellerman
On Mon, 12 Aug 2024 15:11:52 +0530, Madhavan Srinivasan wrote: > Currently exec-target.c file is linked as static and this > post a requirement to install libc dev package to build. > Without it, build-break when compiling selftest/powerpc/benchmark. > > CC exec_target > /usr/bin/ld: canno

Re: [PATCH v3] powerpc/pseries/eeh: Fix pseries_eeh_err_inject

2024-09-12 Thread Michael Ellerman
On Mon, 09 Sep 2024 09:02:20 -0500, Narayana Murty N wrote: > VFIO_EEH_PE_INJECT_ERR ioctl is currently failing on pseries > due to missing implementation of err_inject eeh_ops for pseries. > This patch implements pseries_eeh_err_inject in eeh_ops/pseries > eeh_ops. Implements support for injecting

Re: [PATCH] powerpc: Switch back to struct platform_driver::remove()

2024-09-12 Thread Michael Ellerman
On Mon, 09 Sep 2024 15:09:02 +0200, Uwe Kleine-König wrote: > After commit 0edb555a65d1 ("platform: Make platform_driver::remove() > return void") .remove() is (again) the right callback to implement for > platform drivers. > > Convert all pwm drivers to use .remove(), with the eventual goal to dr

Re: [PATCH 04/12] mm: Allow compound zone device pages

2024-09-12 Thread kernel test robot
: 6f1833b8208c3b9e59eff10792667b6639365146 patch link: https://lore.kernel.org/r/c7026449473790e2844bb82012216c57047c7639.1725941415.git-series.apopple%40nvidia.com patch subject: [PATCH 04/12] mm: Allow compound zone device pages config: csky-defconfig (https://download.01.org/0day-ci/archive/20240912

Re: [PATCH 04/12] mm: Allow compound zone device pages

2024-09-12 Thread kernel test robot
: 6f1833b8208c3b9e59eff10792667b6639365146 patch link: https://lore.kernel.org/r/c7026449473790e2844bb82012216c57047c7639.1725941415.git-series.apopple%40nvidia.com patch subject: [PATCH 04/12] mm: Allow compound zone device pages config: um-allnoconfig (https://download.01.org/0day-ci/archive/20240912

Re: [PATCH v5 06/30] arm64: context switch POR_EL0 register

2024-09-12 Thread Joey Gouly
On Thu, Sep 12, 2024 at 11:50:18AM +0100, Will Deacon wrote: > Hi Dave, > > On Wed, Sep 11, 2024 at 08:33:54AM -0700, Dave Hansen wrote: > > On 9/11/24 08:01, Kevin Brodsky wrote: > > > On 22/08/2024 17:10, Joey Gouly wrote: > > >> @@ -371,6 +382,9 @@ int copy_thread(struct task_struct *p, const s

Re: [PATCH 12/12] mm: Remove devmap related functions and page table bits

2024-09-12 Thread kernel test robot
-ci/archive/20240912/202409122016.5i2hnkru-...@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240912/202409122016.5i2hnkru-...@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not

Re: [PATCH v5 3/4] arm64: topology: Support SMT control on ACPI based system

2024-09-12 Thread Michal Suchánek
Hello, On Thu, Sep 12, 2024 at 01:59:16PM +0200, Morten Rasmussen wrote: > On Fri, Sep 06, 2024 at 04:36:30PM +0800, Yicong Yang wrote: > > On 2024/9/6 15:06, Morten Rasmussen wrote: > > > Hi Yicong, > > > > > > On Thu, Sep 05, 2024 at 08:02:20PM +0800, Yicong Yang wrote: > > >> On 2024/9/5 16:34

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

2024-09-12 Thread Colton Lewis
Sean Christopherson writes: On Wed, Sep 11, 2024, Colton Lewis wrote: 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 a

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

2024-09-12 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 --- arch/arm64/include/asm/perf_event.h

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

2024-09-12 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 --- arch/arm/include/asm/perf_event.h | 7 --- ar

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

2024-09-12 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 --- arch/x86/events/core.c| 31 +++ arch/x86/include/asm/perf_event.h | 2 ++ 2 files changed, 25 inser

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

2024-09-12 Thread Colton Lewis
v3: * Clarify final commit message further * Remove an unused variable in perf_arch_misc_flags() v2: https://lore.kernel.org/kvm/20240911222433.3415301-1-coltonle...@google.com/ v1: https://lore.kernel.org/kvm/20240904204133.1442132-1-coltonle...@google.com/ This series cleans up perf record

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

2024-09-12 Thread Colton Lewis
Make sure powerpc uses the arch-specific function now that those have been reorganized. Signed-off-by: Colton Lewis --- arch/powerpc/perf/callchain.c| 2 +- arch/powerpc/perf/callchain_32.c | 2 +- arch/powerpc/perf/callchain_64.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) dif

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

2024-09-12 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

Re: [PATCH RFC v3 1/2] mm: Add personality flag to limit address to 47 bits

2024-09-12 Thread Charlie Jenkins
On Thu, Sep 12, 2024 at 11:53:49AM +0100, Catalin Marinas wrote: > On Wed, Sep 11, 2024 at 11:18:12PM -0700, Charlie Jenkins wrote: > > Opting-in to the higher address space is reasonable. However, it is not > > my preference, because the purpose of this flag is to ensure that > > allocations do no

[PATCH 1/1] crypto: Fix data mismatch over ipsec tunnel encrypted/decrypted with ppc64le AES/GCM module.

2024-09-12 Thread Danny Tsen
This patch is to fix an issue when simd is not usable that data mismatch may occur over ipsec tunnel. The fix is to register algs as SIMD modules so that the algorithm is excecuted when SIMD instructions is usable. A new module rfc4106(gcm(aes)) is also added. Re-write AES/GCM assembly codes with

Re: [PATCH 1/2] powerpc/entry: convert to common and generic entry

2024-09-12 Thread Luming Yu
On Thu, Sep 12, 2024 at 12:23:29PM +0200, Christophe Leroy wrote: > > > Le 12/09/2024 à 10:24, Luming Yu a écrit : > > From: Yu Luming > > > > convert powerpc entry code in syscall and fault to use syscall_work > > and irqentry_state as well as common calls from generic entry > > infrastructur

Re: [RFC PATCH v3 0/6] ASoC: fsl: add memory to memory function for ASRC

2024-09-12 Thread Shengjiu Wang
On Fri, Sep 6, 2024 at 6:05 PM Shengjiu Wang wrote: > > This function is base on the accelerator implementation > for compress API: > https://patchwork.kernel.org/project/alsa-devel/patch/20240731083843.59911-1-pe...@perex.cz/ Hi Jaroslav Shall I add this patch to my patch set next time? Las

Re: [PATCH 1/1] crypto: Fix data mismatch over ipsec tunnel encrypted/decrypted with ppc64le AES/GCM module.

2024-09-12 Thread Michael Ellerman
Danny Tsen writes: > This patch is to fix an issue when simd is not usable that data mismatch > may occur over ipsec tunnel. The fix is to register algs as SIMD modules > so that the algorithm is excecuted when SIMD instructions is usable. > > A new module rfc4106(gcm(aes)) is also added. Re-write

Re: [PATCH 4/5] perf/powerpc: Count dropped samples in core-book3s PMU

2024-09-12 Thread Madhavan Srinivasan
On 9/5/24 8:40 AM, Namhyung Kim wrote: Due to the hardware limitation, sometimes it could sample kernel address while attr.exclude_kernel is set. In that case it silently drops the sample. Let's count that case in the new dropped_samples counter. Nice catch. Thanks for the fix. Reviewed-by:

[RFC PATCH] powerpc/vdso: Should VDSO64 functions be flagged as functions like VDSO32 ?

2024-09-12 Thread Christophe Leroy
On powerpc64 as shown below by readelf, vDSO functions symbols have type NOTYPE. $ powerpc64-linux-gnu-readelf -a arch/powerpc/kernel/vdso/vdso64.so.dbg ELF Header: Magic: 7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data:

Re: [PATCH 1/2] powerpc/vpa_pmu: Add interface to expose vpa counters via perf

2024-09-12 Thread Christophe Leroy
Le 28/08/2024 à 12:21, Kajol Jain a écrit : The pseries Shared Processor Logical Partition(SPLPAR) machines can retrieve a log of dispatch and preempt events from the hypervisor using data from Disptach Trace Log(DTL) buffer. With this information, user can retrieve when and why each dispatch

Re: [PATCH 1/2] powerpc/entry: convert to common and generic entry

2024-09-12 Thread Christophe Leroy
Le 13/09/2024 à 03:40, Luming Yu a écrit : On Thu, Sep 12, 2024 at 12:23:29PM +0200, Christophe Leroy wrote: Le 12/09/2024 à 10:24, Luming Yu a écrit : From: Yu Luming convert powerpc entry code in syscall and fault to use syscall_work and irqentry_state as well as common calls from gene

Re: [PATCH 1/1] crypto: Fix data mismatch over ipsec tunnel encrypted/decrypted with ppc64le AES/GCM module.

2024-09-12 Thread Kamlesh Gurudasani
Michael Ellerman writes: > Danny Tsen writes: >> This patch is to fix an issue when simd is not usable that data mismatch >> may occur over ipsec tunnel. The fix is to register algs as SIMD modules >> so that the algorithm is excecuted when SIMD instructions is usable. >> >> A new module rfc4106