Bug 1214411

Summary: Intel HD5500 handled by i915 hangs for seconds freezing the desktop interaction
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ilgaz Öcal <ilgaz>
Component: KernelAssignee: openSUSE Kernel Bugs <kernel-bugs>
Status: RESOLVED MOVED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: tiwai
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: dmesg with firmware_class.dyndbg=+p
sudo hwinfo >hwinfo.txt
removed VM GPU sharing related settings and booted

Description Ilgaz Öcal 2023-08-19 07:36:14 UTC
Created attachment 868888 [details]
dmesg with firmware_class.dyndbg=+p

I noticed my GPU which is Intel HD5500 (part of i5-5200U) hangs for several seconds and resumes. I am not physically using this laptop recently and I started to notice the hangs in 6.4.x kernel.

I have the following set for VM "GPU" sharing as kernel parameters. It isn't very critical ATM and I can disable them if needed.

acpi_osi=! quiet security=apparmor intel_iommu=on firmware_class.dyndbg=+p i915.enable_gvt=1 kvm.ignore_msrs=1 iommu=pt i915.modeset=1 allow_unsafe_interrupts=1 i915.enable_guc=0 

acpi_osi parameter is required to boot this system, already reported to Linux kernel
Comment 1 Ilgaz Öcal 2023-08-19 07:37:01 UTC
Created attachment 868889 [details]
sudo hwinfo >hwinfo.txt
Comment 2 Takashi Iwai 2023-08-19 08:10:32 UTC
Could you check all i915 and iommu-related options and check only PM problem?
We need to reduce the state as clean as possible at first.
Comment 3 Ilgaz Öcal 2023-08-19 08:45:34 UTC
Created attachment 868891 [details]
removed VM GPU sharing related settings and booted

I notice the hang occurs (but not limited to) the first KDE/Wayland loading screen after logged in via SDDM (entering password)

I also remember noticing the hang while using digikam etc.
Comment 4 Takashi Iwai 2023-08-19 12:01:05 UTC
Thanks.  A warning appears at the boot:

[    3.492974] i915 0000:00:02.0: drm_WARN_ON_ONCE(level >= n_entries)
[    3.493025] WARNING: CPU: 1 PID: 84 at drivers/gpu/drm/i915/display/intel_ddi.c:1412 intel_ddi_level+0x1cb/0x1e0 [i915]

then you got GPU hang.  I believe the best would be to report to the upstream at gitlab.freedesktop.org issues drm/intel.
Comment 5 Ilgaz Öcal 2023-10-31 11:16:38 UTC
I will be reporting the issue details on freedesktop bug reporting system as suggested.