diff options
author | Robin Murphy <robin.murphy@arm.com> | 2017-01-10 17:51:17 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-01-25 00:33:10 +0200 |
commit | f7f6634d23830ff74335734fbdb28ea109c1f349 (patch) | |
tree | 16604be2ced1416e3a2ec61225e4bf484cce0a72 /mm | |
parent | 0516ffd88fa0d006ee80389ce14a9ca5ae45e845 (diff) | |
download | blackbird-obmc-linux-f7f6634d23830ff74335734fbdb28ea109c1f349.tar.gz blackbird-obmc-linux-f7f6634d23830ff74335734fbdb28ea109c1f349.zip |
virtio_mmio: Set DMA masks appropriately
Once DMA API usage is enabled, it becomes apparent that virtio-mmio is
inadvertently relying on the default 32-bit DMA mask, which leads to
problems like rapidly exhausting SWIOTLB bounce buffers.
Ensure that we set the appropriate 64-bit DMA mask whenever possible,
with the coherent mask suitably limited for the legacy vring as per
a0be1db4304f ("virtio_pci: Limit DMA mask to 44 bits for legacy virtio
devices").
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Michael S. Tsirkin <mst@redhat.com>
Reported-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Fixes: b42111382f0e ("virtio_mmio: Use the DMA API if enabled")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions