Skip to content

Commit c770467

Browse files
ksatya-devThomas Hellström
authored andcommitted
drm/xe/vf: Fix queuing of recovery work
Ensure VF migration recovery work is only queued when no recovery is already queued and teardown is not in progress. Fixes: b47c0c0 ("drm/xe/vf: Teardown VF post migration worker on driver unload") Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Tomasz Lis <tomasz.lis@intel.com> Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patch.msgid.link/20251210052546.622809-5-satyanarayana.k.v.p@intel.com (cherry picked from commit 8d8cf42) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 449bcd5 commit c770467

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_gt_sriov_vf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ static void vf_start_migration_recovery(struct xe_gt *gt)
733733

734734
spin_lock(&gt->sriov.vf.migration.lock);
735735

736-
if (!gt->sriov.vf.migration.recovery_queued ||
736+
if (!gt->sriov.vf.migration.recovery_queued &&
737737
!gt->sriov.vf.migration.recovery_teardown) {
738738
gt->sriov.vf.migration.recovery_queued = true;
739739
WRITE_ONCE(gt->sriov.vf.migration.recovery_inprogress, true);

0 commit comments

Comments
 (0)