]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/xe3p: Skip TD flush
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Thu, 5 Mar 2026 12:19:07 +0000 (17:49 +0530)
committerTejas Upadhyay <tejas.upadhyay@intel.com>
Mon, 23 Mar 2026 09:54:41 +0000 (15:24 +0530)
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 <thomas.hellstrom@linux.intel.com>
Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
Link: https://patch.msgid.link/20260305121902.1892593-10-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
drivers/gpu/drm/xe/xe_device.c

index daf2c815082c2c346d668bcfa4869848ae0787e0..05fa16044f9bf2607943b76531f1902acb556084 100644 (file)
@@ -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;