Re: [PATCH] KVM: PPC: Fix misleading interrupts comment in kvmppc_prepare_to_enter()

2025-08-27 Thread Madhavan Srinivasan
On Wed, 06 Aug 2025 15:56:07 +1000, Andrew Donnellan wrote: > Until commit 6c85f52b10fd ("kvm/ppc: IRQ disabling cleanup"), > kvmppc_prepare_to_enter() was called with interrupts already disabled by > the caller, which was documented in the comment above the function. > > Post-cleanup, the functio

Re: [PATCH -resend] powerpc: Use dev_fwnode()

2025-08-27 Thread Madhavan Srinivasan
On Wed, 23 Jul 2025 08:28:42 +0200, Jiri Slaby (SUSE) wrote: > irq_domain_create_simple() takes fwnode as the first argument. It can be > extracted from the struct device using dev_fwnode() helper instead of > using of_node with of_fwnode_handle(). > > So use the dev_fwnode() helper. > > > [...]

Re: [PATCH] powerpc: use always-y instead of extra-y in Makefiles

2025-08-27 Thread Madhavan Srinivasan
On Tue, 03 Jun 2025 01:32:24 +0900, Masahiro Yamada wrote: > The extra-y syntax is planned for deprecation because it is similar > to always-y. > > When building the boot wrapper, always-y and extra-y are equivalent. > Use always-y instead. > > In arch/powerpc/kernel/Makefile, I added ifdef KBUIL

Re: [PATCH] powerpc: unify two CONFIG_POWERPC64_CPU entries in the same choice block

2025-08-27 Thread Madhavan Srinivasan
On Sat, 07 Jun 2025 19:13:51 +0900, Masahiro Yamada wrote: > There are two CONFIG_POWERPC64_CPU entries in the "CPU selection" > choice block. > > I guess the intent is to display a different prompt depending on > CPU_LITTLE_ENDIAN: "Generic (POWER5 and PowerPC 970 and above)" for big > endian, an

Re: [PATCH v2 1/4] powerpc/kvm: Fix ifdef to remove build warning

2025-08-27 Thread Madhavan Srinivasan
On Sun, 18 May 2025 10:11:04 +0530, Madhavan Srinivasan wrote: > When compiling for pseries or powernv defconfig with "make C=1", > these warning were reported bu sparse tool in powerpc/kernel/kvm.c > > arch/powerpc/kernel/kvm.c:635:9: warning: switch with no cases > arch/powerpc/kernel/kvm.c:646:

Re: [PATCH] PCI/AER: Support errors introduced by PCIe r6.0

2025-08-27 Thread Lukas Wunner
On Wed, Aug 27, 2025 at 12:56:41PM -0700, Sathyanarayanan Kuppuswamy wrote: > On 8/27/25 6:41 AM, Lukas Wunner wrote: > > PCIe r6.0 defined five additional errors in the Uncorrectable Error > > Status, Mask and Severity Registers (PCIe r7.0 sec 7.8.4.2ff). > > is 2ff a typo ? "ff" means "and foll

[GIT PULL] Please pull powerpc/linux.git powerpc-6.17-3 tag

2025-08-27 Thread Madhavan Srinivasan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Linus, Please pull couple of powerpc fixes for 6.17: The following changes since commit c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9: Linux 6.17-rc2 (2025-08-17 15:22:10 -0700) are available in the git repository at: https://git.kernel.org/pu

Re: [PATCH] powerpc/powernv: Rename pe_level_printk to pe_printk and embed KERN_LEVEL in format

2025-08-27 Thread Christophe Leroy
Le 28/08/2025 à 02:04, Joe Perches a écrit : [Vous ne recevez pas souvent de courriers de j...@perches.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] On Wed, 2025-08-27 at 18:42 +0200, Christophe Leroy wrote: Hi Joe Le 21/06/2019 à 07:36, Joe P

Re: [PATCH v2 01/18] arm64: topology: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
在 2025/8/27 17:17, Sudeep Holla 写道: On Wed, Aug 27, 2025 at 09:30:13AM +0100, Ben Horgan wrote: Hi Zihuan, On 8/27/25 03:31, 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

Re: [PATCH v2 02/18] KVM: x86: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
Hi, 在 2025/8/27 22:13, Sean Christopherson 写道: On Wed, Aug 27, 2025, 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.

[PATCH v5 0/2] PCI/AER: Handle Advisory Non-Fatal error

2025-08-27 Thread Matthew W Carlis
On Fri, 22 Aug 2025 11:51:12 -0500, Bjorn Helgaas wrote > Matthew, if you are able to test and/or provide a Reviewed-by, that would > be the best thing you can do to move this forward ... I spent some time looking at the patch thinking about it a little more carefully. The only thing I don't real

Re: [PATCH] powerpc/powernv: Rename pe_level_printk to pe_printk and embed KERN_LEVEL in format

2025-08-27 Thread Joe Perches
On Wed, 2025-08-27 at 18:42 +0200, Christophe Leroy wrote: > Hi Joe > > Le 21/06/2019 à 07:36, Joe Perches a écrit : > > Remove the separate KERN_ from each pe_level_printk and > > instead add the KERN_ to the format. Hello Christophe. It's over 6 years since I wrote that. Is that the typical re

Re: [PATCH 00/24] PCI: Bridge window selection improvements

2025-08-27 Thread Bjorn Helgaas
On Fri, Aug 22, 2025 at 05:55:41PM +0300, Ilpo Järvinen wrote: > This series is based on top of the three resource fitting and > assignment algorithm fixes (v3). > > PCI resource fitting and assignment code needs to find the bridge > window a resource belongs to in multiple places, yet, no common

Re: [PATCH] PCI/AER: Support errors introduced by PCIe r6.0

2025-08-27 Thread Sathyanarayanan Kuppuswamy
On 8/27/25 6:41 AM, Lukas Wunner wrote: PCIe r6.0 defined five additional errors in the Uncorrectable Error Status, Mask and Severity Registers (PCIe r7.0 sec 7.8.4.2ff). is 2ff a typo ? lspci has been supporting them since commit 144b0911cc0b ("ls-ecaps: extend decode support for more fie

Re: [PATCH] PCI/AER: Support errors introduced by PCIe r6.0

2025-08-27 Thread Bjorn Helgaas
On Wed, Aug 27, 2025 at 03:41:09PM +0200, Lukas Wunner wrote: > PCIe r6.0 defined five additional errors in the Uncorrectable Error > Status, Mask and Severity Registers (PCIe r7.0 sec 7.8.4.2ff). > > lspci has been supporting them since commit 144b0911cc0b ("ls-ecaps: > extend decode support for

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

2025-08-27 Thread Haren Myneni
On Wed, 2025-08-27 at 23:45 +0530, Mahesh J Salgaonkar wrote: > On 2025-08-12 15:57:07 Tue, Haren Myneni wrote: > > The hypervisor provides ibm,send-hvpipe-msg and > > ibm,receive-hvpipe-msg RTAS calls which can be used by the > > partition to communicate through an inband hypervisor channel with >

Re: [PATCH v2 5/9] powerpc/pseries: Receive payload with ibm,receive-hvpipe-msg RTAS

2025-08-27 Thread Mahesh J Salgaonkar
On 2025-08-12 15:57:09 Tue, Haren Myneni wrote: > ibm,receive-hvpipe-msg RTAS call is used to receive data from the > source (Ex: Hardware Management Console) over the hypervisor > pipe. The hypervisor will signal the OS via a Hypervisor Pipe > Event external interrupt when data is available to be

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

2025-08-27 Thread Mahesh J Salgaonkar
On 2025-08-12 15:57:07 Tue, Haren Myneni wrote: > The hypervisor provides ibm,send-hvpipe-msg and > ibm,receive-hvpipe-msg RTAS calls which can be used by the > partition to communicate through an inband hypervisor channel with > different external sources such as Hardware Management Console > (HMC

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2025-08-27 Thread Christophe Leroy
Le 21/06/2019 à 10:58, Mathieu Malaterre a écrit : When building with clang-8 the frame size limit is hit: ../arch/powerpc/lib/xor_vmx.c:119:6: error: stack frame size of 1200 bytes in function '__xor_altivec_5' [-Werror,-Wframe-larger-than=] Follow the same approach as commit 9c87156cce

Re: [PATCH 13/14] tools/perf: Enable perf script to present the DTL entries

2025-08-27 Thread Adrian Hunter
On 15/08/2025 11:34, Athira Rajeev wrote: > Enable perf script to present the DTL entries. Process the > dispatch trace log details in arch_perf_sample__fprintf_synth_evt() > defined in buiultin-script.c file for config value: > PERF_SYNTH_POWERPC_VPA_DTL. > > Sample output: > >./perf record

Re: [PATCH 08/14] tools/perf: process auxtrace events and display in perf report -D

2025-08-27 Thread Adrian Hunter
On 15/08/2025 11:34, Athira Rajeev wrote: > Add vpa dtl pmu auxtrace process function for "perf report -D". > The auxtrace event processing functions are defined in file > "util/powerpc-vpadtl.c". Data structures used includes "struct > powerpc_vpadtl_queue", "struct powerpc_vpadtl" to store the au

Re: [PATCH 12/14] tools/perf: Add support for printing synth event details via default callback

2025-08-27 Thread Adrian Hunter
On 15/08/2025 11:34, Athira Rajeev wrote: > Introduce arch_perf_sample__fprintf_synth_evt to add support for > printing arch specific synth event details. The process_event() > function in "builtin-script.c" invokes perf_sample__fprintf_synth() for > displaying PERF_TYPE_SYNTH type events. > >

Re: [PATCH 11/14] tools/perf: Process the DTL entries in queue and deliver samples

2025-08-27 Thread Adrian Hunter
On 15/08/2025 11:34, Athira Rajeev wrote: > Create samples from DTL entries for displaying in perf report > and perf script. When the different PERF_RECORD_XX records are > processed from perf session, powerpc_vpadtl_process_event() will > be invoked. For each of the PERF_RECORD_XX record, compare

Re: [PATCH 07/14] tools/perf: Add basic CONFIG_AUXTRACE support for VPA pmu on powerpc

2025-08-27 Thread Adrian Hunter
On 15/08/2025 11:34, Athira Rajeev wrote: > The powerpc PMU collecting Dispatch Trace Log (DTL) entries makes use of > AUX support in perf infrastructure. The PMU driver has the functionality > to collect trace entries in the aux buffer. On the tools side, this data > is made available as PERF_RECO

Re: [PATCH 10/14] tools/perf: Allocate and setup aux buffer queue to help co-relate with other events across CPU's

2025-08-27 Thread Adrian Hunter
On 15/08/2025 11:34, Athira Rajeev wrote: > When the Dispatch Trace Log data is collected along with other events > like sched tracepoint events, it needs to be correlated and present > interleaved along with these events. Perf events can be collected > parallely across the CPUs. Hence it needs to

Re: [PATCH 2/3] mm: update core kernel code to use vm_flags_t consistently

2025-08-27 Thread Uladzislau Rezki
On Mon, Aug 25, 2025 at 02:37:11PM -0700, Kees Cook wrote: > On Tue, Aug 05, 2025 at 06:13:56PM +0200, Uladzislau Rezki wrote: > > I agree. Also it can be even moved under vmalloc.c. There is only one > > user which needs it globally, it is usercopy.c. It uses find_vmap_area() > > which is wrong. S

Re: [PATCH] powerpc/powernv: Rename pe_level_printk to pe_printk and embed KERN_LEVEL in format

2025-08-27 Thread Christophe Leroy
Hi Joe Le 21/06/2019 à 07:36, Joe Perches a écrit : Remove the separate KERN_ from each pe_level_printk and instead add the KERN_ to the format. pfix in pe_level_printk could also be used uninitialized so add a new else and set pfx to the hex value of pe->flags. Rename pe_level_printk to pe_pr

Re: [PATCH 12/19] perf: Ignore event state for group validation

2025-08-27 Thread Ian Rogers
On Wed, Aug 27, 2025 at 1:18 AM Mark Rutland wrote: > > On Tue, Aug 26, 2025 at 11:48:48AM -0700, Ian Rogers wrote: > > On Tue, Aug 26, 2025 at 8:32 AM Robin Murphy wrote: > > > > > > On 2025-08-26 2:03 pm, Peter Zijlstra wrote: > > > > On Wed, Aug 13, 2025 at 06:01:04PM +0100, Robin Murphy wrote

[PATCH] powerpc/32: Fix unpaired stwcx. on interrupt exit

2025-08-27 Thread Christophe Leroy
Commit b64f87c16f3c ("[POWERPC] Avoid unpaired stwcx. on some processors") erroneouly copied to powerpc/32 the logic from powerpc/64 based on feature CPU_FTR_STCX_CHECKS_ADDRESS which is always 0 on powerpc/32. Re-instate the logic implemented by commit b64f87c16f3c ("[POWERPC] Avoid unpaired stwc

[PATCH] powerpc/8xx: Remove specific code from fast_exception_return

2025-08-27 Thread Christophe Leroy
The label 2: in fast_exception_return is a leftover from commit b96bae3ae2cb ("powerpc/32: Replace ASM exception exit by C exception exit from ppc64"). Once removed, we see that fast_exception_return is a standalone function that is called only from pieces of assembly dedicated to book3s/32 or book

Re: [PATCH v2 02/18] KVM: x86: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Sean Christopherson
On Wed, Aug 27, 2025, 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. > > Sign

Re: [PATCH 02/19] perf/hisilicon: Fix group validation

2025-08-27 Thread Mark Rutland
On Tue, Aug 26, 2025 at 04:31:23PM +0100, Mark Rutland wrote: > On Tue, Aug 26, 2025 at 03:35:48PM +0100, Robin Murphy wrote: > > On 2025-08-26 12:15 pm, Mark Rutland wrote: > > > On Wed, Aug 13, 2025 at 06:00:54PM +0100, Robin Murphy wrote: > > > > diff --git a/drivers/perf/hisilicon/hisi_pcie_pm

Re: [PATCH v3 06/11] powerpc/ptdump: rename "struct pgtable_level" to "struct ptdump_pglevel"

2025-08-27 Thread David Hildenbrand
On 26.08.25 18:28, Ritesh Harjani (IBM) wrote: David Hildenbrand writes: We want to make use of "pgtable_level" for an enum in core-mm. Other architectures seem to call "struct pgtable_level" either: * "struct pg_level" when not exposed in a header (riscv, arm) * "struct ptdump_pg_level" when

[PATCH] PCI/AER: Support errors introduced by PCIe r6.0

2025-08-27 Thread Lukas Wunner
PCIe r6.0 defined five additional errors in the Uncorrectable Error Status, Mask and Severity Registers (PCIe r7.0 sec 7.8.4.2ff). lspci has been supporting them since commit 144b0911cc0b ("ls-ecaps: extend decode support for more fields for AER CE and UE status"): https://git.kernel.org/pub/scm/

Re: [PATCH v2 01/18] arm64: topology: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Ben Horgan
Hi Zihuan, On 8/27/25 09:55, Zihuan Zhang wrote: > Hi, > > 在 2025/8/27 16:30, Ben Horgan 写道: >> Hi Zihuan, >> >> On 8/27/25 03:31, Zihuan Zhang wrote: >>> Replace the manual cpufreq_cpu_put() with __free(put_cpufreq_policy) >>> annotation for policy references. This reduces the risk of reference

Re: [PATCH v2 01/18] arm64: topology: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Ben Horgan
Hi Zihuan, On 8/27/25 03:31, 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 0/2] PCI/AER: Handle Advisory Non-Fatal error

2025-08-27 Thread Duan, Zhenzhong
>-Original Message- >From: Matthew W Carlis >Subject: [PATCH v5 0/2] PCI/AER: Handle Advisory Non-Fatal error > >On Fri, 22 Aug 2025 11:51:12 -0500, Bjorn Helgaas wrote >> I'm terribly sorry, this is my fault. It just fell off my list for no >> good reason. Matthew, if you are able to

Re: [PATCH v2 01/18] arm64: topology: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
Hi, 在 2025/8/27 17:12, Ben Horgan 写道: Hi Zihuan, On 8/27/25 09:55, Zihuan Zhang wrote: Hi, 在 2025/8/27 16:30, Ben Horgan 写道: Hi Zihuan, On 8/27/25 03:31, Zihuan Zhang wrote: Replace the manual cpufreq_cpu_put() with __free(put_cpufreq_policy) annotation for policy references. This reduces

Re: [PATCH v2 01/18] arm64: topology: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Sudeep Holla
On Wed, Aug 27, 2025 at 09:30:13AM +0100, Ben Horgan wrote: > Hi Zihuan, > > On 8/27/25 03:31, 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

Re: [PATCH v2 01/18] arm64: topology: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
Hi, 在 2025/8/27 16:30, Ben Horgan 写道: Hi Zihuan, On 8/27/25 03:31, 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.

Re: [PATCH 12/19] perf: Ignore event state for group validation

2025-08-27 Thread Mark Rutland
On Tue, Aug 26, 2025 at 11:48:48AM -0700, Ian Rogers wrote: > On Tue, Aug 26, 2025 at 8:32 AM Robin Murphy wrote: > > > > On 2025-08-26 2:03 pm, Peter Zijlstra wrote: > > > On Wed, Aug 13, 2025 at 06:01:04PM +0100, Robin Murphy wrote: > > >> It may have been different long ago, but today it seems

Re: [PATCH 16/19] perf: Introduce positive capability for sampling

2025-08-27 Thread Leo Yan
On Tue, Aug 26, 2025 at 04:53:51PM +0100, Robin Murphy wrote: [...] > > Genearlly, AUX events generate interrupts based on AUX ring buffer > > watermark but not the period. Seems to me, it is correct to set the > > PERF_PMU_CAP_SAMPLING flag for them. > > This cap is given to drivers which handl

Re: [PATCH 18/19] perf: Introduce positive capability for raw events

2025-08-27 Thread Mark Rutland
On Tue, Aug 26, 2025 at 11:46:02PM +0100, Robin Murphy wrote: > On 2025-08-26 2:43 pm, Mark Rutland wrote: > > On Wed, Aug 13, 2025 at 06:01:10PM +0100, Robin Murphy wrote: > > To bikeshed a little here, I'm not keen on the PERF_PMU_CAP_RAW_EVENTS > > name, because it's not clear what "RAW" really

Re: [PATCH v2 15/18] powercap: dtpm_cpu: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
在 2025/8/27 11:50, Zihuan Zhang 写道: 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. Signed-off-by: Zihuan

[PATCH v2 15/18] powercap: dtpm_cpu: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
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. Signed-off-by: Zihuan Zhang --- drivers/powercap/dtpm_cpu.

[PATCH v2 15/18] powercap: dtpm_cpu: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
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. Signed-off-by: Zihuan Zhang --- drivers/powercap/dtpm_cpu.

[PATCH v2 16/18] thermal: imx: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
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. Signed-off-by: Zihuan Zhang --- drivers/thermal/imx_therma

[PATCH v2 18/18] PM: EM: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
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. Signed-off-by: Zihuan Zhang --- kernel/power/energy_model.

[PATCH v2 17/18] thermal/drivers/ti-soc-thermal: Use __free(put_cpufreq_policy) for policy reference

2025-08-27 Thread Zihuan Zhang
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. Signed-off-by: Zihuan Zhang --- drivers/thermal/ti-soc-the