* Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
@ 2026-02-10 18:06 Marek Marczykowski-Górecki
2026-02-12 14:33 ` Rodrigo Vivi
2026-02-12 15:11 ` Roger Pau Monné
0 siblings, 2 replies; 11+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-02-10 18:06 UTC (permalink / raw)
To: xen-devel; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 2397 bytes --]
Hi,
Recently I started testing compatibility with Intel Lunar Lake. This is
the first one that uses "xe" instead of "i915" Linux driver for iGPU.
I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
Linux 6.17.9 in this test.
The result is rather sad:
https://openqa.qubes-os.org/tests/166691#step/simple_gui_apps/30
or
https://openqa.qubes-os.org/tests/166700#step/desktop_linux_manager_config/42
The black windows are mapped from a domU (using grant tables). But if
you watch the video (in the "logs&assets" tab), login window of dom0 is
affected too (background is rendered significantly later than its text
and widgets).
I didn't found any relevant errors in kernel (or Xen) messages. Just in
case, full dumps:
https://openqa.qubes-os.org/tests/166700/file/desktop_linux_manager_config-journalctl.log
https://openqa.qubes-os.org/tests/166700/file/desktop_linux_manager_config-xl-dmesg.log
Some user reported similar issue with Intel Arc Pro B50, which also uses
"xe" driver:
https://github.com/QubesOS/qubes-issues/issues/10661
I tested also Linux 6.19-rc8, no improvements.
My previous tests of the xe driver on older systems (Meteor Lake, Raptor
Lake) resulted in similar behavior, while i915 works fine there. But there
I needed to use force_probe parameter, and blamed the issue on xe not
officially supporting those platforms. I wanted to compare with i915 on
LNL, but i915 doesn't support that model at all (and if I force it, I
get kernel panic in i915_pci_probe...).
Interestingly, it appears to work just fine on Qubes OS 4.2 (Xen 4.17.6,
same Linux dom0 version). I did not tested with Xen 4.21.
In both cases, our Xen has the patch to use Linux's PAT layout applied.
That's a workaround for
https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7648, which is
fixed now, but apparently similar bug is still present in a few other
drivers (including binary nvidia one...).
The same Linux kernel started without Xen works just fine.
Any ideas?
Having good and a bad version, I can try to bisect this one, but given
it requires rebuilding Xen toolstack each time too (due to bisection
across releases), I'd rather avoid it if possible...
I'm CC-ing also intel-xe list, maybe somebody there have some ideas how
to debug this.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-10 18:06 Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19 Marek Marczykowski-Górecki
@ 2026-02-12 14:33 ` Rodrigo Vivi
2026-02-12 15:11 ` Roger Pau Monné
1 sibling, 0 replies; 11+ messages in thread
From: Rodrigo Vivi @ 2026-02-12 14:33 UTC (permalink / raw)
To: Marek Marczykowski-Górecki; +Cc: xen-devel, intel-xe
On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> Hi,
>
> Recently I started testing compatibility with Intel Lunar Lake. This is
> the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> Linux 6.17.9 in this test.
> The result is rather sad:
> https://openqa.qubes-os.org/tests/166691#step/simple_gui_apps/30
> or
> https://openqa.qubes-os.org/tests/166700#step/desktop_linux_manager_config/42
>
> The black windows are mapped from a domU (using grant tables). But if
> you watch the video (in the "logs&assets" tab), login window of dom0 is
> affected too (background is rendered significantly later than its text
> and widgets).
>
> I didn't found any relevant errors in kernel (or Xen) messages. Just in
> case, full dumps:
> https://openqa.qubes-os.org/tests/166700/file/desktop_linux_manager_config-journalctl.log
> https://openqa.qubes-os.org/tests/166700/file/desktop_linux_manager_config-xl-dmesg.log
>
> Some user reported similar issue with Intel Arc Pro B50, which also uses
> "xe" driver:
> https://github.com/QubesOS/qubes-issues/issues/10661
>
> I tested also Linux 6.19-rc8, no improvements.
>
> My previous tests of the xe driver on older systems (Meteor Lake, Raptor
> Lake) resulted in similar behavior, while i915 works fine there. But there
> I needed to use force_probe parameter, and blamed the issue on xe not
> officially supporting those platforms. I wanted to compare with i915 on
> LNL, but i915 doesn't support that model at all (and if I force it, I
> get kernel panic in i915_pci_probe...).
>
> Interestingly, it appears to work just fine on Qubes OS 4.2 (Xen 4.17.6,
> same Linux dom0 version). I did not tested with Xen 4.21.
>
> In both cases, our Xen has the patch to use Linux's PAT layout applied.
> That's a workaround for
> https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7648, which is
> fixed now, but apparently similar bug is still present in a few other
> drivers (including binary nvidia one...).
>
> The same Linux kernel started without Xen works just fine.
>
> Any ideas?
>
> Having good and a bad version, I can try to bisect this one, but given
> it requires rebuilding Xen toolstack each time too (due to bisection
> across releases), I'd rather avoid it if possible...
>
> I'm CC-ing also intel-xe list, maybe somebody there have some ideas how
> to debug this.
Unfortunately I'm afraid we don't have any good advice here.
First I thought about trying to isolate Mesa version in the Qubes OS
version, but the fact that it works in bare metal makes this a silly
option.
It looks more a cache management indeed, and I'm afraid we will
only find the definite spot after the bisect :(
>
> --
> Best Regards,
> Marek Marczykowski-Górecki
> Invisible Things Lab
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-10 18:06 Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19 Marek Marczykowski-Górecki
2026-02-12 14:33 ` Rodrigo Vivi
@ 2026-02-12 15:11 ` Roger Pau Monné
2026-02-12 15:32 ` Marek Marczykowski-Górecki
2026-02-13 1:23 ` Marek Marczykowski-Górecki
1 sibling, 2 replies; 11+ messages in thread
From: Roger Pau Monné @ 2026-02-12 15:11 UTC (permalink / raw)
To: Marek Marczykowski-Górecki; +Cc: xen-devel, intel-xe
On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> Hi,
>
> Recently I started testing compatibility with Intel Lunar Lake. This is
> the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> Linux 6.17.9 in this test.
Not sure it's going to help a lot, but does using a PVH dom0 make any
difference?
Thanks, Roger.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-12 15:11 ` Roger Pau Monné
@ 2026-02-12 15:32 ` Marek Marczykowski-Górecki
2026-02-12 16:16 ` Roger Pau Monné
2026-02-13 1:23 ` Marek Marczykowski-Górecki
1 sibling, 1 reply; 11+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-02-12 15:32 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: xen-devel, intel-xe
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> > Hi,
> >
> > Recently I started testing compatibility with Intel Lunar Lake. This is
> > the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> > I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> > Linux 6.17.9 in this test.
>
> Not sure it's going to help a lot, but does using a PVH dom0 make any
> difference?
Yes, it makes a difference. I end up with black screen as soon as dom0
starts... And due to unrelated bug (in xhci console code?), I don't have
kernel messages :/
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-12 15:32 ` Marek Marczykowski-Górecki
@ 2026-02-12 16:16 ` Roger Pau Monné
2026-02-12 16:22 ` Marek Marczykowski-Górecki
0 siblings, 1 reply; 11+ messages in thread
From: Roger Pau Monné @ 2026-02-12 16:16 UTC (permalink / raw)
To: Marek Marczykowski-Górecki; +Cc: xen-devel, intel-xe
On Thu, Feb 12, 2026 at 04:32:56PM +0100, Marek Marczykowski-Górecki wrote:
> On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> > On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> > > Hi,
> > >
> > > Recently I started testing compatibility with Intel Lunar Lake. This is
> > > the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> > > I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> > > Linux 6.17.9 in this test.
> >
> > Not sure it's going to help a lot, but does using a PVH dom0 make any
> > difference?
>
> Yes, it makes a difference. I end up with black screen as soon as dom0
> starts... And due to unrelated bug (in xhci console code?), I don't have
> kernel messages :/
Hm, that's ... very helpful. We should fix the xhci stuff so we know
what's going on there. Is the xhci bug also PVH only, or PV is
equally affected?
Thanks, Roger.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-12 16:16 ` Roger Pau Monné
@ 2026-02-12 16:22 ` Marek Marczykowski-Górecki
2026-02-12 16:35 ` Roger Pau Monné
0 siblings, 1 reply; 11+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-02-12 16:22 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: xen-devel, intel-xe
[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]
On Thu, Feb 12, 2026 at 05:16:45PM +0100, Roger Pau Monné wrote:
> On Thu, Feb 12, 2026 at 04:32:56PM +0100, Marek Marczykowski-Górecki wrote:
> > On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> > > On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> > > > Hi,
> > > >
> > > > Recently I started testing compatibility with Intel Lunar Lake. This is
> > > > the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> > > > I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> > > > Linux 6.17.9 in this test.
> > >
> > > Not sure it's going to help a lot, but does using a PVH dom0 make any
> > > difference?
> >
> > Yes, it makes a difference. I end up with black screen as soon as dom0
> > starts... And due to unrelated bug (in xhci console code?), I don't have
> > kernel messages :/
>
> Hm, that's ... very helpful. We should fix the xhci stuff so we know
> what's going on there. Is the xhci bug also PVH only, or PV is
> equally affected?
XHCI console works just fine with PV dom0. But I just noticed I had
older Xen binary there today, will re-test on the same 4.19.4 again. And
then will submit separate bug report (even if that's likely be me fixing
it anyway).
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-12 16:22 ` Marek Marczykowski-Górecki
@ 2026-02-12 16:35 ` Roger Pau Monné
0 siblings, 0 replies; 11+ messages in thread
From: Roger Pau Monné @ 2026-02-12 16:35 UTC (permalink / raw)
To: Marek Marczykowski-Górecki; +Cc: xen-devel, intel-xe
On Thu, Feb 12, 2026 at 05:22:34PM +0100, Marek Marczykowski-Górecki wrote:
> On Thu, Feb 12, 2026 at 05:16:45PM +0100, Roger Pau Monné wrote:
> > On Thu, Feb 12, 2026 at 04:32:56PM +0100, Marek Marczykowski-Górecki wrote:
> > > On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> > > > On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> > > > > Hi,
> > > > >
> > > > > Recently I started testing compatibility with Intel Lunar Lake. This is
> > > > > the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> > > > > I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> > > > > Linux 6.17.9 in this test.
> > > >
> > > > Not sure it's going to help a lot, but does using a PVH dom0 make any
> > > > difference?
> > >
> > > Yes, it makes a difference. I end up with black screen as soon as dom0
> > > starts... And due to unrelated bug (in xhci console code?), I don't have
> > > kernel messages :/
> >
> > Hm, that's ... very helpful. We should fix the xhci stuff so we know
> > what's going on there. Is the xhci bug also PVH only, or PV is
> > equally affected?
>
> XHCI console works just fine with PV dom0. But I just noticed I had
> older Xen binary there today, will re-test on the same 4.19.4 again. And
> then will submit separate bug report (even if that's likely be me fixing
> it anyway).
OK, could you also post whatever output you get when using a PVH dom0
with `sync_console` added to the Xen command line?
Thanks, Roger.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-12 15:11 ` Roger Pau Monné
2026-02-12 15:32 ` Marek Marczykowski-Górecki
@ 2026-02-13 1:23 ` Marek Marczykowski-Górecki
[not found] ` <a41a15ca-b26e-482a-9084-fc61645fb24e@gmail.com>
2026-02-24 15:58 ` Marek Marczykowski-Górecki
1 sibling, 2 replies; 11+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-02-13 1:23 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: xen-devel, intel-xe
[-- Attachment #1: Type: text/plain, Size: 968 bytes --]
On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> > Hi,
> >
> > Recently I started testing compatibility with Intel Lunar Lake. This is
> > the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> > I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> > Linux 6.17.9 in this test.
>
> Not sure it's going to help a lot, but does using a PVH dom0 make any
> difference?
Ok, now with the correct Xen version, it's better with PVH dom0. At
least on the login screen and few applications (from both dom0 and domU)
I don't see the glitches anymore. I can't do a full test, because PCI
passthrough doesn't seem to work with PVH dom0 on Xen 4.19 - and I need
it to start most VMs.
So, if the above test is representative, it's only about PV dom0.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
[not found] ` <a41a15ca-b26e-482a-9084-fc61645fb24e@gmail.com>
@ 2026-02-24 15:31 ` Marek Marczykowski-Górecki
0 siblings, 0 replies; 11+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-02-24 15:31 UTC (permalink / raw)
To: Demi Marie Obenour; +Cc: Roger Pau Monné, xen-devel, intel-xe
[-- Attachment #1: Type: text/plain, Size: 2051 bytes --]
On Fri, Feb 13, 2026 at 12:31:47AM -0500, Demi Marie Obenour wrote:
> On 2/12/26 20:23, Marek Marczykowski-Górecki wrote:
> > On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> >> On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> >>> Hi,
> >>>
> >>> Recently I started testing compatibility with Intel Lunar Lake. This is
> >>> the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> >>> I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> >>> Linux 6.17.9 in this test.
> >>
> >> Not sure it's going to help a lot, but does using a PVH dom0 make any
> >> difference?
> >
> > Ok, now with the correct Xen version, it's better with PVH dom0. At
> > least on the login screen and few applications (from both dom0 and domU)
> > I don't see the glitches anymore. I can't do a full test, because PCI
> > passthrough doesn't seem to work with PVH dom0 on Xen 4.19 - and I need
> > it to start most VMs.
> >
> > So, if the above test is representative, it's only about PV dom0.
>
> This reminds me of a problem that I helped debug a while back,
> and which also affected Qubes OS. That one was due to some part
> of Linux core MM clobbering the high bit of the PAT part of PTEs.
> As a result, a PTE that should have referenced entry X in the PAT
> wound up referencing entry (X & 3).
>
> On native Linux, the bug was mostly harmless, which is why nobody
> found it earlier. However, on Xen PV, the different PAT caused memory
> to be cached that should not be. The resulting symptoms were very
> similar to what Marek described, though a bit less dramatic.
>
> Can you try removing the Qubes downstream patch that changes the PAT?
I'd assume removing such patch would make things only worse (it either
shouldn't matter, or if the driver assumes Linux version, changing it
would actually break stuff).
Anyway, removing the patch didn't change anything.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-13 1:23 ` Marek Marczykowski-Górecki
[not found] ` <a41a15ca-b26e-482a-9084-fc61645fb24e@gmail.com>
@ 2026-02-24 15:58 ` Marek Marczykowski-Górecki
2026-03-02 11:19 ` Marek Marczykowski-Górecki
1 sibling, 1 reply; 11+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-02-24 15:58 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: xen-devel, intel-xe
[-- Attachment #1: Type: text/plain, Size: 3173 bytes --]
On Fri, Feb 13, 2026 at 02:23:06AM +0100, Marek Marczykowski-Górecki wrote:
> On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> > On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> > > Hi,
> > >
> > > Recently I started testing compatibility with Intel Lunar Lake. This is
> > > the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> > > I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> > > Linux 6.17.9 in this test.
> >
> > Not sure it's going to help a lot, but does using a PVH dom0 make any
> > difference?
>
> Ok, now with the correct Xen version, it's better with PVH dom0. At
> least on the login screen and few applications (from both dom0 and domU)
> I don't see the glitches anymore. I can't do a full test, because PCI
> passthrough doesn't seem to work with PVH dom0 on Xen 4.19 - and I need
> it to start most VMs.
>
> So, if the above test is representative, it's only about PV dom0.
Some further observations:
1. My initial impression that Xen 4.17.6 is not affected is false.
Apparently I got lucky and didn't waited long enough for glitches to
appear. Unfortunately this means I have no way to bisect this...
1a. Updated test procedure - either:
- start Qubes OS in full (including default system domUs) and try to
open an app in one of them (for example file manager or pdf viewer)
- start Linux up to lightdm login page, log in, log out, click on a
few lightdm menus (session type selector, poewroff menu etc)
The second version works even if toolstack version in dom0 doesn't match
Xen version. If no glitches are observed after doing either of those
procedures, assume it's good.
2. Xen staging is affected too. As well as Xen staging-4.19 without
any qubes patches.
3. After enabling CONFIG_DEBUG in Xen, the xe.ko fails to load firmware:
xe 0000:00:02.0: [drm] Tile0: GT0: Using GuC firmware from xe/lnl_guc_70.bin version 70.53.0
xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: load failed: status = 0x40000056, time = 0ms, freq = 1850MHz (req 1850MHz), done = -1
xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: load failed: status: Reset = 0, BootROM = 0x2B, UKernel = 0x00, MIA = 0x00, Auth = 0x01
xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: firmware production part check failure
xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: Failed to initialize uC (-EPROTO)
xe 0000:00:02.0: probe with driver xe failed with error -71
CONFIG_DEBUG is the only change between "xe.ko loads fine but there are
glitches later on" and "xe.ko fails to load at all". Full console logs:
https://gist.github.com/marmarek/47b5e62a2cdbae6678c2aecc5283cd3f, there
are 3 files:
- CONFIG_DEBUG=n
- CONFIG_DEBUG=y
- CONFIG_DEBUG=y + iommu=debug
4. Updating to Linux 7.0-rc1 doesn't help, for example:
https://openqa.qubes-os.org/tests/168119#step/desktop_linux_manager_create_qube/11
Generally, it does feel like a bug in xe.ko, but I can't exclude some issue
on Xen side too (especially given point 3 above).
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19
2026-02-24 15:58 ` Marek Marczykowski-Górecki
@ 2026-03-02 11:19 ` Marek Marczykowski-Górecki
0 siblings, 0 replies; 11+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-03-02 11:19 UTC (permalink / raw)
To: Roger Pau Monné; +Cc: xen-devel, intel-xe
[-- Attachment #1: Type: text/plain, Size: 6553 bytes --]
On Tue, Feb 24, 2026 at 04:58:25PM +0100, Marek Marczykowski-Górecki wrote:
> On Fri, Feb 13, 2026 at 02:23:06AM +0100, Marek Marczykowski-Górecki wrote:
> > On Thu, Feb 12, 2026 at 04:11:50PM +0100, Roger Pau Monné wrote:
> > > On Tue, Feb 10, 2026 at 07:06:20PM +0100, Marek Marczykowski-Górecki wrote:
> > > > Hi,
> > > >
> > > > Recently I started testing compatibility with Intel Lunar Lake. This is
> > > > the first one that uses "xe" instead of "i915" Linux driver for iGPU.
> > > > I test it with Qubes OS 4.3, which uses Xen 4.19.4 and PV dom0 running
> > > > Linux 6.17.9 in this test.
> > >
> > > Not sure it's going to help a lot, but does using a PVH dom0 make any
> > > difference?
> >
> > Ok, now with the correct Xen version, it's better with PVH dom0. At
> > least on the login screen and few applications (from both dom0 and domU)
> > I don't see the glitches anymore. I can't do a full test, because PCI
> > passthrough doesn't seem to work with PVH dom0 on Xen 4.19 - and I need
> > it to start most VMs.
> >
> > So, if the above test is representative, it's only about PV dom0.
>
> Some further observations:
>
> 1. My initial impression that Xen 4.17.6 is not affected is false.
> Apparently I got lucky and didn't waited long enough for glitches to
> appear. Unfortunately this means I have no way to bisect this...
>
> 1a. Updated test procedure - either:
> - start Qubes OS in full (including default system domUs) and try to
> open an app in one of them (for example file manager or pdf viewer)
> - start Linux up to lightdm login page, log in, log out, click on a
> few lightdm menus (session type selector, poewroff menu etc)
>
> The second version works even if toolstack version in dom0 doesn't match
> Xen version. If no glitches are observed after doing either of those
> procedures, assume it's good.
>
> 2. Xen staging is affected too. As well as Xen staging-4.19 without
> any qubes patches.
>
> 3. After enabling CONFIG_DEBUG in Xen, the xe.ko fails to load firmware:
>
> xe 0000:00:02.0: [drm] Tile0: GT0: Using GuC firmware from xe/lnl_guc_70.bin version 70.53.0
> xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: load failed: status = 0x40000056, time = 0ms, freq = 1850MHz (req 1850MHz), done = -1
> xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: load failed: status: Reset = 0, BootROM = 0x2B, UKernel = 0x00, MIA = 0x00, Auth = 0x01
> xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: firmware production part check failure
> xe 0000:00:02.0: [drm] *ERROR* Tile0: GT0: Failed to initialize uC (-EPROTO)
> xe 0000:00:02.0: probe with driver xe failed with error -71
>
> CONFIG_DEBUG is the only change between "xe.ko loads fine but there are
> glitches later on" and "xe.ko fails to load at all". Full console logs:
> https://gist.github.com/marmarek/47b5e62a2cdbae6678c2aecc5283cd3f, there
> are 3 files:
> - CONFIG_DEBUG=n
> - CONFIG_DEBUG=y
> - CONFIG_DEBUG=y + iommu=debug
>
> 4. Updating to Linux 7.0-rc1 doesn't help, for example:
> https://openqa.qubes-os.org/tests/168119#step/desktop_linux_manager_create_qube/11
>
> Generally, it does feel like a bug in xe.ko, but I can't exclude some issue
> on Xen side too (especially given point 3 above).
After waiting some time (Linux 6.19.5 this time), Xen CONFIG_DEBUG=n, I get some timeout messages:
[ 8.122120] xe 0000:00:02.0: [drm] [ENCODER:204:DDI A/PHY A] failed to retrieve link info, disabling eDP
[ 8.148476] xe 0000:00:02.0: [drm] Tile0: GT0: Using GuC firmware from xe/lnl_guc_70.bin version 70.53.0
[ 8.803845] xe 0000:00:02.0: [drm] Tile0: GT0: ccs1 fused off
[ 8.804208] xe 0000:00:02.0: [drm] Tile0: GT0: ccs2 fused off
[ 8.804556] xe 0000:00:02.0: [drm] Tile0: GT0: ccs3 fused off
[ 8.822426] xe 0000:00:02.0: [drm] Tile0: GT1: Using GuC firmware from xe/lnl_guc_70.bin version 70.53.0
[ 8.827140] xe 0000:00:02.0: [drm] Tile0: GT1: Using HuC firmware from xe/lnl_huc.bin version 9.4.13
[ 8.829478] xe 0000:00:02.0: [drm] Tile0: GT1: Using GSC firmware from xe/lnl_gsc_1.bin version 104.0.5.1429
[ 8.852923] xe 0000:00:02.0: [drm] Tile0: GT1: vcs1 fused off
[ 8.853513] xe 0000:00:02.0: [drm] Tile0: GT1: vcs2 fused off
[ 8.854090] xe 0000:00:02.0: [drm] Tile0: GT1: vcs3 fused off
[ 8.854706] xe 0000:00:02.0: [drm] Tile0: GT1: vcs4 fused off
[ 8.855310] xe 0000:00:02.0: [drm] Tile0: GT1: vcs5 fused off
[ 8.855904] xe 0000:00:02.0: [drm] Tile0: GT1: vcs6 fused off
[ 8.856495] xe 0000:00:02.0: [drm] Tile0: GT1: vcs7 fused off
[ 8.857079] xe 0000:00:02.0: [drm] Tile0: GT1: vecs1 fused off
[ 8.857675] xe 0000:00:02.0: [drm] Tile0: GT1: vecs2 fused off
[ 8.858272] xe 0000:00:02.0: [drm] Tile0: GT1: vecs3 fused off
[ 8.975881] xe 0000:00:02.0: [drm] Registered 3 planes with drm panic
[ 8.976586] [drm] Initialized xe 1.1.0 for 0000:00:02.0 on minor 0
[ 8.980882] ACPI: video: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 9.033754] xe 0000:00:02.0: [drm] Tile0: GT1: found GSC cv104.1.0
...
[ 1218.319232] xe 0000:00:02.0: [drm] Tile0: GT0: Engine reset: engine_class=rcs, logical_mask: 0x1, guc_id=3
[ 1218.319890] xe 0000:00:02.0: [drm] Tile0: GT0: Timedout job: seqno=9883, lrc_seqno=9883, guc_id=3, flags=0x0 in Xorg [3245]
[ 1218.320736] xe 0000:00:02.0: [drm] Xe device coredump has been created
[ 1218.321140] xe 0000:00:02.0: [drm] Check your /sys/class/drm/card0/device/devcoredump/data
[ 1222.285626] xe 0000:00:02.0: [drm] *ERROR* [CRTC:88:pipe A] flip_done timed out
[ 1232.525685] xe 0000:00:02.0: [drm] *ERROR* flip_done timed out
[ 1232.526280] xe 0000:00:02.0: [drm] *ERROR* [CRTC:88:pipe A] commit wait timed out
[ 1242.765717] xe 0000:00:02.0: [drm] *ERROR* [CRTC:88:pipe A] flip_done timed out
[ 1253.005696] xe 0000:00:02.0: [drm] *ERROR* flip_done timed out
[ 1253.006248] xe 0000:00:02.0: [drm] *ERROR* [CRTC:88:pipe A] commit wait timed out
[ 1263.245599] xe 0000:00:02.0: [drm] *ERROR* [CRTC:88:pipe A] flip_done timed out
The glitches appear much earlier, though.
Would content of /sys/class/drm/card0/device/devcoredump/data be useful
for debugging this?
Full log at https://openqa.qubes-os.org/tests/168813/file/serial0.txt
(warning, almost 200MB of those errors...)
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-03-02 11:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10 18:06 Graphical glitches (not refreshing?) with Linux's xe driver + Xen 4.19 Marek Marczykowski-Górecki
2026-02-12 14:33 ` Rodrigo Vivi
2026-02-12 15:11 ` Roger Pau Monné
2026-02-12 15:32 ` Marek Marczykowski-Górecki
2026-02-12 16:16 ` Roger Pau Monné
2026-02-12 16:22 ` Marek Marczykowski-Górecki
2026-02-12 16:35 ` Roger Pau Monné
2026-02-13 1:23 ` Marek Marczykowski-Górecki
[not found] ` <a41a15ca-b26e-482a-9084-fc61645fb24e@gmail.com>
2026-02-24 15:31 ` Marek Marczykowski-Górecki
2026-02-24 15:58 ` Marek Marczykowski-Górecki
2026-03-02 11:19 ` Marek Marczykowski-Górecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox