Bug 219762
Summary: | [regression] power management broke in 6.12 for ECS BAT-I(1.2) | ||
---|---|---|---|
Product: | ACPI | Reporter: | David Flater (dave) |
Component: | Power-Sleep-Wake | Assignee: | acpi_power-sleep-wake |
Status: | NEEDINFO --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Hardware: | Intel | ||
OS: | Linux | ||
URL: | https://www.ecs.com.tw/en/Product/Motherboard/BAT-I_V1.2/overview | ||
Kernel Version: | >= 6.12 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | 948ce83fbb7df85bc930a5c0d6b133481be05c0b |
Description
David Flater
2025-02-08 16:12:56 UTC
Please bisect. https://docs.kernel.org/admin-guide/bug-bisect.html I bisected by testing whether shutdown would shut down and got a wrong answer: c26cee817f8bd9a22bfade20f739ec2fc6f20221 is the first bad commit commit c26cee817f8bd9a22bfade20f739ec2fc6f20221 Date: Sat Aug 10 20:00:05 2024 -0400 usb: gadget: f_fs: add capability for dfu functional descriptor The patch to revert that commit applied cleanly to the latest (a64dcfb451e254085a7daee5fe51bf22959d52d3) except for comments, but the resulting kernel could not shut down. Theories: 1. The failure is not 100% and some kernel with the fault accidentally succeeded during bisection. 2. The following error, which appeared after two of the failed shutdowns, indicated a second mode of failure that ruined the bisection: systemd-shutdown[1]: Failed to enumerate /proc/: Invalid argument. I will keep poking at it. Second try with different starting points, I landed on first bad commit: [948ce83fbb7df85bc930a5c0d6b133481be05c0b] xhci: Add USB4 tunnel detection for USB3 devices on Intel hosts It's in that big block of USB changes again. Revert patch does not apply cleanly. I checked out v6.12 ("bad"), copied in the config used for testing (which was based on an Arch kernel), stripped the USB device drivers config down to the minimum needed for keyboard and mouse on the PC in question, built and tested it. It totally worked. Shut down clean, suspend/resume clean. So, now I'm narrowing down USB device drivers rather than kernel versions. v6.12 and v6.14-rc3 are both cured by removing CONFIG_USB_XHCI_HCD. The result of the second bisection is looking more credible. Relevant settings in AMI setup that have remained constant through this testing: All USB Devices = Enabled Legacy USB Support = Enabled XHCI Mode = Auto (choices are Enabled, Auto, and Smart Auto) Patching xhci-hub.c xhci_port_is_tunneled in 6.14-rc3 to always return USB_LINK_NATIVE did not fix it. Changing XHCI Mode from Auto to Enabled in AMI setup did fix it. |