* [PATCH] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y
@ 2021-10-31 4:16 Qiang Yu
2021-10-31 5:06 ` Vasily Khoruzhick
0 siblings, 1 reply; 2+ messages in thread
From: Qiang Yu @ 2021-10-31 4:16 UTC (permalink / raw)
To: dri-devel
Cc: lima, David Airlie, Daniel Vetter, Erico Nunes,
Vasily Khoruzhick, Andreas Baierl, Qiang Yu, Roman Stratiienko
Otherwise get following warning:
DMA-API: lima 1c40000.gpu: mapping sg segment longer than device claims to support [len=4149248] [max=65536]
See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5496
Reported-by: Roman Stratiienko <r.stratiienko@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
---
drivers/gpu/drm/lima/lima_device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/lima/lima_device.c b/drivers/gpu/drm/lima/lima_device.c
index 65fdca366e41..36c990589427 100644
--- a/drivers/gpu/drm/lima/lima_device.c
+++ b/drivers/gpu/drm/lima/lima_device.c
@@ -357,6 +357,7 @@ int lima_device_init(struct lima_device *ldev)
int err, i;
dma_set_coherent_mask(ldev->dev, DMA_BIT_MASK(32));
+ dma_set_max_seg_size(ldev->dev, UINT_MAX);
err = lima_clk_init(ldev);
if (err)
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y
2021-10-31 4:16 [PATCH] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y Qiang Yu
@ 2021-10-31 5:06 ` Vasily Khoruzhick
0 siblings, 0 replies; 2+ messages in thread
From: Vasily Khoruzhick @ 2021-10-31 5:06 UTC (permalink / raw)
To: Qiang Yu
Cc: dri-devel, lima, David Airlie, Daniel Vetter, Erico Nunes,
Andreas Baierl, Roman Stratiienko
On Sat, Oct 30, 2021 at 9:16 PM Qiang Yu <yuq825@gmail.com> wrote:
>
> Otherwise get following warning:
>
> DMA-API: lima 1c40000.gpu: mapping sg segment longer than device claims to support [len=4149248] [max=65536]
>
> See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5496
>
> Reported-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
> Signed-off-by: Qiang Yu <yuq825@gmail.com>
> ---
> drivers/gpu/drm/lima/lima_device.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/lima/lima_device.c b/drivers/gpu/drm/lima/lima_device.c
> index 65fdca366e41..36c990589427 100644
> --- a/drivers/gpu/drm/lima/lima_device.c
> +++ b/drivers/gpu/drm/lima/lima_device.c
> @@ -357,6 +357,7 @@ int lima_device_init(struct lima_device *ldev)
> int err, i;
>
> dma_set_coherent_mask(ldev->dev, DMA_BIT_MASK(32));
> + dma_set_max_seg_size(ldev->dev, UINT_MAX);
>
> err = lima_clk_init(ldev);
> if (err)
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-31 5:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-31 4:16 [PATCH] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y Qiang Yu
2021-10-31 5:06 ` Vasily Khoruzhick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).