• Ard Biesheuvel's avatar
    ALSA: hda - allow 40 bit DMA mask for NVidia devices · 3ab7511e
    Ard Biesheuvel authored
    Commit 49d9e77e ("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 49d9e77e
    and explicitly set the DMA mask to 40 bits for NVidia devices.
    
    Fixes: 49d9e77e ('ALSA: hda - Fix system panic when DMA > 40 bits...')
    Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    3ab7511e
hda_intel.c 67.6 KB