Skip to content
Snippets Groups Projects
Commit 28b529a9 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

drm: xlnx: zynqmp: Fix max dma segment size


Fix "mapping sg segment longer than device claims to support" warning by
setting the max segment size.

Fixes: d76271d2 ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem")
Reviewed-by: default avatarSean Anderson <sean.anderson@linux.dev>
Tested-by: default avatarSean Anderson <sean.anderson@linux.dev>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250115-xilinx-formats-v2-10-160327ca652a@ideasonboard.com
parent 6636c58b
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,8 @@ static int zynqmp_dpsub_probe(struct platform_device *pdev)
if (ret)
return ret;
dma_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));
/* Try the reserved memory. Proceed if there's none. */
of_reserved_mem_device_init(&pdev->dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment