]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: Increase TDF timeout
authorJagmeet Randhawa <jagmeet.randhawa@intel.com>
Thu, 11 Dec 2025 21:21:46 +0000 (05:21 +0800)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 12 Dec 2025 17:08:21 +0000 (09:08 -0800)
There are some corner cases where flushing transient
data may take slightly longer than the 150us timeout
we currently allow.  Update the driver to use a 300us
timeout instead based on the latest guidance from
the hardware team. An update to the bspec to formally
document this is expected to arrive soon.

Fixes: c01c6066e6fa ("drm/xe/device: implement transient flush")
Signed-off-by: Jagmeet Randhawa <jagmeet.randhawa@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/0201b1d6ec64d3651fcbff1ea21026efa915126a.1765487866.git.jagmeet.randhawa@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_device.c

index 24efb6a3e0ea6ff174cd352f11b4c967e310bc1d..339b9aef9499bfb6ae3a8c8c64aabbcbf1ca09c1 100644 (file)
@@ -1057,7 +1057,7 @@ static void tdf_request_sync(struct xe_device *xe)
                 * transient and need to be flushed..
                 */
                if (xe_mmio_wait32(&gt->mmio, XE2_TDF_CTRL, TRANSIENT_FLUSH_REQUEST, 0,
-                                  150, NULL, false))
+                                  300, NULL, false))
                        xe_gt_err_once(gt, "TD flush timeout\n");
        }
 }