]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/vf: Send RESFIX_DONE message at end of VF restore
authorTomasz Lis <tomasz.lis@intel.com>
Mon, 4 Nov 2024 21:34:47 +0000 (22:34 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 6 Nov 2024 14:25:30 +0000 (15:25 +0100)
commit1255954d9fdc5538be90034357525ef85bdbcf29
tree1b3fd64c7ad0862ea27c27d816490793f76c9466
parent360a1f3e96dc21794d688bb4f885542b2b14e619
drm/xe/vf: Send RESFIX_DONE message at end of VF restore

After restore, GuC will not answer to any messages from VF KMD until
fixups are applied. When that is done, VF KMD sends RESFIX_DONE
message to GuC, at which point GuC resumes normal operation.

This patch implements sending the RESFIX_DONE message at end of
post-migration recovery.

v2: keep pm ref during whole recovery, style fixes (Michal)
v3: assert removal to separate patch, debug message per GuC instead
  of one, comments changes (Michal)
v4: improve one debug message (Michal)

Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241104213449.1455694-4-tomasz.lis@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_gt_sriov_vf.h
drivers/gpu/drm/xe/xe_sriov_vf.c