[PATCH] powerpc/pseries/dlpar: Search DRC index from ibm,drc-indexes for IO add

2025-04-30 Thread Haren Myneni
tree nodes for DLPAR IO add") Signed-off-by: Haren Myneni --- arch/powerpc/platforms/pseries/dlpar.c | 52 +- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index 21

[PATCH] Documentation: Fix description format for powerpc RTAS ioctls

2025-04-29 Thread Haren Myneni
l Attestation API <mailto:linuxppc-dev>" Reported-by: Stephen Rothwell Signed-off-by: Haren Myneni Fixes: 43d869ac25f1 ("powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls") Fixes: 8aa9efc0be66 ("powerpc/pseries: Add papr-platform-dump c

[PATCH] powerpc/pseries: Include linux/types.h in papr-platform-dump.h

2025-04-29 Thread Haren Myneni
5735.034ba...@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Haren Myneni --- arch/powerpc/include/uapi/asm/papr-platform-dump.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/uapi/asm/papr-platform-dump.h b/arch/powerpc/include/uapi/asm/papr-platform-du

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

2025-04-18 Thread Haren Myneni
mplemented this new kernel ABI support in librtas library for system lockdown Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/asm/rtas.h | 1 + .../uapi/asm/papr-physical-attestation.h | 31 ++ arch/powerpc/ker

[PATCH v10 0/7] Add character devices for indices, platform-dump and physical-attestation RTAS

2025-04-16 Thread Haren Myneni
v2: - Added unlock rtas_ibm_set_dynamic_indicator_lock and rtas_ibm_get_dynamic_sensor_state_lock mutex for failure cases as reported by Dan Carpenter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (7): powerpc/pseries: Define common functio

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

2025-04-16 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni Tested-by: Sathvika Vasireddy --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/ps

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

2025-04-16 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni Tested-by: Sathvika Vasireddy --- arch/power

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

2025-04-16 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni Tested-by: Sathvika Vasireddy --- .../userspace-api/ioctl/ioctl-number.rst | 2 + .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pserie

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

2025-04-16 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni Tested-by: Sathvika

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

2025-04-16 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni Tested-by: Sathvika Vasireddy --- arch/powerpc/include/asm/rtas.h |

[PATCH v10 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-04-16 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni Tested-by: Sathvika Vasireddy --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/uapi/asm/papr-indices.h | 41 +++ 2 files changed, 43 insertions(+) create mode

[PATCH v9 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-03-15 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/uapi/asm/papr-indices.h | 41 +++ 2 files changed, 43 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm

[PATCH v7 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-03-15 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/uapi/asm/papr-indices.h | 41 +++ 2 files changed, 43 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm

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

2025-03-15 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

[PATCH v9 0/7] Add character devices for indices, platform-dump

2025-03-15 Thread Haren Myneni
r failure cases as reported by Dan Carpenter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (7): powerpc/pseries: Define common functions for RTAS sequence calls powerpc/pseries: Define papr_indices_io_block for papr-indi

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

2025-03-15 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-03-15 Thread Haren Myneni
mplemented this new kernel ABI support in librtas library for system lockdown Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/asm/rtas.h | 1 + .../uapi/asm/papr-physical-attestation.h | 31 ++ arch/powerpc/ker

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

2025-03-15 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-03-15 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c|

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

2025-03-15 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch/powerpc

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

2025-03-11 Thread Haren Myneni
On Wed, 2025-03-12 at 10:55 +0530, Mukesh Kumar Chaurasiya wrote: > On Tue, Mar 11, 2025 at 03:50:42PM -0700, Haren Myneni wrote: > > The RTAS call can be normal where retrieves the data form the > > hypervisor once or sequence based RTAS call which has to > > issue mul

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

2025-03-11 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c|

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

2025-03-11 Thread Haren Myneni
mplemented this new kernel ABI support in librtas library for system lockdown Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/asm/rtas.h | 1 + .../uapi/asm/papr-physical-attestation.h | 31 ++ arch/powerpc/ker

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

2025-03-11 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-03-11 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-03-11 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

[PATCH v8 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-03-11 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/uapi/asm/papr-indices.h | 41 +++ 2 files changed, 43 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm

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

2025-03-11 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch/powerpc

[PATCH v8 0/7] Add character devices for indices, platform-dump and physical-attestation RTAS

2025-03-11 Thread Haren Myneni
al" patch). v2: - Added unlock rtas_ibm_set_dynamic_indicator_lock and rtas_ibm_get_dynamic_sensor_state_lock mutex for failure cases as reported by Dan Carpenter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (7

[PATCH v7 0/7] Add character devices for indices, platform-dump and physical-attestation RTAS

2025-03-11 Thread Haren Myneni
penter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (7): powerpc/pseries: Define common functions for RTAS sequence calls powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls powerpc/pseries: Add papr-indices

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

2025-03-09 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-03-09 Thread Haren Myneni
mplemented this new kernel ABI support in librtas library for system lockdown Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/asm/rtas.h | 1 + .../uapi/asm/papr-physical-attestation.h | 31 ++ arch/powerpc/ker

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

2025-03-09 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-03-09 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c|

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

2025-03-09 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

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

2025-03-09 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch/powerpc

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

2025-02-14 Thread Haren Myneni
mplemented this new kernel ABI support in librtas library for system lockdown Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/asm/rtas.h | 1 + .../uapi/asm/papr-physical-attestation.h | 31 ++ arch/powerpc/ker

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

2025-02-14 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c|

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

2025-02-14 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-02-14 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-02-14 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

[PATCH v6 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-02-14 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- .../userspace-api/ioctl/ioctl-number.rst | 2 + arch/powerpc/include/uapi/asm/papr-indices.h | 41 +++ 2 files changed, 43 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm

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

2025-02-14 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch/powerpc

[PATCH v6 0/7] Add character devices for indices, platform-dump

2025-02-14 Thread Haren Myneni
patch). v2: - Added unlock rtas_ibm_set_dynamic_indicator_lock and rtas_ibm_get_dynamic_sensor_state_lock mutex for failure cases as reported by Dan Carpenter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (7): powerpc/ps

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

2025-02-07 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-02-07 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c| 411 ++ 3 files changed, 427 inserti

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

2025-02-07 Thread Haren Myneni
mplemented this new kernel ABI support in librtas library for system lockdown Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + .../uapi/asm/papr-physical-attestation.h | 31 ++ arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platfor

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

2025-02-07 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-02-07 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

[PATCH v5 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-02-07 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- arch/powerpc/include/uapi/asm/papr-indices.h | 41 1 file changed, 41 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm/papr-indices.h diff --git a/arch/powerpc/include/uapi

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

2025-02-07 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch/powerpc

[PATCH v5 0/7] Add character devices for indices, platform-dump and physical-attestation RTAS

2025-02-07 Thread Haren Myneni
r failure cases as reported by Dan Carpenter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (7): powerpc/pseries: Define common functions for RTAS sequence calls powerpc/pseries: Define papr_indices_io_block for papr-indices ioct

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

2025-02-06 Thread Haren Myneni
On Thu, 2025-02-06 at 20:53 +0100, Michal Suchánek wrote: > On Thu, Feb 06, 2025 at 10:34:42AM -0800, Haren Myneni wrote: > > On Thu, 2025-02-06 at 16:32 +0100, Michal Suchánek wrote: > > > On Thu, Feb 06, 2025 at 07:28:14AM -0800, Haren Myneni wrote: > > > > On

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

2025-02-06 Thread Haren Myneni
On Thu, 2025-02-06 at 16:32 +0100, Michal Suchánek wrote: > On Thu, Feb 06, 2025 at 07:28:14AM -0800, Haren Myneni wrote: > > On Thu, 2025-02-06 at 10:18 +0100, Michal Suchánek wrote: > > > On Wed, Feb 05, 2025 at 11:51:19PM -0800, Haren Myneni wrote: > > > > On

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

2025-02-06 Thread Haren Myneni
On Thu, 2025-02-06 at 10:18 +0100, Michal Suchánek wrote: > On Wed, Feb 05, 2025 at 11:51:19PM -0800, Haren Myneni wrote: > > On Wed, 2025-02-05 at 15:28 +0100, Michal Suchánek wrote: > > > Hello, > > > > > > thanks for working on this! > > > > &g

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

2025-02-05 Thread Haren Myneni
is used to obtain data based on indicator and sensor, not related to platform dump. ibm,platform-dump is used only on non-HMC based systems and BMC interface initiates manually to save the dump on tne partition. Sorry in case caused confusion in the previous discussion. > > > On Fri

[PATCH v4 0/7] Add character devices for indices, platform-dump and physical-attestation RTAS

2025-02-05 Thread Haren Myneni
cter driver for dump retrieval" patch). v2: - Added unlock rtas_ibm_set_dynamic_indicator_lock and rtas_ibm_get_dynamic_sensor_state_lock mutex for failure cases as reported by Dan Carpenter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test

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

2025-02-05 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch/powerpc

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

2025-02-05 Thread Haren Myneni
mplemented this new kernel ABI support in librtas library for system lockdown Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + .../uapi/asm/papr-physical-attestation.h | 31 ++ arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platfor

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

2025-02-05 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-02-05 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c| 409 ++ 3 files changed, 425 inserti

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

2025-02-05 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

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

2025-02-05 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

[PATCH v4 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-02-05 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- arch/powerpc/include/uapi/asm/papr-indices.h | 41 1 file changed, 41 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm/papr-indices.h diff --git a/arch/powerpc/include/uapi

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

2025-01-27 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c| 409 ++ 3 files changed, 425 inserti

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

2025-01-27 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-01-27 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

[PATCH v3 2/6] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-01-27 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- arch/powerpc/include/uapi/asm/papr-indices.h | 41 1 file changed, 41 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm/papr-indices.h diff --git a/arch/powerpc/include/uapi

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

2025-01-27 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

[PATCH v3 1/6] powerpc/pseries: Define common functions for RTAS sequence calls

2025-01-27 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch

[PATCH v3 0/6] Add character devices for indices and platform-dump RTAS

2025-01-27 Thread Haren Myneni
gs for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (6): powerpc/pseries: Define common functions for RTAS sequence calls powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls powerpc/pseries: Add papr-indices char driver for ibm,g

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

2025-01-10 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c| 408 ++ 3 files changed, 424 inserti

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

2025-01-10 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-01-10 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-01-10 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

[PATCH v2 1/6] powerpc/pseries: Define common functions for RTAS sequence calls

2025-01-10 Thread Haren Myneni
including work area allocation. End:RTAS call specific function to free up resources (free work area) after the sequence is completed. Work: The actual RTAS call specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch

[PATCH v2 2/6] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-01-10 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- arch/powerpc/include/uapi/asm/papr-indices.h | 41 1 file changed, 41 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm/papr-indices.h diff --git a/arch/powerpc/include/uapi

[PATCH v2 0/6] Add character devices for indices and platform-dump RTAS

2025-01-10 Thread Haren Myneni
rtas_ibm_set_dynamic_indicator_lock and rtas_ibm_get_dynamic_sensor_state_lock mutex for failure cases as reported by Dan Carpenter - Fixed build warnings for the proper function parameter descriptions as reported by kernel test robot Haren Myneni (6): powerpc/pseries: Define common functions for RTAS sequence calls

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

2025-01-04 Thread Haren Myneni
()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni --- .../include/uapi/asm/papr-platform-dump.h | 15 + arch/powerpc/platforms/pseries/Makefile | 1 + .../platforms/pseries/papr-platform-dump.c| 408 ++ 3 files changed, 424 insertions(+)

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

2025-01-04 Thread Haren Myneni
OR_IOC_GET, struct papr_indices_io_block) - The user space specifies input parameters in papr_indices_io_block struct - Returned state for the specified sensor is copied to papr_indices_io_block.dynamic_param.state Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h

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

2025-01-04 Thread Haren Myneni
DWR); int ret = ioctl(fd, PAPR_DYNAMIC_INDICATOR_IOC_SET, struct papr_indices_io_block) - The user space passes input parameters in papr_indices_io_block struct Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/ker

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

2025-01-04 Thread Haren Myneni
) for this new ABI for system lockdown. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c| 2 +- arch/powerpc/platforms/pseries/Makefile | 2 +- arch/powerpc/platforms/pseries/papr-indic

[PATCH 2/6] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-01-04 Thread Haren Myneni
for the input indicator. Signed-off-by: Haren Myneni --- arch/powerpc/include/uapi/asm/papr-indices.h | 41 1 file changed, 41 insertions(+) create mode 100644 arch/powerpc/include/uapi/asm/papr-indices.h diff --git a/arch/powerpc/include

[PATCH 0/6] Add character devices for indices and platform-dump RTAS

2025-01-04 Thread Haren Myneni
dump retrieval - Introduce /dev/papr-platform-dump char driver and adds support for ibm,platform-dump. Received suggestions from the previous post as a separate patch - Updated the patch with invalidating the dump using a separate ioctl. Haren Myneni (6): powerpc/pseries: Define common

[PATCH 1/6] powerpc/pseries: Define common functions for RTAS sequence HCALLs

2025-01-04 Thread Haren Myneni
work area allocation. End:HCALL specific function to free up resources (free work area) after the sequence is completed. Work: The actual HCALL specific function which collects the data from the hypervisor. Signed-off-by: Haren Myneni --- arch/powerpc/platforms/pseries

[PATCH] powerpc/pseries/vas: Add close() callback in vas_vm_ops struct

2024-12-13 Thread Haren Myneni
() before freeing VMA. The VMA address in the VAS window is set to NULL after holding the window mmap_mutex. Fixes: 37e6764895ef ("powerpc/pseries/vas: Add VAS migration handler") Signed-off-by: Haren Myneni --- arch/powerpc/platforms/book3s/vas-api.c | 36 + 1 fi

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

2024-12-10 Thread Haren Myneni
On Thu, 2024-12-05 at 11:42 +0100, Michal Suchánek wrote: > On Wed, Dec 04, 2024 at 06:14:06PM -0800, Haren Myneni wrote: > > On Wed, 2024-12-04 at 17:57 +0100, Michal Suchánek wrote: > > > On Mon, Dec 02, 2024 at 08:40:05PM -0800, Haren Myneni wrote: > > > > On

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

2024-12-04 Thread Haren Myneni
On Wed, 2024-12-04 at 17:57 +0100, Michal Suchánek wrote: > On Mon, Dec 02, 2024 at 08:40:05PM -0800, Haren Myneni wrote: > > On Wed, 2024-11-27 at 10:11 +0100, Michal Suchánek wrote: > > > On Tue, Nov 26, 2024 at 12:40:20PM -0800, Haren Myneni wrote: > > > > On

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

2024-12-02 Thread Haren Myneni
On Wed, 2024-11-27 at 10:11 +0100, Michal Suchánek wrote: > On Tue, Nov 26, 2024 at 12:40:20PM -0800, Haren Myneni wrote: > > On Wed, 2024-11-27 at 00:42 +0530, Mahesh J Salgaonkar wrote: > > > On 2024-11-23 21:20:39 Sat, Haren Myneni wrote: > > > [.

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

2024-11-26 Thread Haren Myneni
On Wed, 2024-11-27 at 00:42 +0530, Mahesh J Salgaonkar wrote: > On 2024-11-23 21:20:39 Sat, Haren Myneni wrote: > [...] > > +static ssize_t papr_platform_dump_handle_read(struct file *file, > > + char __user *buf, size_t size, loff_t *off) > > +{ > > + s

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

2024-11-23 Thread Haren Myneni
call and returns 0. The read API should use the file descriptor obtained from ioctl based on dump ID so that gets dump contents for the corresponding dump ID. Implemented support in librtas (rtas_platform_dump()) for this new ABI to support system lockdown. Signed-off-by: Haren Myneni ---

Re: [PATCH v3 3/3] powerpc/pseries/dlpar: Add device tree nodes for DLPAR IO add

2024-08-28 Thread Haren Myneni
On Wed, 2024-08-28 at 18:12 +1000, Michael Ellerman wrote: > Hi Haren, > > One query below about the of_node refcounting. > > Haren Myneni writes: > > In the powerpc-pseries specific implementation, the IO hotplug > > event is handled in the user space (drmgr tool

[PATCH v3 3/3] powerpc/pseries/dlpar: Add device tree nodes for DLPAR IO add

2024-08-21 Thread Haren Myneni
/ properties to the device tree. Signed-off-by: Scott Cheloha Signed-off-by: Haren Myneni --- arch/powerpc/platforms/pseries/dlpar.c | 130 + 1 file changed, 130 insertions(+) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c

[PATCH v3 2/3] powerpc/pseries/dlpar: Remove device tree node for DLPAR IO remove

2024-08-21 Thread Haren Myneni
space so that drmgr tool can remove the corresponding device tree nodes based on DRC index from the device tree. Signed-off-by: Scott Cheloha Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h| 1 + arch/powerpc/platforms/pseries/dlpar.c | 88 +- 2

[PATCH v3 1/3] powerpc/pseries: Use correct data types from pseries_hp_errorlog struct

2024-08-21 Thread Haren Myneni
t Closes: https://lore.kernel.org/oe-kbuild-all/202408182142.wuikqyae-...@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202408182302.o7qro45s-...@intel.com/ Signed-off-by: Haren Myneni v3: - Fix warnings from using incorrect data types in pseries_hp_errorlog struct v2: - Remove pr_i

[PATCH] powerpc/pseries: Use correct data types from pseries_hp_errorlog struct

2024-08-20 Thread Haren Myneni
t Closes: https://lore.kernel.org/oe-kbuild-all/202408182142.wuikqyae-...@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202408182302.o7qro45s-...@intel.com/ Signed-off-by: Haren Myneni --- arch/powerpc/platforms/pseries/dlpar.c| 24 --- arch/powerpc/platform

[PATCH v2 1/2] powerpc/pseries/dlpar: Remove device tree node for DLPAR IO remove

2024-08-16 Thread Haren Myneni
space so that drmgr tool can remove the corresponding device tree nodes based on DRC index from the device tree. Signed-off-by: Scott Cheloha Signed-off-by: Haren Myneni v2: - Remove pr_info() and TODO comments - Update more information in the commit logs --- arch/powerpc/include/asm/rtas.h

[PATCH v2 2/2] powerpc/pseries/dlpar: Add device tree nodes for DLPAR IO add

2024-08-16 Thread Haren Myneni
/ properties to the device tree. Signed-off-by: Scott Cheloha Signed-off-by: Haren Myneni --- arch/powerpc/platforms/pseries/dlpar.c | 130 + 1 file changed, 130 insertions(+) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c

[PATCH 2/2] powerpc/pseries/dlpar: Add device tree nodes for DLPAR IO add

2024-08-13 Thread Haren Myneni
-off-by: Scott Cheloha Signed-off-by: Haren Myneni --- arch/powerpc/platforms/pseries/dlpar.c | 134 + 1 file changed, 134 insertions(+) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index 993fd3e8f6ea..fb34d5859da8 100644

[PATCH 1/2] powerpc/pseries/dlpar: Remove device tree node for DLPAR IO remove

2024-08-13 Thread Haren Myneni
-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h| 1 + arch/powerpc/platforms/pseries/dlpar.c | 87 +- 2 files changed, 87 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h index 065ffd1b2f8a

  1   2   3   4   5   6   7   8   >