diff options
author | Matthew Brost <matthew.brost@intel.com> | 2024-01-22 13:01:55 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2024-01-26 15:12:29 -0500 |
commit | 83a7173bacc9eb627b04e23c3d15cbe0fa656497 (patch) | |
tree | d44d957298bd3af24282ae849890df8fc0e112fb | |
parent | dc75d03716fe3944210a9381884c6b699fe0de90 (diff) |
drm/xe: Move TLB invalidation reset before HW reset
This is a software reset which can be done immediately after stopping
the UC.
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240122210156.1517444-3-matthew.brost@intel.com
-rw-r--r-- | drivers/gpu/drm/xe/xe_gt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c index 47cb87f599e4..675a2927a19e 100644 --- a/drivers/gpu/drm/xe/xe_gt.c +++ b/drivers/gpu/drm/xe/xe_gt.c @@ -638,12 +638,12 @@ static int gt_reset(struct xe_gt *gt) if (err) goto err_out; + xe_gt_tlb_invalidation_reset(gt); + err = do_gt_reset(gt); if (err) goto err_out; - xe_gt_tlb_invalidation_reset(gt); - err = do_gt_restart(gt); if (err) goto err_out; |