drm/tidss: Set max DMA segment size
authorAndrew Davis <afd@ti.com>
Tue, 23 Aug 2022 00:16:34 +0000 (19:16 -0500)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 16 Dec 2022 17:24:39 +0000 (19:24 +0200)
We have no segment size limitations. Set to unlimited.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220823001634.11461-1-afd@ti.com
drivers/gpu/drm/tidss/tidss_dispc.c

index ad93acc..7a08feb 100644 (file)
@@ -2686,6 +2686,8 @@ int dispc_init(struct tidss_device *tidss)
                        dev_warn(dev, "cannot set DMA masks to 48-bit\n");
        }
 
+       dma_set_max_seg_size(dev, UINT_MAX);
+
        dispc = devm_kzalloc(dev, sizeof(*dispc), GFP_KERNEL);
        if (!dispc)
                return -ENOMEM;