summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_gt.c
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2023-07-10 12:40:45 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:35:23 +0300
commit7b24cc3e309f31ad77b2ed136ce7606e0b3f67bb (patch)
treeee3bed2d56c48bbf428e815fd0f529478471db74 /drivers/gpu/drm/xe/xe_gt.c
parenta4d362bbed8c86a632b5e22bf64d9c5564e3766e (diff)
downloadlinux-7b24cc3e309f31ad77b2ed136ce7606e0b3f67bb.tar.xz
drm/xe/gt: tweak placement for signalling TLB fences after GT reset
Assumption here is that submission is disabled along with CT, and full GT reset will also nuke TLBs, so should be safe to signal all in-flight TLB fences, but only after the actual reset so move the placement slightly. Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt.c')
-rw-r--r--drivers/gpu/drm/xe/xe_gt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index bc76678a8276..a21d44bfe9e8 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -519,7 +519,6 @@ static int gt_reset(struct xe_gt *gt)
xe_uc_stop_prepare(&gt->uc);
xe_gt_pagefault_reset(gt);
- xe_gt_tlb_invalidation_reset(gt);
err = xe_uc_stop(&gt->uc);
if (err)
@@ -529,6 +528,8 @@ static int gt_reset(struct xe_gt *gt)
if (err)
goto err_out;
+ xe_gt_tlb_invalidation_reset(gt);
+
err = do_gt_restart(gt);
if (err)
goto err_out;