Bug 1212176 - System hangs after upgrade to OpenSuse 15.5 during load of i915 driver when using Xen
Summary: System hangs after upgrade to OpenSuse 15.5 during load of i915 driver when u...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Leap 15.5
Hardware: x86-64 openSUSE Leap 15.5
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-09 13:25 UTC by Manfred Härtel
Modified: 2023-06-09 15:55 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manfred Härtel 2023-06-09 13:25:21 UTC
After the upgrade to OpenSuse 15.5 my laptop did not boot completely when using Xen. It just hangs after during the load of the i915 driver from the initrd and just displays a black screen.

The laptop boots normally if NOT using Xen (just booting directly to the Linux kernel) and it boots normally IF using Xen when using the Linux kernel command line parameter "nomodeset" (but of course, with bad graphics performance).

After a long debugging session using my own printk() statements and netconsole for logging I found out that the actual problem is that the kernel routine pat_enabled() incorrectly returns false in a Xen Dom0 and the i915 driver fails if it receives this value, which finally leads to a kernel oops during the cleanup (!) of the i915 driver.

With that knowledge I found out that the problem is a known one which was already discussed in the Linux kernel mailing list, see https://lore.kernel.org/lkml/bc13c66d-a885-e405-7b53-8cd7afdbecff@suse.com/t/ , but it seems that the included patch from that discussion is not contained in OpenSuse 15.5.

Changing the wrong value of pat_enabled() solves my problem and the system boots normally. So the patch from the LKML or a similiar one should be applied to the OpenSuse 15.5 kernel.
Comment 1 Takashi Iwai 2023-06-09 14:08:51 UTC
The suggested patch is already included in SLE15-SP5 git branch.  Could you check whether the problem persists with the kernel in OBS Kernel:SLE15-SP5 repo?
  http://download.opensuse.org/repositories/Kernel:/SLE15-SP5/pool/
Comment 2 Manfred Härtel 2023-06-09 14:52:04 UTC
I can confirm that the kernel from the OBS Kernel:SLE15-SP5 repo indeed solves the problem.
Comment 3 Takashi Iwai 2023-06-09 15:55:57 UTC
Good to hear.  Then the fix will be included in the first maintenance update kernel.