drm/xe/vf: Add support for VF to query its configuration
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 16 May 2024 11:05:44 +0000 (13:05 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 16 May 2024 18:18:34 +0000 (20:18 +0200)
commitf2345ed5374ef964ff97e13e82f53b07c827b373
tree49179524fe6bfbb9d89ef1aced8dabbead0e7385
parentc454f1a6b994e44e338ac837981441a298c941b8
drm/xe/vf: Add support for VF to query its configuration

The VF driver doesn't know which GuC firmware was loaded by the PF
driver and must perform GuC ABI version handshake prior to sending
any other H2G actions to the GuC to submit workloads.

The VF driver also doesn't have access to the fuse registers and
must rely on the runtime info, which includes values of the fuse
registers, that the PF driver is exposing to the VFs.

Add functions to cover that functionality. We will use these
functions in upcoming patches.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com>
Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240516110546.2216-5-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt_sriov_vf.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_vf.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_types.h