drm/xe/pf: Add functions to save and restore VF GuC state
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 13 Sep 2024 12:00:13 +0000 (14:00 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 16 Sep 2024 11:00:22 +0000 (13:00 +0200)
commitd86e3737c7ab907690c20bcde7c1f78f42fce6c2
treee17be24f2fdd207d13211ce8c7c435969a2347ac
parent804ce41f66e22d20751dd98e696ae3e0a958e4ac
drm/xe/pf: Add functions to save and restore VF GuC state

To successfully migrate a VM with attached GPU VF we also need to
migrate VF's GuC state. Add necessary functions that interacts with
GuC to save and restore a VF GuC state. We will start using them in
upcoming patches.

Since VF migration requires many more changes in the driver, enable
those functions only under debug config.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Tomasz Lis <tomasz.lis@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240913120013.1924-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt_sriov_pf.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h