From 85528a44bca8c43ff1a7d273613ba7a35ad34712 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 22 Aug 2022 19:16:34 -0500 Subject: drm/tidss: Set max DMA segment size We have no segment size limitations. Set to unlimited. Signed-off-by: Andrew Davis Signed-off-by: Tomi Valkeinen Link: https://patchwork.freedesktop.org/patch/msgid/20220823001634.11461-1-afd@ti.com --- drivers/gpu/drm/tidss/tidss_dispc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/drm/tidss') diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c index ad93acc9abd2..7a08feb9c2f0 100644 --- a/drivers/gpu/drm/tidss/tidss_dispc.c +++ b/drivers/gpu/drm/tidss/tidss_dispc.c @@ -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; -- cgit v1.2.3