]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:33 +0000 (07:18 +0200)
commitb77b8c17df13fede07e8cbe0a188a94926a07b31
treeb449d57514229deb333782c73cf2d55b50616187
parent5a2ffd1ffa54f6f7e67bfdd84b83dad63d91282a
drm/virtio: use virtio_max_dma_size

[ Upstream commit 9b2a0a1ef66f96bf34921a3865581eca32ff05ec ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/virtio/virtgpu_object.c