Bug 218442 - [BISECTED] HID patch causes device timeouts and 30 second S3 suspend on several machines
Summary: [BISECTED] HID patch causes device timeouts and 30 second S3 suspend on sever...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks: 178231
  Show dependency tree
 
Reported: 2024-02-01 03:16 UTC by Todd Brandt
Modified: 2024-02-01 03:24 UTC (History)
2 users (show)

See Also:
Kernel Version: 6.8.0-rc1
Subsystem:
Regression: Yes
Bisected commit-id: f645a90e8ff732c48dd9f18815baef08c44ac8a0


Attachments
otcpl-dell-7390-icl_mem.html (958.99 KB, text/html)
2024-02-01 03:16 UTC, Todd Brandt
Details
otcpl-dell-9300-icl_mem.html (852.88 KB, text/html)
2024-02-01 03:17 UTC, Todd Brandt
Details

Description Todd Brandt 2024-02-01 03:16:36 UTC
Created attachment 305802 [details]
otcpl-dell-7390-icl_mem.html

An issue was introduced in kernel 6.8-rc1 which causes several machines to take 30 seconds on all but the first S3 suspend. The issue is that the HID devices are timing out and causing S3 suspend to have to wait a huge amount of time.

[   75.363468] hid-sensor-hub 001F:8087:0AC2.0004: timeout waiting for response from ISHTP device
[   78.435492] hid-sensor-hub 001F:8087:0AC2.0004: timeout waiting for response from ISHTP device
[   81.507479] hid-sensor-hub 001F:8087:0AC2.0004: timeout waiting for response from ISHTP device
[   81.507486] hid_sensor_magn_3d HID-SENSOR-200083.23.auto: PM: platform_pm_suspend+0x0/0x60 returned 0 after 9175367 usecs

[   84.579227] hid-sensor-hub 001F:8087:0AC2.0003: timeout waiting for response from ISHTP device
[   87.651552] hid-sensor-hub 001F:8087:0AC2.0003: timeout waiting for response from ISHTP device
[   90.723480] hid-sensor-hub 001F:8087:0AC2.0003: timeout waiting for response from ISHTP device
[   90.723488] hid_sensor_accel_3d HID-SENSOR-200073.15.auto: PM: platform_pm_suspend+0x0/0x60 returned 0 after 9215960 usecs

[   90.723530] hid_sensor_als HID-SENSOR-200041.6.auto: PM: calling platform_pm_suspend+0x0/0x60 @ 4033, parent: 001F:8087:0AC2.0002
[   93.795494] hid-sensor-hub 001F:8087:0AC2.0002: timeout waiting for response from ISHTP device
[   96.867514] hid-sensor-hub 001F:8087:0AC2.0002: timeout waiting for response from ISHTP device
[   99.939481] hid-sensor-hub 001F:8087:0AC2.0002: timeout waiting for response from ISHTP device
[   99.939488] hid_sensor_als HID-SENSOR-200041.6.auto: PM: platform_pm_suspend+0x0/0x60 returned 0 after 9215956 usecs

I've bisected this issue to the following commit:

commit f645a90e8ff732c48dd9f18815baef08c44ac8a0 (refs/bisect/bad)
Author: Even Xu <even.xu@intel.com>
Date:   Tue Dec 5 09:50:31 2023 +0800

    HID: intel-ish-hid: ishtp-hid-client: use helper functions for connection
    
    Use helper functions ishtp_cl_establish_connection() and
    ishtp_cl_destroy_connection() to establish and destroy connection
    respectively. These functions are used during initialization, reset and
    deinitialization flows.
    
    No functional changes are expected.
    
    Signed-off-by: Even Xu <even.xu@intel.com>
    Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.com>

The issue has affected two of our dell machines. The attached sleepgraph timelines include the dmesg logs, just click the dmesg button in the upper right. The log button shows system info.
Comment 1 Todd Brandt 2024-02-01 03:17:08 UTC
Created attachment 305803 [details]
otcpl-dell-9300-icl_mem.html
Comment 2 Todd Brandt 2024-02-01 03:24:02 UTC
Please note that the first S3 suspend/resume appears to work normally. This occurs on all subsequent S3 suspends.

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