]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: raspberrypi: cfe: Fix mapping of dmabuf buffers
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 4 Nov 2024 07:47:54 +0000 (09:47 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 7 Nov 2024 08:05:58 +0000 (09:05 +0100)
commitbe7de823847bd136ff5db095cb9a4283b9630bba
tree9ff0716febe3298bc009b7a499e8aebcf5c7c3ee
parent1429826883bb18847092b2e04c6598ef34bae1d4
media: raspberrypi: cfe: Fix mapping of dmabuf buffers

When using buffers from DRM, DMA-API gives a warning about: "mapping sg
segment longer than device claims to support [len=307200] [max=65536]"

Add a call to vb2_dma_contig_set_max_seg_size() to tell the DMA-API
about the supported segment size (which is UINT_MAX).

Fixes: 6edb685abb2a ("media: raspberrypi: Add support for RP1-CFE")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c