diff options
| author | Qiang Yu <[email protected]> | 2021-10-31 04:16:04 +0000 |
|---|---|---|
| committer | Qiang Yu <[email protected]> | 2021-11-06 03:34:43 +0000 |
| commit | 89636a06fa2ee7826a19c39c19a9bc99ab9340a9 (patch) | |
| tree | 6bb730578998468a10c9c39ce5225b40ba5ee3ab | |
| parent | drm/vc4: hdmi: Introduce a scdc_enabled flag (diff) | |
| download | kernel-89636a06fa2ee7826a19c39c19a9bc99ab9340a9.tar.gz kernel-89636a06fa2ee7826a19c39c19a9bc99ab9340a9.zip | |
drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y
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
Reviewed-by: Vasily Khoruzhick <[email protected]>
Reported-by: Roman Stratiienko <[email protected]>
Signed-off-by: Qiang Yu <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/lima/lima_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
