This is a note to let you know that I've just added the patch titled ALSA: hda: Flush pending unsolicited events before suspend to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: alsa-hda-flush-pending-unsolicited-events-before-suspend.patch and it can be found in the queue-5.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 13661fc48461282e43fe8f76bf5bf449b3d40687 Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@xxxxxxx> Date: Wed, 10 Mar 2021 12:28:07 +0100 Subject: ALSA: hda: Flush pending unsolicited events before suspend From: Takashi Iwai <tiwai@xxxxxxx> commit 13661fc48461282e43fe8f76bf5bf449b3d40687 upstream. The HD-audio controller driver processes the unsolicited events via its work asynchronously, and this might be pending when the system goes to suspend. When a lengthy event handling like ELD byte reads is running, this might trigger unexpected accesses among suspend/resume procedure, typically seen with Nvidia driver that still requires the handling via unsolicited event verbs for ELD updates. This patch adds the flush of unsol_work to assure that pending events are processed before going into suspend. Buglink: https://bugzilla.suse.com/show_bug.cgi?id=1182377 Reported-and-tested-by: Abhishek Sahu <abhsahu@xxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20210310112809.9215-2-tiwai@xxxxxxx Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/pci/hda/hda_intel.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1025,6 +1025,8 @@ static int azx_prepare(struct device *de chip = card->private_data; chip->pm_prepared = 1; + flush_work(&azx_bus(chip)->unsol_work); + /* HDA controller always requires different WAKEEN for runtime suspend * and system suspend, so don't use direct-complete here. */ Patches currently in stable-queue which might be from tiwai@xxxxxxx are queue-5.4/alsa-hda-avoid-spurious-unsol-event-handling-during-s3-s4.patch queue-5.4/alsa-hda-drop-the-batch-workaround-for-amd-controllers.patch queue-5.4/alsa-usb-audio-fix-cannot-get-freq-eq-errors-on-dell-ae515-sound-bar.patch queue-5.4/alsa-hda-flush-pending-unsolicited-events-before-suspend.patch queue-5.4/alsa-usb-add-plantronics-c320-m-usb-ctrl-msg-delay-quirk.patch queue-5.4/alsa-hda-ca0132-add-sound-blasterx-ae-5-plus-support.patch queue-5.4/alsa-hda-hdmi-cancel-pending-works-before-suspend.patch queue-5.4/alsa-usb-audio-apply-the-control-quirk-to-plantronics-headsets.patch