drm/xe/pf: Add functions to save and restore VF configuration blob
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 19 Sep 2024 17:15:27 +0000 (19:15 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 7 Oct 2024 11:00:09 +0000 (13:00 +0200)
commite9a14537feb9f4223548b569748098c1ad7360d0
tree220d738c97c71bb8a0a2f497593176c55803d0cc
parentbdc2c4d5756c8baaca820fec24fcc6355946da61
drm/xe/pf: Add functions to save and restore VF configuration blob

We already have support to save and restore GuC VF state, but that
will only work when the target VF configuration (provisioning) will
be exactly the same as the source VF configuration. To help with
assuring that both configurations match, allow to encode whole VF
configuration that can be saved as blob and restored later.

In the future we may want to use such captured configuration blobs
as templates to make sure we provision VFs with exactly the same
configuration that was previously tested or recommended, or when
debugfs knobs are not be available.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240919171528.1451-5-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h