You are not logged in.

#1 2022-07-31 19:37:42

k96hkh
Member
Registered: 2016-02-21
Posts: 9

[SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Hi,

Have been trying to figure out what the hick-up is with my Lenovo G50-45 (AMD A8-6410 APU with AMD Radeon R5 Graphics) but realize I need help. Upgraded from 5.18.14 to 5.18.15 yesterday and after that the boot get stuck around initializing usb devices and I have to do a hard reset. I have been trying to extract logs etc. but I guess the boot gets stuck before systemd is started so there are no logs generated. If I revert back (using usb installation image) to linux + linux-headers to 5.18.14 everything works again.

At the failed boot I get to this:
[    1.879597] usb 2-1.3: Manufacturer: Broadcom Corp
[    1.879599] usb 2-1.3: SerialNumber: 38B1DBD9DBA6
STUCK

For 5.18.14 boot the next line is:
[    1.879929] random: fast init done

So I have thinking that it has something to do with random, but don't know how to proceed.

Last thing is that it is more like a stuck, not a freeze or crash because if I attach a usb stick a new line is added with "... New USB device found..."

Help me Obi-Wan Kenobi, you are my only hope smile

EDIT:
I can confirm that adding "spectre_v2=off" to kernel boot string fixes the issue. Thanks everyone! I have no idea what the "spectre_v2=off" is about but no I have something to read up on smile
Cheers / Henrik

Last edited by k96hkh (2022-08-29 11:03:01)

Offline

#2 2022-07-31 20:43:05

xerxes_
Member
Registered: 2018-04-29
Posts: 802

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

You didn't post full log output. Start system, wait to stuck, restart from arch live usb, arch-chroot to your installed system and post full output of command "journalctl -b" or "journalctl -b-1".

That Broadcom usb device is WiFi dongle?

Maybe you didn't have mounted /boot when you last updated?

Offline

#3 2022-07-31 21:15:01

seth
Member
Registered: 2012-09-03
Posts: 59,158

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Does it look like any of the screenshots in https://bbs.archlinux.org/viewtopic.php?id=278529 or the other thread referenced there?

Offline

#4 2022-07-31 21:35:30

akshimassar
Member
Registered: 2022-07-31
Posts: 2

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Hi,

I would like to notice that I have the same problem or at least it seems. I upgraded to linux-5.18.15 about 40 minutes ago and rebooted. Then my kernel just stops at the stage of detecting USB devices (listing them in particular). Then nothing happens. If I plug in USB stick at the moment, kernel logs detection of a new usb device as usual. Expected behavior here is to continue loading. Usually it writes something like `starting version 250.2-arch`, it happens relatively fast so I'm not sure what and then prompts for my luks key for root partition. Since there was no root partiton mounted I would have no logs for the time. Let me see if I can have a repro with kernel logs sent via UDP.

As for similarity to screenshots, well, it happens after switching clocksource. But I don't have any stacktrace on screen.

Last edited by akshimassar (2022-07-31 21:39:21)

Offline

#5 2022-07-31 21:52:44

lukp0t
Member
Registered: 2022-07-31
Posts: 14

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

I got almost full logs. Not best quality, but at least something.

1 - https://ibb.co/614ms4m
2 - https://ibb.co/YXv3Qn4

Runs fine with LTS.

Last edited by lukp0t (2022-07-31 21:58:26)

Offline

#6 2022-07-31 21:54:16

lukp0t
Member
Registered: 2022-07-31
Posts: 14

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

seth wrote:

Does it look like any of the screenshots in https://bbs.archlinux.org/viewtopic.php?id=278529 or the other thread referenced there?

Also, seems like in all cases it has to do something with kworker. But I'm not sure.

Last edited by lukp0t (2022-07-31 22:07:16)

Offline

#7 2022-07-31 22:16:24

akshimassar
Member
Registered: 2022-07-31
Posts: 2

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Same for me here. Hangs with kworker, RIP: 0010:efi_call_rts
No UDP logs unfortunately, just screen capture via phone.

And with boot_delay=50 it stops working at all, like no messages after "loading initrd"

Last edited by akshimassar (2022-07-31 22:20:03)

Offline

#8 2022-07-31 22:34:55

seth
Member
Registered: 2012-09-03
Posts: 59,158

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Lower the number, make sure to remove the quiet parameter - it delays every (line of) kernel message w/ 50ms so 100 lines take 5 seconds to print (whether you can see them or not)
This looks like the same, ensure to enable early microcode patches.

efi_call_rts is probably already part of the bail from the actual problem.

Offline

#9 2022-07-31 22:37:31

xerxes_
Member
Registered: 2018-04-29
Posts: 802

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

All of you have AMD CPU?

Offline

#10 2022-07-31 22:45:56

lukp0t
Member
Registered: 2022-07-31
Posts: 14

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Yes, forgot to mention. I have AMD APU with Radeon Graphics too.

Offline

#11 2022-08-01 00:32:13

uka
Member
Registered: 2011-10-25
Posts: 19

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Confirming, updating an old system with an AMD Athlon 5350 to 5.18.15 and boot stuck with RIP: efi_call_rts at the top of the screen and then USB shenanigans continue to work as the devices enter and exit low power modes.

Seems related to retbleed fixes? https://lore.kernel.org/lkml/2022072812 … cal.com/T/

For my disgrace this just happened after I exchanged SATA cables... not funny looking at the issue wrongly for half an hour!

Offline

#12 2022-08-01 01:07:09

uka
Member
Registered: 2011-10-25
Posts: 19

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Yup, that was it, add "spectre_v2=off" to the boot command line, and the issue is gone.  As per the kernel.org thread above, there is already a fix, I guess it will be available soon in the packaged kernel here.

Last edited by uka (2022-08-01 14:06:51)

Offline

#13 2022-08-01 06:53:33

miles969
Member
Registered: 2013-02-03
Posts: 23

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

uka wrote:

Yup, that was it, add "spectre_v2=off" to the boot command line, and the issue it's gone.  As per the kernel.org above, the issue seems to be fixed already, I guess it will be available soon in the packaged kernel here.

this flag fixed this issue on my machine too. thanks uka!

Offline

#14 2022-08-01 07:54:01

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 647

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Someone should report this issue to the Arch bug tracker.

Offline

#15 2022-08-01 09:28:52

lukp0t
Member
Registered: 2022-07-31
Posts: 14

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

I'm not sure if we should doing this now as this affects not only Arch kernel. We need to wait until new version will be available.

Offline

#16 2022-08-01 09:39:28

krabat
Member
Registered: 2014-07-03
Posts: 40

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

Offline

#17 2022-08-01 16:20:30

kevinlucasilva
Member
Registered: 2022-08-01
Posts: 2

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

uka wrote:

Yup, that was it, add "spectre_v2=off" to the boot command line, and the issue is gone.  As per the kernel.org thread above, there is already a fix, I guess it will be available soon in the packaged kernel here.


Hello!

I also have an AMD Radeon and had this same problem with this kernel version (I use Zen kernel). Luckily I also have the LTS kernel installed, and through that I downgraded to version 5.18.14.

How do I add this flag "spectre_v2=off" at boot? I don't use GRUB, I use systemd-bootctl.

Last edited by kevinlucasilva (2022-08-01 16:24:51)

Offline

#18 2022-08-01 16:23:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,236

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#19 2022-08-01 16:24:23

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 647

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

See https://wiki.archlinux.org/title/Kernel … figuration and follow the instructions for your boot loader.

Offline

#20 2022-08-01 16:33:39

kevinlucasilva
Member
Registered: 2022-08-01
Posts: 2

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

nl6720 wrote:

See https://wiki.archlinux.org/title/Kernel … figuration and follow the instructions for your boot loader.

Thx buddy, works!

Offline

#21 2022-08-01 20:16:03

xerxes_
Member
Registered: 2018-04-29
Posts: 802

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

But it it still interesting: retbleed mitigation was introduced with 5.18.14 kernel version, but your problems started with version 5.18.15. There was something more to change... but somewhat related.

Does "retbleed=off" kernel parameter also work?

UPDATE:
That is not really solved! That is just a workaround.

Last edited by xerxes_ (2022-08-01 20:35:17)

Offline

#22 2022-08-03 13:32:53

branthebuilder
Member
Registered: 2016-10-01
Posts: 65

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

The 'spectre_v2=off' worked for me as well. What is the best way to track when I should remove the flag from my bootloader entry?

Last edited by branthebuilder (2022-08-03 13:33:17)

Offline

#23 2022-08-03 13:47:50

seth
Member
Registered: 2012-09-03
Posts: 59,158

Offline

#24 2022-08-03 13:58:01

branthebuilder
Member
Registered: 2016-10-01
Posts: 65

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

FWIW installed the updated kernel in testing and booted without the spectre_v2=off flag and all is well.

Offline

#25 2022-08-04 09:18:46

lukp0t
Member
Registered: 2022-07-31
Posts: 14

Re: [SOLVED] Boot/kernel hangs after upgrading to 5.18.15

New kernel patch is out of testing. I can confirm that I was able to boot on AMD E2-6110 without spectre_v2=off parameter.
Now the issue is completely solved I guess.

Last edited by lukp0t (2022-08-04 09:20:27)

Offline

Board footer

Powered by FluxBB