Bug 213095 - LTS Kernel 5.10.37 stop booting with .config as 5.10.36
Summary: LTS Kernel 5.10.37 stop booting with .config as 5.10.36
Status: RESOLVED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: Intel Linux
: P1 high
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-16 10:28 UTC by Yuriy Dmitriev
Modified: 2021-05-17 10:07 UTC (History)
2 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Config 5.10.36 (132.43 KB, text/plain)
2021-05-16 10:28 UTC, Yuriy Dmitriev
Details
Config 5.10.37 (non bootable kernel, after make oldconfig) (132.43 KB, text/plain)
2021-05-16 10:30 UTC, Yuriy Dmitriev
Details

Description Yuriy Dmitriev 2021-05-16 10:28:06 UTC
Created attachment 296791 [details]
Config 5.10.36

Hi folks. Last day I try to update LTS kernel from 5.10.36 to 5.10.37

My steps in /usr/src/linux:

1. zcat /proc.config.gz > .config
2. make oldconfig  (config not changed manually)
3. make -j17 && make modules_install 
4. (EFI kernel) cp to /boot/EFI/....
5. reboot

After this unable to boot new kernel 5.10.37
Workaround: revert to 5.30.36

Hardware: Lenovo T420 8G ram Core i5-2520M
Comment 1 Yuriy Dmitriev 2021-05-16 10:30:13 UTC
Created attachment 296793 [details]
Config 5.10.37 (non bootable kernel, after make oldconfig)
Comment 2 Joerg M. Sigle 2021-05-16 21:26:54 UTC
Hi Yuriy. Thanks for the crossref.

You might check whether this is the same bug as 213077 like this:

1. make menuconfig
2. go to "Device Drivers" / "IOMMU Hardware Support" / set "Enable Intel DMA Remapping Devices by default" to "No" - Exit and save
3. make -j17 && make modules_install 
4. (EFI kernel) cp to /boot/EFI/....
5. reboot

If that works, it's probably the same cause.

Then, you can try to change the few lines in drivers/iommu/intel/iommu.c as indicated by the little patch I suggested in https://bugzilla.kernel.org/show_bug.cgi?id=213077.

To do that, you can either use the patch utility, or edit the file manually (lines indicated by - or + in the patch), or I can send you the patched file.

Afterwards you can switch the "Enable Intel DMA Remapping Devices by default" setting back to "Yes", recompile, reinstall the new kernel etc., and should still be able to boot *without* kernel panic.

For me, the problem is not Lenovo (i7) specific. My second affected machine is a Zotac (i5); the third one (IIRC) may even have an Intel Board (i3). Common denominator among these: Haswell or Broadwell CPUs.

If you try these steps, please do report your results.
I also hope to get feedback tomorrow from the authors of 416fa531c816.
Thank you & good luck & regards, Joerg
Comment 3 Yuriy Dmitriev 2021-05-17 10:07:47 UTC
Resolved.
Patch here: https://bugzilla.kernel.org/show_bug.cgi?id=213077

Thanks alot!!!!!

With best wishes - YD.

Note You need to log in before you can comment on or make changes to this bug.