]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pds_fwctl: add rpc and query support
authorBrett Creeley <brett.creeley@amd.com>
Thu, 20 Mar 2025 19:44:11 +0000 (12:44 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 21 Mar 2025 23:57:55 +0000 (20:57 -0300)
commit92c66ee829b99a860a90f62ef16df3e42f92edac
tree02533c676755cca77ede76eea9c613505ecfe9e3
parent4d09dd11d7d0e7e7f535c0abc7de19b9da6612e9
pds_fwctl: add rpc and query support

The pds_fwctl driver doesn't know what RPC operations are available
in the firmware, so also doesn't know what scope they might have.  The
userland utility supplies the firmware "endpoint" and "operation" id values
and this driver queries the firmware for endpoints and their available
operations.  The operation descriptions include the scope information
which the driver uses for scope testing.

Link: https://patch.msgid.link/r/20250320194412.67983-6-shannon.nelson@amd.com
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/fwctl/pds/main.c
include/linux/pds/pds_adminq.h
include/uapi/fwctl/pds.h