]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ALSA: hda: Clear RIRB status before reading WP
authorMohan Kumar <mkumard@nvidia.com>
Thu, 6 Feb 2020 10:10:53 +0000 (15:40 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:30 +0000 (14:47 +0100)
commitb8193f3bb8847d3daed1751abf854b78d2241b19
tree705b34524f174624103f54e06633c0a73c3d4bc0
parent49df06f7d5c88304d09b3bfc4da1030b4fe3f23c
ALSA: hda: Clear RIRB status before reading WP

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit 6d011d5057ff88ee556c000ac6fe0be23bdfcd72 ]

RIRB interrupt status getting cleared after the write pointer is read
causes a race condition, where last response(s) into RIRB may remain
unserviced by IRQ, eventually causing azx_rirb_get_response to fall
back to polling mode. Clearing the RIRB interrupt status ahead of
write pointer access ensures that this condition is avoided.

Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Link: https://lore.kernel.org/r/1580983853-351-1-git-send-email-viswanathl@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
sound/pci/hda/hda_controller.c