drm/xe/vf: Defer fixups if migrated twice fast
authorTomasz Lis <tomasz.lis@intel.com>
Mon, 4 Nov 2024 21:34:49 +0000 (22:34 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 6 Nov 2024 14:25:30 +0000 (15:25 +0100)
commitabd2202047fc75d52dcd729d5a1534f019822e9c
tree72e81854c0da050ab6de91fc25e7e07bd047ccca
parent4be3fca2ce6e207802a4ee36882ececde152221f
drm/xe/vf: Defer fixups if migrated twice fast

If another VF migration happened during post-migration recovery,
then the current worker should be finished to allow the next
one start swiftly and cleanly.

Check for defer in two places: before fixups, and before
sending RESFIX_DONE.

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-6-tomasz.lis@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
drivers/gpu/drm/xe/xe_sriov_vf.c