From: Kenneth Graunke <kenneth@whitecape.org>
To: intel-xe@lists.freedesktop.org, Maarten Lankhorst <dev@lankhorst.se>
Subject: Re: [PATCH] drm/xe: Increase global invalidation timeout to 1000us
Date: Mon, 06 Oct 2025 19:21:22 -0700 [thread overview]
Message-ID: <12755240.O9o76ZdvQC@imeretto> (raw)
In-Reply-To: <20250912223254.147940-1-kenneth@whitecape.org>
Humble ping - would love to see this land. Even if there's additional work to
do here or someone finds a better solution, it's no harder to use this as a
starting point than where we're at now. And, it would help me, and others.
6.17 is out now and my display has been locking up since 6.15. Would love to
stop having to remember to boot up custom kernels to work around this.
(Also... I am not a kernel committer. Would need someone to review/push.)
--Ken
On Friday, September 12, 2025 3:31:45 PM Pacific Daylight Time Kenneth Graunke
wrote:
> The previous timeout of 500us seems to be too small; panning the map in
> the Roll20 VTT in Firefox on a KDE/Wayland desktop reliably triggered
> timeouts within a few seconds of usage, causing the monitor to freeze
> and the following to be printed to dmesg:
>
> [Jul30 13:44] xe 0000:03:00.0: [drm] *ERROR* GT0: Global invalidation
> timeout [Jul30 13:48] xe 0000:03:00.0: [drm] *ERROR* [CRTC:82:pipe A]
> flip_done timed out
>
> I haven't hit a single timeout since increasing it to 1000us even after
> several multi-hour testing sessions.
>
> Fixes: c0114fdf6d4a ("drm/xe: Move DSB l2 flush to a more sensible place")
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5710
> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
> Cc: stable@vger.kernel.org
> Cc: Maarten Lankhorst <dev@lankhorst.se>
> ---
> drivers/gpu/drm/xe/xe_device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> This fixes my desktop which has been broken since 6.15. Given that
> https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6097 was recently
> filed and they seem to need a timeout of 2000 (and are having somewhat
> different issues), maybe more work's needed here...but I figured I'd
> send out the fix for my system and let xe folks figure out what they'd
> like to do. Thanks :)
>
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index a4d12ee7d575..6339b8800914 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -1064,7 +1064,7 @@ void xe_device_l2_flush(struct xe_device *xe)
> spin_lock(>->global_invl_lock);
>
> xe_mmio_write32(>->mmio, XE2_GLOBAL_INVAL, 0x1);
> - if (xe_mmio_wait32(>->mmio, XE2_GLOBAL_INVAL, 0x1, 0x0, 500,
NULL,
> true)) + if (xe_mmio_wait32(>->mmio, XE2_GLOBAL_INVAL, 0x1, 0x0, 1000,
> NULL, true)) xe_gt_err_once(gt, "Global invalidation timeout\n");
>
> spin_unlock(>->global_invl_lock);
next prev parent reply other threads:[~2025-10-07 2:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-12 22:31 [PATCH] drm/xe: Increase global invalidation timeout to 1000us Kenneth Graunke
2025-09-12 23:45 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2025-09-15 16:24 ` ✗ CI.checkpatch: warning for drm/xe: Increase global invalidation timeout to 1000us (rev2) Patchwork
2025-09-15 16:25 ` ✓ CI.KUnit: success " Patchwork
2025-09-15 17:01 ` ✓ Xe.CI.BAT: " Patchwork
2025-09-15 21:40 ` ✗ Xe.CI.Full: failure " Patchwork
2025-10-07 2:21 ` Kenneth Graunke [this message]
2025-10-09 16:20 ` [PATCH] drm/xe: Increase global invalidation timeout to 1000us Maarten Lankhorst
2025-10-09 14:33 ` Lin, Shuicheng
2025-10-09 15:00 ` Lucas De Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12755240.O9o76ZdvQC@imeretto \
--to=kenneth@whitecape.org \
--cc=dev@lankhorst.se \
--cc=intel-xe@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox