]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: use virtio_max_dma_size
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Aug 2019 11:12:09 +0000 (13:12 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Aug 2019 08:09:02 +0000 (10:09 +0200)
commitd1dbcc1d728fa2e39012cc5dc6430227237dedb6
treeedb291497810a06b741b9f43d17fee2273a3d07c
parent1f15e6b6bb4ec2e4911321cfe282a4da6e47c6d2
drm/virtio: use virtio_max_dma_size

We must make sure our scatterlist segments are not too big, otherwise
we might see swiotlb failures (happens with sev, also reproducable with
swiotlb=force).

Suggested-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190821111210.27165-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_object.c