[MTL] Lite restore causes significant flickering in Firefox
Hello! I understand that MTL support is not POR for xe.ko, but I've been using it reliably every day on my primary work laptop for a long time now.
Recently I upgraded and encountered a lot of flickering and flashing artifacts in Firefox, near the top of windows. Scrolling through the Mesa CI Jenkins website (downloaded to a static .html for consistency) was an easy way to reliably reproduce the issue. See the attached screencast:
I was able to bisect this to:
commit 6ef3bb60557d5e7f5af442c8c9ef0a9190bf3d23
Author: Fei Yang <fei.yang@intel.com>
AuthorDate: Thu Oct 17 09:27:10 2024 -0700
drm/xe: enable lite restore
And, I confirmed that drm-tip 2025y-02m-21d-19h-54m-34s with GUC_CTL_ENABLE_LITE_RESTORE
removed fixes the misrendering.
For reference, I'm using this hardware:
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Meteor Lake-P [Intel Arc Graphics] [8086:7d55] (rev 08)
running Archlinux, KDE 6.3.1, and my GuC version is:
[ 2.179547] xe 0000:00:02.0: [drm] Using GuC firmware from i915/mtl_guc_70.bin version 70.36.0
I also tried to reproduce this on various platforms:
- Battlemage B570/B580 is working fine
- Meteorlake - broke (reported here)
- Alderlake GT1 - seems to be working fine. I only did a few minutes of testing, but Firefox rendered with zero issues.
- Tigerlake GT2 - firefox seemed okay, but KDE System Settings had some flickering, which seemed to go away with Lite Restore disabled. But, I'm honestly not positive about these results (I had just done a massive system upgrade). I can try to collect clearer data if it's of interest.
I could submit a patch to disable lite restore on Meteorlake (or pre-Xe2?) if that's of interest. Or if you have other ideas for things to try, I'm happy to test out patches or collect data. Thanks!