]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - allow 40 bit DMA mask for NVidia devices
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 17 Oct 2016 16:23:59 +0000 (17:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Oct 2016 09:20:17 +0000 (11:20 +0200)
commitfab89344bc6aadb3caac8c97141ddb57824c304f
tree3a6db9520f769f63f43a4dcf1058114e5d94e5dd
parent1df7eb1ca477b826c461b694d57789b4da41844a
ALSA: hda - allow 40 bit DMA mask for NVidia devices

Commit cc718fd9ffe2 ("ALSA: hda - Fix system panic when DMA > 40 bits
for Nvidia audio controllers") simply disabled any DMA exceeding 32
bits for NVidia devices, even though they are capable of performing
DMA up to 40 bits. On some architectures (such as arm64), system memory
is not guaranteed to be 32-bit addressable by PCI devices, and so this
change prevents NVidia devices from working on platforms such as AMD
Seattle.

Since the original commit already mentioned that up to 40 bits of DMA
is supported, and given that the code has been updated in the meantime
to support a 40 bit DMA mask on other devices, revert commit cc718fd9ffe2
and explicitly set the DMA mask to 40 bits for NVidia devices.

Fixes: cc718fd9ffe2 ('ALSA: hda - Fix system panic when DMA > 40 bits...')
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c