From: Tejas Upadhyay Date: Thu, 5 Mar 2026 12:19:07 +0000 (+0530) Subject: drm/xe/xe3p: Skip TD flush X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8c3a913c8582d255899212c68492eeb58f06f07;p=thirdparty%2Fkernel%2Flinux.git drm/xe/xe3p: Skip TD flush Xe3p has HW ability to do transient display flush so the xe driver can enable this HW feature by default and skip the software TD flush. Bspec: 60002 Reviewed-by: Thomas Hellström Reviewed-by: Shekhar Chauhan Link: https://patch.msgid.link/20260305121902.1892593-10-tejas.upadhyay@intel.com Signed-off-by: Tejas Upadhyay --- diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index daf2c815082c2..05fa16044f9bf 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -1163,6 +1163,14 @@ void xe_device_td_flush(struct xe_device *xe) { struct xe_gt *root_gt; + /* + * From Xe3p onward the HW takes care of flush of TD entries also along + * with flushing XA entries, which will be at the usual sync points, + * like at the end of submission, so no manual flush is needed here. + */ + if (GRAPHICS_VER(xe) >= 35) + return; + if (!IS_DGFX(xe) || GRAPHICS_VER(xe) < 20) return;