From: Matthew Brost Date: Mon, 22 Jan 2024 21:01:55 +0000 (-0800) Subject: drm/xe: Move TLB invalidation reset before HW reset X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=83a7173bacc9eb627b04e23c3d15cbe0fa656497;p=linux.git 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 --- 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;