OSDN Git Service

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)
commit9b2a0a1ef66f96bf34921a3865581eca32ff05ec
treeedb291497810a06b741b9f43d17fee2273a3d07c
parent8090f7eb318d4241625449252db2741e7703e027
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