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

2025-08-01 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 7/9] powerpc/pseries: Enable HVPIPE event message interrupt

2025-08-01 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 8/9] powerpc/pseries: Enable hvpipe with ibm,set-system-parameter RTAS

2025-08-01 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 6/9] powerpc/pseries: Wakeup hvpipe FD when the payload is pending

2025-08-01 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 4/9] powerpc/pseries: Send payload with ibm,send-hvpipe-msg RTAS

2025-08-01 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 5/9] powerpc/pseries: Receive payload with ibm,receive-hvpipe-msg RTAS

2025-08-01 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 3/9] powerpc/pseries: Add papr-hvpipe char driver for HVPIPE interfaces

2025-08-01 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 2/9] powerpc/pseries: Define HVPIPE specific macros

2025-08-01 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 --- arch/powerpc/include/asm/rtas.h | 9 + arch/powerpc/kernel/rtas.c | 24 +

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

2025-08-01 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 1/9] powerpc/pseries: Define papr-hvpipe ioctl

2025-08-01 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 v4] vmcoreinfo: Track and log recoverable hardware errors

2025-08-01 Thread kernel test robot
Hi Breno, kernel test robot noticed the following build warnings: [auto build test WARNING on 89748acdf226fd1a8775ff6fa2703f8412b286c8] url: https://github.com/intel-lab-lkp/linux/commits/Breno-Leitao/vmcoreinfo-Track-and-log-recoverable-hardware-errors/20250801-211624 base

Re: [PATCH v2] powerpc/mm: Fix SLB multihit issue during SLB preload

2025-08-01 Thread IBM
Donet Tom writes: > On systems using the hash MMU, there is a software SLB preload cache that > mirrors the entries loaded into the hardware SLB buffer. This preload > cache is subject to periodic eviction — typically after every 256 context > switches — to remove old entry. > > To optimize perfo

Re: [PATCH v3 1/2] PCI/AER: Fix missing uevent on recovery when a reset is requested

2025-08-01 Thread Sathyanarayanan Kuppuswamy
Hi Lukas, On 7/31/25 10:44 PM, Lukas Wunner wrote: On Thu, Jul 31, 2025 at 10:04:38AM -0700, Sathyanarayanan Kuppuswamy wrote: On 7/31/25 6:01 AM, Lukas Wunner wrote: +++ b/drivers/pci/pcie/err.c @@ -165,6 +165,12 @@ static int report_resume(struct pci_dev *dev, void *data) return 0;

Re: [PATCH v4] vmcoreinfo: Track and log recoverable hardware errors

2025-08-01 Thread Dave Hansen
On 8/1/25 10:00, Breno Leitao wrote: > Would a solution like this look better? > > enum hwerr_error_type { > HWERR_RECOV_CPU, > HWERR_RECOV_MEMORY, > HWERR_RECOV_PCI, > HWERR_RECOV_CXL, > HWERR_RECOV_OTHERS, > #ifdef

Re: [PATCH v4] vmcoreinfo: Track and log recoverable hardware errors

2025-08-01 Thread Breno Leitao
hello Dave, On Fri, Aug 01, 2025 at 09:24:43AM -0700, Dave Hansen wrote: > On 8/1/25 08:13, Breno Leitao wrote: > > On Fri, Aug 01, 2025 at 07:52:17AM -0700, Dave Hansen wrote: > >> On 8/1/25 05:31, Breno Leitao wrote: > >>> Introduce a generic infrastructure for tracking recoverable hardware > >>

Re: [PATCH v2] powerpc/qspinlock: Add spinlock contention tracepoint

2025-08-01 Thread Shrikanth Hegde
On 7/31/25 11:48, Nysal Jan K.A. wrote: Add a lock contention tracepoint in the queued spinlock slowpath. Also add the __lockfunc annotation so that in_lock_functions() works as expected. There is bit of pure code movement. Given that is small, single patch is fine. Signed-off-by: Nysal J

Re: [PATCH v4] vmcoreinfo: Track and log recoverable hardware errors

2025-08-01 Thread Dave Hansen
On 8/1/25 08:13, Breno Leitao wrote: > Hello Dave, > > On Fri, Aug 01, 2025 at 07:52:17AM -0700, Dave Hansen wrote: >> On 8/1/25 05:31, Breno Leitao wrote: >>> Introduce a generic infrastructure for tracking recoverable hardware >>> errors (HW errors that are visible to the OS but does not cause a

Re: [PATCH v4] vmcoreinfo: Track and log recoverable hardware errors

2025-08-01 Thread Breno Leitao
Hello Dave, On Fri, Aug 01, 2025 at 07:52:17AM -0700, Dave Hansen wrote: > On 8/1/25 05:31, Breno Leitao wrote: > > Introduce a generic infrastructure for tracking recoverable hardware > > errors (HW errors that are visible to the OS but does not cause a panic) > > and record them for vmcore consu

Re: [PATCH v4] vmcoreinfo: Track and log recoverable hardware errors

2025-08-01 Thread Dave Hansen
On 8/1/25 05:31, Breno Leitao wrote: > Introduce a generic infrastructure for tracking recoverable hardware > errors (HW errors that are visible to the OS but does not cause a panic) > and record them for vmcore consumption. ... Are there patches for the consumer side of this, too? Or do humans lo

Re: [PATCH v2] integrity: Extract secure boot enquiry function out of IMA

2025-08-01 Thread Nayna Jain
On 7/28/25 8:17 AM, GONG Ruiqi wrote: On 7/26/2025 2:29 AM, Nayna Jain wrote: On 7/17/25 8:29 AM, GONG Ruiqi wrote: On 7/8/2025 4:35 AM, Nayna Jain wrote: On 7/2/25 10:07 PM, GONG Ruiqi wrote: ... Yes, IMA_ARCH_POLICY was not set. The testing was conducted on openEuler[1], a Linux distro m

Re: [PATCH] pseries/lparcfg: Add resource group monitoring

2025-08-01 Thread Shrikanth Hegde
On 7/16/25 16:15, Srikar Dronamraju wrote: Systems can now be partitioned into resource groups. By default all systems will be part of default resource group. Once a resource group is created, and resources allocated to the resource group, those resources will be removed from the default resour

Re: [PATCH v8 18/20] PCI/AER: Ratelimit correctable and non-fatal error logging

2025-08-01 Thread Breno Leitao
On Fri, Aug 01, 2025 at 06:16:29AM -0700, Breno Leitao wrote: > Hello Jon, Bjorn, > > On Thu, May 22, 2025 at 06:21:24PM -0500, Bjorn Helgaas wrote: > > @@ -790,6 +818,9 @@ void pci_print_aer(struct pci_dev *dev, int > > aer_severity, > > trace_aer_event(pci_name(dev), (status & ~mask), > >

Re: [PATCH v8 18/20] PCI/AER: Ratelimit correctable and non-fatal error logging

2025-08-01 Thread Breno Leitao
Hello Jon, Bjorn, On Thu, May 22, 2025 at 06:21:24PM -0500, Bjorn Helgaas wrote: > @@ -790,6 +818,9 @@ void pci_print_aer(struct pci_dev *dev, int aer_severity, > trace_aer_event(pci_name(dev), (status & ~mask), > aer_severity, tlp_header_valid, &aer->header_log); > >

[PATCH v4] vmcoreinfo: Track and log recoverable hardware errors

2025-08-01 Thread Breno Leitao
Introduce a generic infrastructure for tracking recoverable hardware errors (HW errors that are visible to the OS but does not cause a panic) and record them for vmcore consumption. This aids post-mortem crash analysis tools by preserving a count and timestamp for the last occurrence of such errors

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

2025-08-01 Thread Lorenzo Stoakes
So sorry Ulad, I meant to get back to you on this sooner! On Tue, Jul 29, 2025 at 08:39:01PM +0200, Uladzislau Rezki wrote: > On Tue, Jul 29, 2025 at 06:25:39AM +0100, Lorenzo Stoakes wrote: > > Andrew - FYI there's nothing to worry about here, the type remains > > precisely the same, and I'll sen

[PATCH v2] powerpc/mm: Fix SLB multihit issue during SLB preload

2025-08-01 Thread Donet Tom
On systems using the hash MMU, there is a software SLB preload cache that mirrors the entries loaded into the hardware SLB buffer. This preload cache is subject to periodic eviction — typically after every 256 context switches — to remove old entry. To optimize performance, the kernel skips switch

[PATCH v3 2/2] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers

2025-08-01 Thread Thomas Huth
From: Thomas Huth While the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembler code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This is bad since macros starting with two underscores are names that are reserved by the C

[PATCH v3 0/2] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in header files

2025-08-01 Thread Thomas Huth
The kernel Makefiles define the __ASSEMBLY__ macro to provide a way to use headers in both, assembly and C source code. This is bad since macros starting with two underscores are names that are reserved by the C language. Additionally, all the supported versions of the GCC and Clang compilers also

[PATCH v3 1/2] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers

2025-08-01 Thread Thomas Huth
From: Thomas Huth __ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembler code. This is a complet

Re: [PATCH] powerpc/xmon: replace sizeof calculations with ARRAY_SIZE macro

2025-08-01 Thread Dan Carpenter
Can't hurt to try at least. If they don't merge it, then for code where we're not upstream, it's pretty common to just endure style issues. I'm thinking of ACPI here. regards, dan carpenter

Re: [PATCH 07/33] tty: vt: use _IO() to define ioctl numbers

2025-08-01 Thread Greg KH
On Fri, Aug 01, 2025 at 06:47:46AM +0200, Jiri Slaby wrote: > On 31. 07. 25, 22:58, Nicolas Pitre wrote: > > On Thu, 31 Jul 2025, Christophe Leroy wrote: > > > > > > > > > > > Le 31/07/2025 à 16:35, Christophe Leroy a écrit : > > > > Hi Jiri, > > > > > > > > Le 11/06/2025 à 12:02, Jiri Slaby (S