]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/pf: Add SR-IOV GuC Relay PF services
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 23 Apr 2024 18:04:35 +0000 (20:04 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 24 Apr 2024 13:10:42 +0000 (15:10 +0200)
commit98e62805921cebcd2fcac3692037ca2ebef63b4a
tree1aa5f8c704a8529a0580c183006ebca93a8f97ce
parentdec793860d5137c58c633712554abfed71642a88
drm/xe/pf: Add SR-IOV GuC Relay PF services

We already have mechanism that allows a VF driver to communicate
with the PF driver, now add PF side handlers for VF2PF requests
defined in version 1.0 of VF/PF GuC Relay ABI specification.

The VF2PF_HANDSHAKE request must be used by the VF driver to
negotiate the ABI version prior to sending any other request.
We will reset any negotiated version later during FLR.

The outcome of the VF2PF_QUERY_RUNTIME requests depends on actual
platform, for legacy platforms used as SDV is provided as-is, for
latest platforms it is preliminary, and might be changed.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240423180436.2089-5-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_service.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_service_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
drivers/gpu/drm/xe/xe_guc_relay.c