FS#80064 - [linux] HDD does not spin down before shutdown

Attached to Project: Arch Linux
Opened by Jeremy Smith (DarkLord) - Monday, 23 October 2023, 14:41 GMT
Last edited by Toolybird (Toolybird) - Thursday, 26 October 2023, 20:11 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Levente Polyak (anthraxx)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
After yesterday's system update, Arch no longer spins down the HDD during poweroff. When shutting down my laptop, power is abruptly cut from the HDD, causing an emergency head retract and a corresponding loud noise A few other users have reported this on reddit as well. The problem does not occur on other OSes installed on this machine.

I reinstalled Arch today to see if problem persists. The emergency head retract does not occur when powering off from within the installer. However, it continues to happen every time I do a shutdown from within the installed system.

Additional info:
* Version: linux-lts kernel 6.5.8
* Possibly related: https://bugzilla.kernel.org/show_bug.cgi?id=205107

Steps to reproduce:
1. Shut down computer.
2. After power is cut off, HDD does a loud emergency head retract.

This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 26 October 2023, 20:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 6.5.9.arch2-1
Comment by Toolybird (Toolybird) - Monday, 23 October 2023, 18:44 GMT
It sounds like an upstream kernel regression. General debugging advice here [1]. This will need to be reported upstream to the kernel devs. Ideally, someone should first perform a git bisection to identify the causal commit. Please let us know what you find out.

[1] https://wiki.archlinux.org/title/Kernel#Debugging_regressions
Comment by Jeremy Smith (DarkLord) - Monday, 23 October 2023, 20:05 GMT
Looks like a report has been created: https://bugzilla.kernel.org/show_bug.cgi?id=218038
Comment by loqs (loqs) - Monday, 23 October 2023, 21:19 GMT Comment by Toolybird (Toolybird) - Tuesday, 24 October 2023, 06:13 GMT
Dupe  FS#80068  merged here.
Comment by Alberto Jiménez Ruiz (albjimrui) - Tuesday, 24 October 2023, 06:17 GMT
I would like to report that downgrading the kernel to 6.5.7 fixes this bug for me.
Comment by loqs (loqs) - Tuesday, 24 October 2023, 08:25 GMT
6.5.8.arch1 with bbbf096ea227607cbb348155eeda7af71af1a35b [1] reverted:
https://drive.google.com/file/d/1bpoqz9 … sp=sharing linux-6.5.8.arch1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1m2L4vG … sp=sharing linux-headers-6.5.8.arch1-1.1-x86_64.pkg.tar.zst

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bbbf096ea227607cbb348155eeda7af71af1a35b
Comment by Alberto Jiménez Ruiz (albjimrui) - Tuesday, 24 October 2023, 09:58 GMT
I have installed the kernels proposed in this thread and the problem disappears

sha256sum *
983359f4e75ce26c2b2a1679e23d2b9a6634d9319e11532d27028d0b9fd4398a linux-6.5.8.arch1-1.1-x86_64.pkg.tar.zst
bdc7be2b0872fc3f84e6eb859e436ae55d62cb65a3b84f5a612d0307b1b48e5e linux-headers-6.5.8.arch1-1.1-x86_64.pkg.tar.zst

uname -r
6.5.8-arch1-1.1

Therefore, that commit is the offending one.
Comment by loqs (loqs) - Wednesday, 25 October 2023, 09:07 GMT Comment by Toolybird (Toolybird) - Wednesday, 25 October 2023, 21:05 GMT
@loqs, thanks for liaising with upstream on this one. Assume we'll see it in the next stable bump...but PM's might want to backport it earlier.
Comment by Jan Alexander Steffens (heftig) - Thursday, 26 October 2023, 01:56 GMT
Should be fixed in 6.5.9.arch2-1

Loading...