2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/sound/pci
Imre Deak 472e18f63c ALSA: hda: Release controller display power during shutdown/reboot
Make sure the HDA driver's display power reference is released during
shutdown/reboot.

During the shutdown/reboot sequence the pci device core calls the
pm_runtime_resume handler for all devices before calling the driver's
shutdown callback and so the HDA driver's runtime resume callback will
acquire a display power reference (on HSW/BDW). This triggers a power
reference held WARN on HSW/BDW in the i915 driver's subsequent shutdown
handler, which expects all display power references to be released by
that time.

Since the HDA controller is stopped in the shutdown handler in any case,
let's follow here the same sequence as the one during runtime suspend.
This will also reset the HDA link and drop the display power reference,
getting rid of the above WARN.

Tested on HSW.

v2:
- Fix the build for CONFIG_PM=n (Takashi)
- s/__azx_runtime_suspend/azx_shutdown_chip/

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3618
References: https://lore.kernel.org/lkml/cea1f9a-52e0-b83-593d-52997fe1aaf6@er-systems.de
Reported-and-tested-by: Thomas Voegtle <tv@lio96.de>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20210623134601.2128663-1-imre.deak@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-06-23 16:28:02 +02:00
..
ac97 ALSA: ac97: Fix assignment in if condition 2021-06-09 17:30:02 +02:00
ali5451 module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
asihpi ALSA: asihpi: fix comment syntax in file headers 2021-03-18 10:13:25 +01:00
au88x0 ALSA: au88x0: Fix assignment in if condition 2021-06-09 17:30:03 +02:00
aw2 ALSA: pci: Simplify with dma_set_mask_and_coherent() 2021-01-15 11:17:00 +01:00
ca0106 ALSA: ca0106: Fix assignment in if condition 2021-06-09 17:30:05 +02:00
cs46xx ALSA: cs46xx: Fix assignment in if condition 2021-06-09 17:30:06 +02:00
cs5535audio ALSA: cs5535audio: Fix assignment in if condition 2021-06-09 17:30:07 +02:00
ctxfi ALSA: control - add generic LED API 2021-03-30 17:42:40 +02:00
echoaudio ALSA: echoaudio: Fix assignment in if condition 2021-06-09 17:30:08 +02:00
emu10k1 ALSA: emu10k1x: Fix assignment in if condition 2021-06-09 17:30:13 +02:00
hda ALSA: hda: Release controller display power during shutdown/reboot 2021-06-23 16:28:02 +02:00
ice1712 ALSA: ice1712: Fix assignment in if condition 2021-06-09 17:30:14 +02:00
korg1212 ALSA: korg1212: Fix assignment in if condition 2021-06-09 17:30:14 +02:00
lola module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
lx6464es ALSA: pci: lx6464es: remove useless self-comparison 2021-05-27 08:25:14 +02:00
mixart ALSA: mixart: Fix assignment in if condition 2021-06-09 17:30:15 +02:00
nm256 ALSA: nm256: Fix assignment in if condition 2021-06-09 17:30:16 +02:00
oxygen module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
pcxhr ALSA: pcxhr: Fix assignment in if condition 2021-06-09 17:30:17 +02:00
riptide ALSA: riptide: Fix assignment in if condition 2021-06-09 17:30:18 +02:00
rme9652 ALSA: hdsp: fix a test for copy_to_user() failure 2021-06-22 21:33:24 +02:00
trident ALSA: trident: Fix build error 2021-06-12 09:29:50 +02:00
vx222 ALSA: vx222: Fix assignment in if condition 2021-06-09 17:30:21 +02:00
ymfpci ALSA: ymfpci: Fix assignment in if condition 2021-06-09 17:30:21 +02:00
ad1889.c ALSA: ad1889: Fix assignment in if condition 2021-06-09 17:29:49 +02:00
ad1889.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ak4531_codec.c ALSA: ak4531: Fix assignment in if condition 2021-06-09 17:29:49 +02:00
als300.c ALSA: als300: Fix assignment in if condition 2021-06-09 17:29:50 +02:00
als4000.c ALSA: als4000: Fix assignment in if condition 2021-06-09 17:29:51 +02:00
atiixp_modem.c ALSA: atiixp: Fix assignment in if condition 2021-06-09 17:29:51 +02:00
atiixp.c ALSA: atiixp: Fix assignment in if condition 2021-06-09 17:29:51 +02:00
azt3328.c ALSA: azt3328: Fix assignment in if condition 2021-06-09 17:29:52 +02:00
azt3328.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bt87x.c ALSA: bt87x: Fix assignment in if condition 2021-06-09 17:29:53 +02:00
cmipci.c ALSA: cmipci: Fix assignment in if condition 2021-06-09 17:29:53 +02:00
cs4281.c ALSA: cs4281: Fix assignment in if condition 2021-06-09 17:29:54 +02:00
cs5530.c ALSA: pci: Constify snd_device_ops definitions 2020-01-03 09:23:56 +01:00
ens1370.c ALSA: ens137x: Fix assignment in if condition 2021-06-09 17:29:55 +02:00
ens1371.c
es1938.c ALSA: es1938: Fix assignment in if condition 2021-06-09 17:29:56 +02:00
es1968.c ALSA: es1968: Fix assignment in if condition 2021-06-09 17:29:56 +02:00
fm801.c ALSA: fm801: Fix assignment in if condition 2021-06-09 17:29:57 +02:00
intel8x0.c ALSA: intel8x0: Fix assignment in if condition 2021-06-09 17:29:58 +02:00
intel8x0m.c ALSA: intel8x0: Fix assignment in if condition 2021-06-09 17:29:58 +02:00
Kconfig sound: Fix Kconfig indentation 2019-10-07 03:53:03 +02:00
maestro3.c ALSA: maestro3: Fix assignment in if condition 2021-06-09 17:29:58 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rme32.c ALSA: rme32: Fix assignment in if condition 2021-06-09 17:29:59 +02:00
rme96.c ALSA: rme96: Fix assignment in if condition 2021-06-09 17:30:00 +02:00
sis7019.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
sis7019.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 274 2019-06-05 17:30:30 +02:00
sonicvibes.c ALSA: sonicvibes: Fix assignment in if condition 2021-06-09 17:30:01 +02:00
via82xx_modem.c ALSA: via82xx: Fix assignment in if condition 2021-06-09 17:30:01 +02:00
via82xx.c ALSA: via82xx: Fix assignment in if condition 2021-06-09 17:30:01 +02:00