[linux-next-20250307] Build Failure

2025-03-09 Thread Venkat Rao Bagalkote
Greetings!!, I see linux-next-20250307 fails to build on IBM Power9 and Power10 servers. Errors: In file included from ^[[01m^[[K^[[m^[[K: ^[[01m^[[K./usr/include/cxl/features.h:11:10:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[Kuuid/uuid.h: No such file or directory    11 | #include ^[[01;31m

Re: [PATCH] book3s64/radix : Align section vmemmap start address to PAGE_SIZE

2025-03-09 Thread Donet Tom
On 3/8/25 9:16 AM, Aneesh Kumar K.V wrote: Donet Tom writes: A vmemmap altmap is a device-provided region used to provide backing storage for struct pages. For each namespace, the altmap should belong to that same namespace. If the namespaces are created unaligned, there is a chance that the

[PATCH v7 5/7] powerpc/pseries: Add ibm,get-dynamic-sensor-state RTAS call support

2025-03-09 Thread Haren Myneni
The RTAS call ibm,get-dynamic-sensor-state is used to get the sensor state identified by the location code and the sensor token. The librtas library provides an API rtas_get_dynamic_sensor() which uses /dev/mem access for work area allocation but is restricted under system lockdown. This patch pro

[PATCH v7 1/7] powerpc/pseries: Define common functions for RTAS sequence calls

2025-03-09 Thread Haren Myneni
The RTAS call can be normal where retrieves the data form the hypervisor once or sequence based RTAS call which has to issue multiple times until the complete data is obtained. For some of these sequence RTAS calls, the OS should not interleave calls with different input until the sequence is compl

[PATCH v7 6/7] powerpc/pseries: Add papr-platform-dump character driver for dump retrieval

2025-03-09 Thread Haren Myneni
ibm,platform-dump RTAS call in combination with writable mapping /dev/mem is issued to collect platform dump from the hypervisor and may need multiple calls to get the complete dump. The current implementation uses rtas_platform_dump() API provided by librtas library to issue these RTAS calls. But

[PATCH v7 3/7] powerpc/pseries: Add papr-indices char driver for ibm,get-indices

2025-03-09 Thread Haren Myneni
The RTAS call ibm,get-indices is used to obtain indices and location codes for a specified indicator or sensor token. The current implementation uses rtas_get_indices() API provided by librtas library which allocates RMO buffer and issue this RTAS call in the user space. But writable mapping /dev/m

[PATCH v7 4/7] powerpc/pseries: Add ibm,set-dynamic-indicator RTAS call support

2025-03-09 Thread Haren Myneni
The RTAS call ibm,set-dynamic-indicator is used to set the new indicator state identified by a location code. The current implementation uses rtas_set_dynamic_indicator() API provided by librtas library which allocates RMO buffer and issue this RTAS call in the user space. But /dev/mem access by th

[PATCH v7 7/7] powerpc/pseries: Add a char driver for physical-attestation RTAS

2025-03-09 Thread Haren Myneni
The RTAS call ibm,physical-attestation is used to retrieve information about the trusted boot state of the firmware and hypervisor on the system, and also Trusted Platform Modules (TPM) data if the system is TCG 2.0 compliant. This RTAS interface expects the caller to define different command stru

Re: [PATCH 02/13] csky: move setup_initrd() to setup.c

2025-03-09 Thread Guo Ren
Move setup_initrd from mem_init into memblock_init, that LGTM. Acked by: Guo Ren (csky) On Fri, Mar 7, 2025 at 2:52 AM Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > Memory used by initrd should be reserved as soon as possible before > there any memblock allocations that might

Re: [PATCH v4 4/6] kvm powerpc/book3s-apiv2: Introduce kvm-hv specific PMU

2025-03-09 Thread Athira Rajeev
> On 24 Feb 2025, at 6:45 PM, Vaibhav Jain wrote: > > Introduce a new PMU named 'kvm-hv' inside a new module named 'kvm-hv-pmu' > to report Book3s kvm-hv specific performance counters. This will expose > KVM-HV specific performance attributes to user-space via kernel's PMU > infrastructure and

Re: [PATCH v4 6/6] powerpc/kvm-hv-pmu: Add perf-events for Hostwide counters

2025-03-09 Thread Athira Rajeev
> On 24 Feb 2025, at 6:45 PM, Vaibhav Jain wrote: > > Update 'kvm-hv-pmu.c' to add five new perf-events mapped to the five > Hostwide counters. Since these newly introduced perf events are at system > wide scope and can be read from any L1-Lpar CPU, 'kvmppc_pmu' scope and > capabilities are up