Skip to content

Commit

Permalink
drm: xlnx: zynqmp: Fix max dma segment size
Browse files Browse the repository at this point in the history
[ Upstream commit 28b529a ]

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

Fixes: d76271d ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem")
Reviewed-by: Sean Anderson <sean.anderson@linux.dev>
Tested-by: Sean Anderson <sean.anderson@linux.dev>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250115-xilinx-formats-v2-10-160327ca652a@ideasonboard.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Tomi Valkeinen authored and Greg Kroah-Hartman committed Apr 10, 2025
1 parent d360c02 commit e2b3107
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/xlnx/zynqmp_dpsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,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);

Expand Down

0 comments on commit e2b3107

Please sign in to comment.