You need to sign in or sign up before continuing.
提交 85528a44 编写于 作者: A Andrew Davis 提交者: Tomi Valkeinen

drm/tidss: Set max DMA segment size

We have no segment size limitations. Set to unlimited.
Signed-off-by: NAndrew Davis <afd@ti.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220823001634.11461-1-afd@ti.com
上级 33f960e2
...@@ -2686,6 +2686,8 @@ int dispc_init(struct tidss_device *tidss) ...@@ -2686,6 +2686,8 @@ int dispc_init(struct tidss_device *tidss)
dev_warn(dev, "cannot set DMA masks to 48-bit\n"); 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); dispc = devm_kzalloc(dev, sizeof(*dispc), GFP_KERNEL);
if (!dispc) if (!dispc)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册