summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2024-02-02 12:13:01 +1000
committerDave Airlie <airlied@redhat.com>2024-02-02 12:13:05 +1000
commit419d8a93757f1fb4a0bd10e9c462a2f6da077ca7 (patch)
treeef856bc0a021c3d1875274f29a865f0f78660cab /drivers/gpu
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff)
parent1c1914d6e8c6edbf5b45047419ff51abdb1dce96 (diff)
downloadlinux-stable-419d8a93757f1fb4a0bd10e9c462a2f6da077ca7.tar.gz
linux-stable-419d8a93757f1fb4a0bd10e9c462a2f6da077ca7.tar.bz2
linux-stable-419d8a93757f1fb4a0bd10e9c462a2f6da077ca7.zip
Merge tag 'drm-misc-fixes-2024-02-01' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
A quiet week: one fix for CMA dma-buf pages accounting, and one to virtio to set the segment size of the virtio_gpu device. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <mripard@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/obnofpccz73c3uiqfyipxmjta5fgm4cle55dmtnissgtgxfgv7@22o7kb62efri
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c
index f8e9abe647b9..9539aa28937f 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.c
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.c
@@ -94,6 +94,7 @@ static int virtio_gpu_probe(struct virtio_device *vdev)
goto err_free;
}
+ dma_set_max_seg_size(dev->dev, dma_max_mapping_size(dev->dev) ?: UINT_MAX);
ret = virtio_gpu_init(vdev, dev);
if (ret)
goto err_free;