[PATCH v6 0/9] powerpc/pseries: Add hypervisor pipe (HVPIPE) suport

2025-09-07 Thread Haren Myneni
On powerPC systems, the Hardware Management Console (HMC) is used to create and manage logical partitions (LPAR) and both HMC and LPARs exchange information over Ethernet which can expose security implications. Hence the current method of communication is not viable for secure boot configuration.

[PATCH v6 8/9] powerpc/pseries: Enable hvpipe with ibm,set-system-parameter RTAS

2025-09-07 Thread Haren Myneni
The partition uses “Hypervisor Pipe OS Enablement Notification” system parameter token (value = 64) to enable / disable hvpipe in the hypervisor. Once hvpipe is enabled, the hypervisor notifies OS if the payload is pending for that partition from any source. This system parameter token takes 1 byte

[PATCH v6 7/9] powerpc/pseries: Enable HVPIPE event message interrupt

2025-09-07 Thread Haren Myneni
The hypervisor signals the OS via a Hypervisor Pipe Event external interrupt when data is available to be received from the pipe. Then the OS should call RTAS check-exception and provide the input Event Mask as defined for the ‘ibm,hvpipe-msg-events’. In response, check-exception will return an ev

[PATCH v6 9/9] powerpc/pseries: HVPIPE changes to support migration

2025-09-07 Thread Haren Myneni
The hypervisor assigns one pipe per partition for all sources and assigns new pipe after migration. Also the partition ID that is used by source as its target ID may be changed after the migration. So disable hvpipe during SUSPEND event with ‘hvpipe enable’ system parameter value = 0 and enable it

[PATCH v6 6/9] powerpc/pseries: Wakeup hvpipe FD when the payload is pending

2025-09-07 Thread Haren Myneni
The user space polls on the wait_queue for the payload from the specific source. The hypervisor interrupts the OS when the pipe status for the specific source is changed such as payload is available for the partition or pipe to the source is closed. The OS retrieves the HVPIPE event message with ch

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

2025-09-07 Thread Haren Myneni
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). The information exchanged, whether it be messages, raw

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

2025-09-07 Thread Haren Myneni
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 received from the pipe and the event message has the sou

[PATCH v6 4/9] powerpc/pseries: Send payload with ibm,send-hvpipe-msg RTAS

2025-09-07 Thread Haren Myneni
ibm,send-hvpipe-msg RTAS call is used to send data to the source (Ex: Hardware Management Console) over the hypervisor pipe. The maximum data length of 4048 bytes is supported with this RTAS call right now. The user space uses write() to send this payload which invokes this RTAS. Then the write ret

[PATCH v6 2/9] powerpc/pseries: Define HVPIPE specific macros

2025-09-07 Thread Haren Myneni
Define HVPIPE specific macros which are needed to support ibm,send-hvpipe-msg and ibm,receive-hvpipe-msg RTAS calls and used to handle HVPIPE message events. Signed-off-by: Haren Myneni Reviewed-by: Mahesh Salgaonkar Reviewed-by: Tyrel Datwyler Tested-by: Shashank MS --- arch/powerpc/include/

[PATCH v6 1/9] powerpc/pseries: Define papr-hvpipe ioctl

2025-09-07 Thread Haren Myneni
PowerPC FW introduced HVPIPE RTAS calls such as ibm,send-hvpipe-msg and ibm,receive-hvpipe-msg for the user space to exchange information with different sources such as Hardware Management Consoles (HMC). HVPIPE_IOC_CREATE_HANDLE is defined to use /dev/papr-hvpipe interface for ibm,send-hvpipe-msg

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

2025-09-07 Thread Andrew Donnellan
On Sat, 2025-09-06 at 08:42 +0200, Christophe Leroy wrote: > > arch_jump_label_transform() is mainly getting called from > > __jump_level_update() and it's used for enabling or updating static keys / > > branch. > > > > But static keys can also be used by drivers / module subsystem whose > > initi

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

2025-09-07 Thread Andrew Donnellan
If patch_branch() or patch_instruction() fails while updating a jump label, we presently fail silently, leading to unpredictable behaviour later on. Change arch_jump_label_transform() to panic on a code patching failure, matching the existing behaviour of arch_static_call_transform(). Reported-by

Re: Kernel v6.17-rc4 with STATIC_CALL_SELFTEST=y enabled fails to boot at early stage (PowerMac G4 DP)

2025-09-07 Thread Madhavan Srinivasan
On 9/4/25 2:15 PM, Christophe Leroy wrote: > > > Le 04/09/2025 à 10:40, Madhavan Srinivasan a écrit : >> >> >> On 9/4/25 1:01 PM, Christophe Leroy wrote: >>> Hi Erhard, >>> >>> Le 04/09/2025 à 00:44, Erhard Furtner a écrit : Greetings! In a conversation with Andrew about his pag

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

2025-09-07 Thread Zihuan Zhang
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. Motivation: - Reduce the chance of reference counting mistakes - Make the code more consistent with the latest kernel style

Re: [PATCH v4 09/10] thermal/drivers/ti-soc-thermal: Use scope-based cleanup helper

2025-09-07 Thread Andreas Kemnade
Am Wed, 3 Sep 2025 21:17:32 +0800 schrieb 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 in

Re: [PATCH net-next 3/3] ptp: qoriq: covert to use generic interfaces to set loopback mode

2025-09-07 Thread Vladimir Oltean
On Wed, Sep 03, 2025 at 04:37:49PM +0800, Wei Fang wrote: > Since the generic debugfs interfaces for setting the periodic pulse > signal loopback have been added to the ptp_clock driver, so covert the s/covert/convert/ Also, 'since' doesn't go along with 'so'. You can remove either word. > vendo

Re: [PATCH v3 4/7] riscv: Stop calling page_address() in free_pages()

2025-09-07 Thread Alexandre Ghiti
Hi Vishal, On 9/3/25 20:59, Vishal Moola (Oracle) wrote: free_pages() should be used when we only have a virtual address. We should call __free_pages() directly on our page instead. Signed-off-by: Vishal Moola (Oracle) --- arch/riscv/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de

Re: [PATCH net-next 0/3] ptp: add pulse signal loopback support for debugging

2025-09-07 Thread Richard Cochran
On Thu, Sep 04, 2025 at 01:55:43AM +, Wei Fang wrote: > Vladimir helped explain its purpose in the thread, do you still think > it is pointless? Vladimir gave practical examples for the use case, so no objection from my side. I just wanted to understand how this is useful. Next time, it woul

Re: [PATCH v5 3/6] cpufreq: intel_pstate: Use scope-based cleanup helper

2025-09-07 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 v3 3/7] x86: Stop calling page_address() in free_pages()

2025-09-07 Thread Mike Rapoport
On Thu, Sep 04, 2025 at 02:51:14PM +0300, Mike Rapoport wrote: > On Wed, Sep 03, 2025 at 11:59:17AM -0700, Vishal Moola (Oracle) wrote: > > free_pages() should be used when we only have a virtual address. We > > should call __free_pages() directly on our page instead. > > > > Signed-off-by: Vishal

[PATCH v2 net-next 3/3] ptp: qoriq: convert to use generic interfaces to set loopback mode

2025-09-07 Thread Wei Fang
Since the generic debugfs interfaces for setting the periodic pulse signal loopback have been added to the ptp_clock driver, so convert the vendor-defined debugfs interfaces to the generic interfaces. Signed-off-by: Wei Fang Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean --- MAINTAINE

[PATCH bpf-next v3 2/4] powerpc64/bpf: Implement bpf_addr_space_cast instruction

2025-09-07 Thread Saket Kumar Bhaskar
LLVM generates bpf_addr_space_cast instruction while translating pointers between native (zero) address space and __attribute__((address_space(N))). The addr_space=0 is reserved as bpf_arena address space. rY = addr_space_cast(rX, 0, 1) is processed by the verifier and converted to normal 32-bit m

Re: [PATCH] powerpc/32: Remove PAGE_KERNEL_TEXT to fix startup failure

2025-09-07 Thread IBM
Christophe Leroy writes: > PAGE_KERNEL_TEXT is an old macro that is used to tell kernel whether > kernel text has to be mapped read-only or read-write based on build > time options. > > But nowadays, with functionnalities like jump_labels, static links, > etc ... more only less all kernels need t

[PATCH v5 8/9] powerpc/pseries: Enable hvpipe with ibm,set-system-parameter RTAS

2025-09-07 Thread Haren Myneni
The partition uses “Hypervisor Pipe OS Enablement Notification” system parameter token (value = 64) to enable / disable hvpipe in the hypervisor. Once hvpipe is enabled, the hypervisor notifies OS if the payload is pending for that partition from any source. This system parameter token takes 1 byte

Re: [PATCH bpf-next v2 5/5] selftests/bpf: Fix arena_spin_lock selftest failure

2025-09-07 Thread Saket Kumar Bhaskar
On Thu, Sep 04, 2025 at 01:39:31PM +0530, Hari Bathini wrote: > > > On 29/08/25 10:21 pm, Saket Kumar Bhaskar wrote: > > For systems having CONFIG_NR_CPUS set to > 1024 in kernel config > > the selftest fails as arena_spin_lock_irqsave() returns EOPNOTSUPP. > > > > The selftest is skipped incase

Re: [PATCH v5 4/9] powerpc/pseries: Send payload with ibm,send-hvpipe-msg RTAS

2025-09-07 Thread kernel test robot
it/powerpc/linux.git next patch link: https://lore.kernel.org/r/20250906155308.705926-5-haren%40linux.ibm.com patch subject: [PATCH v5 4/9] powerpc/pseries: Send payload with ibm,send-hvpipe-msg RTAS config: powerpc64-randconfig-r123-20250907 (https://download.01.org/0day-ci/archive/20250907/20

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

2025-09-07 Thread Takashi Sakamoto
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 found of alloc_pages: > > drivers/firewire/ohci.c:ctx->pages[i] = dm

Re: [PATCH v4 7/9] powerpc/pseries: Enable HVPIPE event message interrupt

2025-09-07 Thread Madhavan Srinivasan
On 8/30/25 11:33 AM, Haren Myneni wrote: > The hypervisor signals the OS via a Hypervisor Pipe Event external > interrupt when data is available to be received from the pipe. > Then the OS should call RTAS check-exception and provide the input > Event Mask as defined for the ‘ibm,hvpipe-msg-eve

[PATCH v5 3/6] cpufreq: intel_pstate: Use scope-based cleanup helper

2025-09-07 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 Reviewed-by: Jonathan Cameron

[PATCH v5 1/9] powerpc/pseries: Define papr-hvpipe ioctl

2025-09-07 Thread Haren Myneni
PowerPC FW introduced HVPIPE RTAS calls such as ibm,send-hvpipe-msg and ibm,receive-hvpipe-msg for the user space to exchange information with different sources such as Hardware Management Consoles (HMC). HVPIPE_IOC_CREATE_HANDLE is defined to use /dev/papr-hvpipe interface for ibm,send-hvpipe-msg

Re: Kernel v6.17-rc4 with STATIC_CALL_SELFTEST=y enabled fails to boot at early stage (PowerMac G4 DP)

2025-09-07 Thread Christophe Leroy
Le 04/09/2025 à 11:57, Andrew Donnellan a écrit : On Thu, 2025-09-04 at 14:33 +0530, Madhavan Srinivasan wrote: I am using qemu with -M mac99 and it boots Hardware name: PowerMac3,1 7400 0xc0209 PowerMac printk: legacy bootconsole [udbg0] enabled -

Re: [PATCH v3 0/7] Cleanup free_pages() misuse

2025-09-07 Thread Mike Rapoport
On Wed, Sep 03, 2025 at 11:59:14AM -0700, Vishal Moola (Oracle) wrote: > free_pages() is supposed to be called when we only have a virtual address. > __free_pages() is supposed to be called when we have a page. > > There are a number of callers that use page_address() to get a page's > virtual add

Re: [PATCH v4 03/10] cpufreq: intel_pstate: Use scope-based cleanup helper

2025-09-07 Thread Jonathan Cameron
On Wed, 3 Sep 2025 21:17:26 +0800 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 inte

[PATCH bpf-next v3 3/4] powerpc64/bpf: Introduce bpf_jit_emit_atomic_ops() to emit atomic instructions

2025-09-07 Thread Saket Kumar Bhaskar
The existing code for emitting bpf atomic instruction sequences for atomic operations such as XCHG, CMPXCHG, ADD, AND, OR, and XOR has been refactored into a reusable function, bpf_jit_emit_ppc_atomic_op(). It also computes the jump offset and tracks the instruction index for jited LDARX/LWARX to b

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

2025-09-07 Thread Leon Romanovsky
On Fri, Sep 05, 2025 at 06:20:51PM +0200, Marek Szyprowski wrote: > On 29.08.2025 15:16, Jason Gunthorpe wrote: > > On Tue, Aug 19, 2025 at 08:36:44PM +0300, Leon Romanovsky wrote: > > > >> This series does the core code and modern flows. A followup series > >> will give the same treatment to the l

[powerpc:merge] BUILD SUCCESS 4d5be0950753d64666a54d61303a3bc813d516fb

2025-09-07 Thread kernel test robot
cc-13 i386buildonly-randconfig-001-20250906clang-20 i386buildonly-randconfig-001-20250907clang-20 i386buildonly-randconfig-002-20250906gcc-11 i386buildonly-randconfig-002-20250907clang-20 i386buildonly-randconfig-003-20250906gcc-13 i386

Re: [PATCH v3 7/7] virtio_balloon: Stop calling page_address() in free_pages()

2025-09-07 Thread Michael S. Tsirkin
On Wed, Sep 03, 2025 at 11:59:21AM -0700, Vishal Moola (Oracle) wrote: > free_pages() should be used when we only have a virtual address. We > should call __free_pages() directly on our page instead. > > Signed-off-by: Vishal Moola (Oracle) Acked-by: Michael S. Tsirkin > --- > drivers/virtio/

Re: [PATCH] kexec: Include kernel-end even without crashkernel

2025-09-07 Thread Sourabh Jain
On 22/04/25 08:06, Ben Collins wrote: Certain versions of kexec don't even work without kernel-end being added to the device-tree. Add it even if crash-kernel is disabled. Signed-off-by: Ben Collins Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ke

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

2025-09-07 Thread kernel test robot
it/powerpc/linux.git next patch link: https://lore.kernel.org/r/20250906155308.705926-4-haren%40linux.ibm.com patch subject: [PATCH v5 3/9] powerpc/pseries: Add papr-hvpipe char driver for HVPIPE interfaces config: powerpc64-randconfig-r123-20250907 (https://download.01.org/0day-ci/archiv