From 83a7173bacc9eb627b04e23c3d15cbe0fa656497 Mon Sep 17 00:00:00 2001 From: Matthew Brost Date: Mon, 22 Jan 2024 13:01:55 -0800 Subject: [PATCH] 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 Reviewed-by: Michal Wajdeczko Signed-off-by: Rodrigo Vivi Link: https://patchwork.freedesktop.org/patch/msgid/20240122210156.1517444-3-matthew.brost@intel.com --- drivers/gpu/drm/xe/xe_gt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c index 47cb87f599e46..675a2927a19ef 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; -- 2.30.2