powerpc/pseries: Define papr-hvpipe ioctl
authorHaren Myneni <haren@linux.ibm.com>
Tue, 9 Sep 2025 08:43:53 +0000 (01:43 -0700)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 15 Sep 2025 08:08:39 +0000 (13:38 +0530)
commit043439ad1a23cd3f65628310d1f5a06e61f8b431
tree74aebe383686ce00cb6d56e740f78445953d81a0
parentdaaa574aba6f9c683408b58a7ab2dc775ece2f98
powerpc/pseries: Define papr-hvpipe ioctl

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 and ibm,receive-hvpipe-msg
RTAS calls.

Also defined papr_hvpipe_hdr which will added in the payload
that is passed between the kernel and the user space.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Tested-by: Shashank MS <shashank.gowda@in.ibm.com>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250909084402.1488456-2-haren@linux.ibm.com
Documentation/userspace-api/ioctl/ioctl-number.rst
arch/powerpc/include/uapi/asm/papr-hvpipe.h [new file with mode: 0644]