[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9eea9580-744a-4b04-97a1-11e86565b895@collabora.com>
Date: Mon, 29 Jan 2024 12:09:05 +0300
From: Dmitry Osipenko <dmitry.osipenko@...labora.com>
To: Sebastian Ott <sebott@...hat.com>, dri-devel@...ts.freedesktop.org,
virtualization@...ts.linux.dev, linux-kernel@...r.kernel.org
Cc: David Airlie <airlied@...hat.com>, Gerd Hoffmann <kraxel@...hat.com>,
Daniel Vetter <daniel@...ll.ch>
Subject: Re: [PATCH RESEND] drm/virtio: set segment size for virtio_gpu device
On 1/23/24 21:14, Sebastian Ott wrote:
> drm/virtio: set segment size for virtio_gpu device
>
> Set the segment size of the virtio_gpu device to the value
> used by the drm helpers when allocating sg lists to fix the
> following complaint from DMA_API debug code:
> DMA-API: virtio-pci 0000:07:00.0: mapping sg segment longer than device
> claims to support [len=262144] [max=65536]
>
> Signed-off-by: Sebastian Ott <sebott@...hat.com>
> ---
> drivers/gpu/drm/virtio/virtgpu_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c
> b/drivers/gpu/drm/virtio/virtgpu_drv.c
> index 4334c7608408..74b2cb3295af 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;
Added stable tag and applied to misc-fixes. Please use `git send-email`
next time. Thanks
--
Best regards,
Dmitry
Powered by blists - more mailing lists