You are not logged in.

#1 2021-12-19 12:15:38

jayrock
Member
Registered: 2021-12-19
Posts: 9

[SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

I have this issue where Arch linux hangs on reboot/shutdown with Kernel 5.15-10-arch1-1. The cursor blinks for around 30 seconds during which I can still switch the tty (ctrl+alt+F2), but after 30secs the blinking cursor stops and only thing I can do is to hold down the power button.

The system seems to work otherwise just fine. I have been able to install awesomewm window manager, and lots of applications, and I have yet found any other critical issues.

- The reboot freezes every time. Even on the very first reboot after fresh install (without nvidia drivers installed and without any desktop environments installed).
- The reboot hangs even if I just boot into the USB installation media and reboot from there.
- It doesn't matter how I shutdown (from login-screen / reboot / shutdown / systemctl reboot / etc)
- I have tried all the "reboot=" kernel flags in grub menu
- I have tried waiting as long as 30mins.
- I have tried updating the ASUS UEFI BIOS to latest version.
- I tried installing linux-lte kernel and it does not have the same issue (it reboots just fine).
- I have disabled Windows Fast Reboot.
- I have tried installing 'fwupd' but while it detects the hardware, it does not have any updates.
- Ubuntu 21.10 is able to reboot just fine.
- I tried installing Arch from the same USB install media to my Lenovo x280 laptop and it does not have the same issue.

My System:
- ASUS Z690-PLUS WIFI D4
- Intel i9-12900K
- 64 GB 3600MHz RAM
- nVidia 3080
- 3xM.2 SSD + SATA SSD (where the Arch is currently installed)

- I have Windows 11 and Ubuntu installed on other M.2 hard disks and both of them are rebooting just fine).
- I have separate UEFI partition for Arch.

PasteBin links:
- Journal (Before Reboot)
- Journal (After Reboot)
- dmesg

jfI9kRN.jpg

Last edited by jayrock (2022-01-08 16:24:07)

Offline

#2 2021-12-21 01:58:35

Dying_Watchdogs
Member
Registered: 2021-11-22
Posts: 39

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

I have the same issue; this seems to be an issue with the current Kernel and the Alder Lake architecture.

See here:

https://bbs.archlinux.org/viewtopic.php?id=272321

https://bbs.archlinux.org/viewtopic.php?id=271519

Bugzilla report:

https://bugzilla.kernel.org/show_bug.cgi?id=215271

If you have the time, maybe report it as well; I'm not sure how visible the problem is.


My current solution is to stay with the 5.14 kernel for now.

Offline

#3 2021-12-21 12:43:28

josipva
Member
Registered: 2014-07-21
Posts: 29

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

Have the same issue, more precisely it seems to be tied to the Onboard Lan Controller. You can disable it in UEFI, downgrade kernel or wait for a new kernel version. It seems the fix should land soon.
https://lore.kernel.org/netdev/87wnk8qr … tel.com/t/

Offline

#4 2021-12-21 16:46:58

Dying_Watchdogs
Member
Registered: 2021-11-22
Posts: 39

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

Seems like there's a patch:

https://bugzilla.kernel.org/show_bug.cgi?id=215129#c5

Could someone point me towards a tutorial or similar about how to apply patches like this?

Offline

#5 2021-12-21 19:16:03

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

See Arch_Build_System#Retrieve_PKGBUILD_source_using_Git to obtain the PKGBUILD then Steps 1 and 2 from Patching_packages#Applying_patches.  After making those changes the output of git diff should be similar to the following:

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 8041c76..fcf9634 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -17,6 +17,7 @@ options=('!strip')
 _srcname=archlinux-linux
 source=(
   "$_srcname::git+https://github.com/archlinux/linux?signed#tag=$_srctag"
+  ac8c58f5b535d6272324e2b8b4a0454781c9147e.patch::https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/patch/?id=ac8c58f5b535d6272324e2b8b4a0454781c9147e
   config         # the main kernel config file
 )
 validpgpkeys=(
@@ -26,6 +27,7 @@ validpgpkeys=(
   'C7E7849466FE2358343588377258734B41C31549'  # David Runge <dvzrv@archlinux.org>
 )
 sha256sums=('SKIP'
+            'e6b690b9f2c274b18a55e436a13e69965bfb6b69aa35b29d48b731b92b1ea7ad'
             '6000b247aac5620ba08ec862353063f5f8806a33c4c8f55263843c8f47027e63')
 
 export KBUILD_BUILD_HOST=archlinux

Offline

#6 2021-12-23 03:57:20

wartemw
Member
Registered: 2018-02-12
Posts: 8

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

you can write in detail step by step what and how to do, it is just that I have never come across such a thing and I do not know how to do it, there is not enough knowledge in this area

Offline

#7 2021-12-24 06:59:24

jayrock
Member
Registered: 2021-12-19
Posts: 9

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

Just tried updating the kernel but the bug is still present in 5.15.11.

Offline

#8 2021-12-24 09:23:21

josipva
Member
Registered: 2014-07-21
Posts: 29

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

Related patch from the bottom comment in https://bugzilla.kernel.org/show_bug.cgi?id=215129#c5 completely solved my issue (MSI PRO Z690-A), this one: https://lore.kernel.org/netdev/20211214 … intel.com/

Offline

#9 2021-12-24 15:00:30

wartemw
Member
Registered: 2018-02-12
Posts: 8

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

josipva wrote:

Related patch from the bottom comment in https://bugzilla.kernel.org/show_bug.cgi?id=215129#c5 completely solved my issue (MSI PRO Z690-A), this one: https://lore.kernel.org/netdev/20211214 … intel.com/

Please tell me your steps how to apply the changes, I read and read, but I cannot understand how

Offline

#10 2021-12-24 17:52:44

josipva
Member
Registered: 2014-07-21
Posts: 29

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

1. cd to directory where you want to put the kernel
2. install asp if you don't have it (sudo pacman -S asp)
3. then do: asp checkout linux to get arch pkgbuild for linux package
4. go into newly created folder "linux" -> repos -> core-x86_64, you should have "PKGBUILD" and "config" files inside
5. in that folder create new file, name is not really important but lets call it myfix.patch
6. copy the patch contents from the link inside the patch file and save it
7. write the filename of that patch file into the source array in PKGBUILD file

it should look like this:

source=(
  "$_srcname::git+https://github.com/archlinux/linux?signed#tag=$_srctag"
  config         # the main kernel config file
  myfix.patch
)

8. inside that same folder run makepkg -g >> PKGBUILD to update the sha512sums
9. then run makepkg -si to start compilation and installation (this could take a lot of time depending on hardware, from around 30min up to couple of hours)

If install fails because of missing gpg key, run this: gpg --keyserver hkps://keys.openpgp.org --recv-keys 19802F8B0D70FC30 then run makepkg -si again to restart the installation

10. when makepkg completes and switches to regular pacman installation you will get a warning that you are reinstalling linux package (because you actually are) which is fine

P.S. it would be a good idea to have another kernel installed (like LTS), so you can boot normally with that if you fail something with this

My patch file looks like this:


diff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c
index 30568e3544cd..4f9245aa79a1 100644
--- a/drivers/net/ethernet/intel/igc/igc_ptp.c
+++ b/drivers/net/ethernet/intel/igc/igc_ptp.c
@@ -768,7 +768,20 @@ int igc_ptp_get_ts_config(struct net_device *netdev, struct ifreq *ifr)
  */
static bool igc_is_crosststamp_supported(struct igc_adapter *adapter)
{
-    return IS_ENABLED(CONFIG_X86_TSC) ? pcie_ptm_enabled(adapter->pdev) : false;
+    if (!IS_ENABLED(CONFIG_X86_TSC))
+        return false;
+
+    /* FIXME: it was noticed that enabling support for PCIe PTM in
+     * some i225-V models could cause lockups when bringing the
+     * interface up/down. There should be no downsides to
+     * disabling crosstimestamping support for i225-V, as it
+     * doesn't have any PTP support. That way we gain some time
+     * while root causing the issue.
+     */
+    if (adapter->pdev->device == IGC_DEV_ID_I225_V)
+        return false;
+
+    return pcie_ptm_enabled(adapter->pdev);
}

static struct system_counterval_t igc_device_tstamp_to_system(u64 tstamp)

Last edited by josipva (2021-12-24 18:06:14)

Offline

#11 2021-12-25 08:21:14

wartemw
Member
Registered: 2018-02-12
Posts: 8

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

josipva wrote:

1. cd to directory where you want to put the kernel
2. install asp if you don't have it (sudo pacman -S asp)
3. then do: asp checkout linux to get arch pkgbuild for linux package
4. go into newly created folder "linux" -> repos -> core-x86_64, you should have "PKGBUILD" and "config" files inside
...


huge thanks it worked, thanks

Offline

#12 2021-12-25 16:20:41

josipva
Member
Registered: 2014-07-21
Posts: 29

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

you're welcome smile

Offline

#13 2022-01-08 16:23:08

jayrock
Member
Registered: 2021-12-19
Posts: 9

Re: [SOLVED] Arch Reboot / Shutdown Freezes (Kernel 5.15.10)

I updated my system today (kernel 5.15.13) and now the system shuts down and reboots just fine.

Marked this thread as [SOLVED]

Offline

Board footer

Powered by FluxBB