[PATCH v2 10/10] drm: xlnx: zynqmp: Fix max dma segment size

Tomi Valkeinen tomi.valkeinen at ideasonboard.com
Tue Feb 11 13:00:28 UTC 2025


Hi,

On 06/02/2025 21:48, Sean Anderson wrote:
> Hi Tomi,
> 
> On 1/15/25 04:03, Tomi Valkeinen wrote:
>> Fix "mapping sg segment longer than device claims to support" warning by
>> setting the max segment size.
>>
>> Fixes: d76271d22694 ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem")
>> Reviewed-by: Sean Anderson <sean.anderson at linux.dev>
>> Tested-by: Sean Anderson <sean.anderson at linux.dev>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
>> ---
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c
>> index f5781939de9c..a25b22238e3d 100644
>> --- a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c
>> +++ b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c
>> @@ -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);
>>   
>>
> 
> Can you apply this patch? I ran into this warning again today and I think this change
> is independent from the rest of the series.

Yes, I'll push this.

  Tomi



More information about the dri-devel mailing list