Bug 215512 - Sound issues after resume when xhci_hcd loaded and intel rapid start enabled
Summary: Sound issues after resume when xhci_hcd loaded and intel rapid start enabled
Status: NEEDINFO
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: acpi_power-sleep-wake
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-21 11:51 UTC by PJBrs
Modified: 2022-06-27 01:49 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.15.15
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description PJBrs 2022-01-21 11:51:34 UTC
Under a very specific set of circumstances, my headphone jack and my internal mic aren't working anymore (i.e., no sound) after resume. This only happens when I have Intel rapid start enabled _and_ usb-3.0 enabled. I can disable usb-3.0 in the bios, and then sound works as it should after resume. I can also blacklist xhci_hcd, which also solves the problem. 

As far as I understand, Intel rapid start is a type of bios-controlled hibernation, that takes an S3-state, writes it to disk, and then powers down, outside the awareness of the OS. https://mjg59.dreamwidth.org/26022.html

I actually have little idea of where to put this bug, so let me know if I should file it elsewhere, such as with snd_hda_intel.

Hardware
Lenovo ThinkPad t450s
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-LM (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #6 (rev e3)
00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless 7265 (rev 99)

Kernel modules related to sound:
lsmod | grep snd
snd_hda_codec_hdmi     69632  1
snd_ctl_led            24576  0
snd_hda_codec_realtek   155648  1
snd_hda_codec_generic    90112  1 snd_hda_codec_realtek
snd_hda_intel          57344  7
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
snd_hda_codec         163840  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
ledtrig_audio          16384  3 snd_ctl_led,snd_hda_codec_generic,thinkpad_acpi
snd_pcm               139264  6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              36864  1 snd_pcm
snd                   106496  22 snd_ctl_led,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,thinkpad_acpi,snd_pcm
soundcore              16384  2 snd_ctl_led,snd

Software
This is on Slackware-current, with kernel 5.15.14. I didn't compile it myself, but Slackware doesn't patch kernel sources.
Comment 1 PJBrs 2022-01-21 14:45:16 UTC
I should add two things - 

1. after the problem occurs, I can make it go away by quickly suspending to ram and then resuming again. 

2. it doesn't occur when I deactivate Intel Rapid Start.
Comment 2 Zhang Rui 2022-06-27 01:49:10 UTC
with Intel rapid start disabled, does loading/unloading xhci_hcd driver make a difference?
with xhci_hcd driver unloaded, does enabling/disabling intel rapid start make a difference?

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