Bug 218147

Summary: kernel 6.6.x and higher , apci reboot problems
Product: ACPI Reporter: walter59 (walter.moeller)
Component: ACPICA-CoreAssignee: acpi_acpica-core (acpi_acpica-core)
Status: NEW ---    
Severity: high CC: bagasdotme, chuck.lever, rossi.f
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description walter59 2023-11-15 07:27:35 UTC
since kernel 6.6 problems , reboot fails or me muss use double enter key .
under xfce4 it jumps on console and hangs.

restart under xfce4 fails shutdown also --- 6.5.11 it works all fine 

regards 

ps: all pcs . notebooks , nucs, workstation
Comment 1 Bagas Sanjaya 2023-11-15 11:38:43 UTC
(In reply to walter59 from comment #0)
> since kernel 6.6 problems , reboot fails or me muss use double enter key .
> under xfce4 it jumps on console and hangs.
> 
> restart under xfce4 fails shutdown also --- 6.5.11 it works all fine 
> 
> regards 
> 
> ps: all pcs . notebooks , nucs, workstation

Can you attach any system logs?
Comment 2 Fabio Rossi 2023-11-19 13:11:34 UTC
I have found a similar problem but in my case I don't think it's related to ACPI. In fact the problem is still there after adding the kernel option acpi=off. @walter59, can you test on your system by disabling ACPI too?

During system shutdown, started by "shutdown -h now", the process hangs (but the system is still working) during stopping of samba service. Instead the reboot still works.

My problem appeared with the upgrade 6.5.11 -> 6.6-rc1 so I have bisected until I have found the first bad commit:

$ git bisect log

git bisect start
# status: waiting for both good and bad commits
# good: [799441832db16b99e400ccbec55db801e6992819] Linux 6.5.11
git bisect good 799441832db16b99e400ccbec55db801e6992819
# status: waiting for bad commit, 1 good commit known
# bad: [0bb80ecc33a8fb5a682236443c1e740d5c917d1d] Linux 6.6-rc1
git bisect bad 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
# good: [2dde18cd1d8fac735875f2e4987f11817cc0bc2c] Linux 6.5
git bisect good 2dde18cd1d8fac735875f2e4987f11817cc0bc2c
# bad: [461f35f014466c4e26dca6be0f431f57297df3f2] Merge tag 'drm-next-2023-08-30' of git://anongit.freedesktop.org/drm/drm
git bisect bad 461f35f014466c4e26dca6be0f431f57297df3f2
# bad: [bd6c11bc43c496cddfc6cf603b5d45365606dbd5] Merge tag 'net-next-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
git bisect bad bd6c11bc43c496cddfc6cf603b5d45365606dbd5
# good: [6c9cfb853063f317b2953c5e852b6bac1eb0cade] net: ethernet: mtk_wed: minor change in wed_{tx,rx}info_show
git bisect good 6c9cfb853063f317b2953c5e852b6bac1eb0cade
# bad: [ccc5e9817719f59b3dea7b7a168861b4bf0b4ff4] Merge tag 'pm-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
git bisect bad ccc5e9817719f59b3dea7b7a168861b4bf0b4ff4
# bad: [68cadad11fe2ddd126b37a8fba3726be7fa0f5c6] Merge tag 'rcu.2023.08.21a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
git bisect bad 68cadad11fe2ddd126b37a8fba3726be7fa0f5c6
# bad: [dd2c0198a8365dcc3bb6aed22313d56088e3af55] Merge tag 'erofs-for-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs
git bisect bad dd2c0198a8365dcc3bb6aed22313d56088e3af55
# bad: [ecd7db20474c3859d4d01f34aaabf41bd28c7d84] Merge tag 'v6.6-vfs.tmpfs' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
git bisect bad ecd7db20474c3859d4d01f34aaabf41bd28c7d84
# good: [e9d7d3cb9fb3f142df574664507ac0ee4a26365a] procfs: convert to ctime accessor functions
git bisect good e9d7d3cb9fb3f142df574664507ac0ee4a26365a
# good: [6f4aaee3faa84f00d38bfaba88a9f75d8c78e7e0] fat: make fat_update_time get its own timestamp
git bisect good 6f4aaee3faa84f00d38bfaba88a9f75d8c78e7e0
# bad: [2daf18a7884dc03d5164ab9c7dc3f2ea70638469] tmpfs,xattr: enable limited user extended attributes
git bisect bad 2daf18a7884dc03d5164ab9c7dc3f2ea70638469
# good: [6faddda69f623d38bb097640689901a4b5ff881a] libfs: Add directory operations for stable offsets
git bisect good 6faddda69f623d38bb097640689901a4b5ff881a
# bad: [2be4f05af71bb2a9958c5680c19e5a489636ff42] libfs: Remove parent dentry locking in offset_iterate_dir()
git bisect bad 2be4f05af71bb2a9958c5680c19e5a489636ff42
# bad: [a2e459555c5f9da3e619b7e47a63f98574dc75f1] shmem: stable directory offsets
git bisect bad a2e459555c5f9da3e619b7e47a63f98574dc75f1
# good: [23a31d87645c652734f89f477f69ddac9aa402cb] shmem: Refactor shmem_symlink()
git bisect good 23a31d87645c652734f89f477f69ddac9aa402cb
# first bad commit: [a2e459555c5f9da3e619b7e47a63f98574dc75f1] shmem: stable directory offsets
Comment 3 Chuck Lever 2023-11-21 15:18:41 UTC
It is possible that

https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git/commit/?h=vfs.fixes&id=796432efab1e372d404e7a71cc6891a53f105051

might address the Samba shutdown issue. Please give that a try.
Comment 4 Fabio Rossi 2023-11-22 19:34:35 UTC
(In reply to Chuck Lever from comment #3)
> It is possible that
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git/commit/?h=vfs.
> fixes&id=796432efab1e372d404e7a71cc6891a53f105051
> 
> might address the Samba shutdown issue. Please give that a try.

I tried that commit on top of v6.6.2 and it works. So my issue has been solved!