[PATCH v3 5/9] powerpc/pseries: Receive payload with ibm,receive-hvpipe-msg RTAS
Tyrel Datwyler
tyreld at linux.ibm.com
Sat Aug 30 05:49:44 AEST 2025
On 8/28/25 4:08 PM, Haren Myneni wrote:
> 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 source ID and the
> message type such as payload or closed pipe to the specific
> source. The hypervisor will not generate another interrupt for
> the next payload until the partition reads the previous payload.
> It means the hvpipe is blocked and will not deliver other events
> for any source. The maximum data length of 4048 bytes is
> supported with this RTAS call right now.
>
> The user space uses read() to receive data from HMC which issues
> ibm,receive-hvpipe-msg RTAS and the kernel returns the buffer
> length (including papr_hvpipe_hdr length) to the user space for
> success or RTAS failure error. If the message is regarding the
> pipe closed, kernel just returns the papr_hvpipe_hdr with
> flags = HVPIPE_LOST_CONNECTION and expects the user space to
> close FD for the corresponding source.
>
> bm,receive-hvpipe-msg RTAS call passes the buffer and returns
Missing the "i" in "ibm,receive-hvpipe-msg".
> the source ID from where this payload is received and the
> payload length.
>
> Signed-off-by: Haren Myneni <haren at linux.ibm.com>
> Reviewed-by: Mahesh Salgaonkar <mahesh at linux.ibm.com>
> Tested-by: Shashank MS <shashank.gowda at in.ibm.com>
> ---
Reviewed-by: Tyrel Datwyler <tyreld at linux.ibm.com>
More information about the Linuxppc-dev
mailing list