| From c670d925c7b831dcf7293bb72068e0b170fe3afc Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Fri, 12 Dec 2025 05:21:46 +0800 |
| Subject: drm/xe: Increase TDF timeout |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: Jagmeet Randhawa <jagmeet.randhawa@intel.com> |
| |
| [ Upstream commit eafb6f62093f756535a7be1fc4559374a511e460 ] |
| |
| 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> |
| (cherry picked from commit d69d3636f5f7a84bae7cd43473b3701ad9b7d544) |
| Signed-off-by: Thomas Hellstrรถm <thomas.hellstrom@linux.intel.com> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/gpu/drm/xe/xe_device.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c |
| index 456899238377..5f757790d6f5 100644 |
| --- a/drivers/gpu/drm/xe/xe_device.c |
| +++ b/drivers/gpu/drm/xe/xe_device.c |
| @@ -1046,7 +1046,7 @@ static void tdf_request_sync(struct xe_device *xe) |
| * transient and need to be flushed.. |
| */ |
| if (xe_mmio_wait32(>->mmio, XE2_TDF_CTRL, TRANSIENT_FLUSH_REQUEST, 0, |
| - 150, NULL, false)) |
| + 300, NULL, false)) |
| xe_gt_err_once(gt, "TD flush timeout\n"); |
| |
| xe_force_wake_put(gt_to_fw(gt), fw_ref); |
| -- |
| 2.51.0 |
| |