Bug 218904 - Reboot and shutdown freeze since 6.6.30 till recent kernels
Summary: Reboot and shutdown freeze since 6.6.30 till recent kernels
Status: RESOLVED ANSWERED
Alias: None
Product: Linux
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: Intel Linux
: P3 normal
Assignee: Virtual assignee for kernel bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-27 23:21 UTC by mrpingo
Modified: 2024-05-31 11:11 UTC (History)
1 user (show)

See Also:
Kernel Version: 6.7
Subsystem:
Regression: Yes
Bisected commit-id: e046d156249140711a08ff27473591c74ef90814


Attachments

Description mrpingo 2024-05-27 23:21:45 UTC
Hello and thank you very much for your infinite patience and effort.

So sorry if this doesn't fits in this classification group, I cant figure out which one was the correct.

I've been suffering a shutdown/reboot freeze in two of my Thinkpads, one of them is a x270, the other one is a x390 since kernel 6.7 till recent kernels. The last one that don´t have this freeze problem is 6.6.30. Neither 6.7.x till 6.9.x kernels on the Gentoo portage tree solved this problem, and I think something changed in 6.7 series that is still present in recent ones.

The bug itself is shown as this: Everything seems to properly shutdown (screen, keyboard, ...) but in the end both laptops still powered (I can hear the fan in both and x270 has power light switched on, x390 bloq mayus light is blinking and power light switched on). I still have to press both laptops power button to do a completely poweroff.

I haven't found on the web, nor bugzilla anyone pointing to this issue on theese kernel versions, but some similar behaviour in some degree that I cannot confirm it is the very same problem.

I filled a bug on Gentoo specific kernel bugzilla: https://bugs.gentoo.org/929240

There, they asked me to do a git bisect between versions and after many configure, compilations, installs, reboots and git bisects narrowed it to this commit:

_______________________________________________________________________________
❯ git bisect good
e046d156249140711a08ff27473591c74ef90814 is the first bad commit
commit e046d156249140711a08ff27473591c74ef90814
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Tue Aug 29 14:39:17 2023 +0300

    drm/i915/hdmi: Use connector->ddc everwhere
    
    We already populate connector->ddc for HDMI ports, but
    so far we've not taken full advantage of it. Do that by
    eliminating a bunch of intel_gmbus_get_adapter() lookups.
    
    Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230829113920.13713-10-ville.syrjala@linux.intel.com
    Reviewed-by: Jani Nikula <jani.nikula@intel.com>

 drivers/gpu/drm/i915/display/intel_ddi.c  |  3 +--
 drivers/gpu/drm/i915/display/intel_hdmi.c | 37 +++++++++++--------------------
 2 files changed, 14 insertions(+), 26 deletions(-)'
_____________________________________________________________________________

I would do tests or whatever thing you like to get logs (neither dmesg or rc logs anything about it or weird), might KERNEL_DEBUG get some useful one? I didn't try it.

Ask for whatever you need, If I don't know how to get it I will study to get them.

Many thanks in advance.

Best
Comment 1 Artem S. Tashkinov 2024-05-27 23:47:24 UTC
Please post here as well:

https://gitlab.freedesktop.org/drm/intel/-/issues

Literally no one will see this bug here.
Comment 2 mrpingo 2024-05-28 00:17:41 UTC
Will do.

Again, Manny thanks. 

Regards
Comment 3 mrpingo 2024-05-31 11:11:22 UTC
For completeness you can find the issue here:

https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11244

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