Bug 217945

Summary: DRM error - flickering screen with mouse cursor over low right corner - with IOMMU
Product: Drivers Reporter: jb (jb.1234abcd)
Component: Video(Other)Assignee: drivers_video-other
Status: RESOLVED ANSWERED    
Severity: high CC: bagasdotme
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: iommu-on-bad-dell.txt log
iommu-off-good-dell.txt log
lspci-dell.txt output
kernel-config-dell.txt output
iommu-on-vga-chip-off-good-lenovo.txt log

Description jb 2023-09-24 18:08:49 UTC
Created attachment 305141 [details]
iommu-on-bad-dell.txt log

I have a Dell Latitude 5500 laptop that has a flickering screen problem (with DRM error in logs) when I enable IOMMU (on kernel boot command line as most distros disable it per kernel config).
I tested it with latest kernel 6.5.4 .
Please find attachments with related entries:
iommu-off-good-dell.txt  iommu-on-bad-dell.txt  kernel-config-dell.txt  lspci-dell.txt

In addition, for comparison (it may help in debugging), I also included an output from a Lenovo e550 laptop, which has the same OS (Arch Linux) and kernel and its config, with IOMMU enabled as above, but without the problem.
Please find attachment swith related entries:
ommu-on-vga-chip-off-good-lenovo.txt
NOTE: the log shows an interesting line:
pci 0000:00:02.0: DMAR: Disabling IOMMU for graphics on this chipset

Both laptops have Intel VT-x amd VT-d enabled in EFI (Dell) and BIOS (Lenovo).
I also tested the Dell laptop with latest Manjaro live and Win 10, and there is no problem (hardware, etc).
Comment 1 jb 2023-09-24 18:14:12 UTC
Created attachment 305142 [details]
iommu-off-good-dell.txt log
Comment 2 jb 2023-09-24 18:15:11 UTC
Created attachment 305143 [details]
lspci-dell.txt output
Comment 3 jb 2023-09-24 18:16:04 UTC
Created attachment 305144 [details]
kernel-config-dell.txt output
Comment 4 jb 2023-09-24 18:17:35 UTC
Created attachment 305145 [details]
iommu-on-vga-chip-off-good-lenovo.txt log
Comment 5 Bagas Sanjaya 2023-09-25 07:17:22 UTC
(In reply to jb from comment #0)
> Both laptops have Intel VT-x amd VT-d enabled in EFI (Dell) and BIOS
> (Lenovo).
> I also tested the Dell laptop with latest Manjaro live and Win 10, and there
> is no problem (hardware, etc).

What kernel version on that Manjaro ISO?
Comment 6 jb 2023-09-25 08:52:09 UTC
(In reply to Bagas Sanjaya from comment #5)
> (In reply to jb from comment #0)
> > Both laptops have Intel VT-x amd VT-d enabled in EFI (Dell) and BIOS
> > (Lenovo).
> > I also tested the Dell laptop with latest Manjaro live and Win 10, and
> there
> > is no problem (hardware, etc).
> 
> What kernel version on that Manjaro ISO?

Manjaro 23.0.1 iso, default kernel 6.5.1-1, with IOMMU disabled as usual.
Comment 7 Artem S. Tashkinov 2023-09-25 09:26:29 UTC
Please post here as well:

https://gitlab.freedesktop.org/drm/intel/-/issues

No need to upload files twice, you can simply link to this issue.