mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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: 6edb685abb
("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>
This commit is contained in:
parent
1429826883
commit
be7de82384
@ -2340,6 +2340,10 @@ static int cfe_probe(struct platform_device *pdev)
|
||||
goto err_cfe_put;
|
||||
}
|
||||
|
||||
ret = vb2_dma_contig_set_max_seg_size(&pdev->dev, UINT_MAX);
|
||||
if (ret)
|
||||
goto err_cfe_put;
|
||||
|
||||
/* TODO: Enable clock only when running. */
|
||||
cfe->clk = devm_clk_get(&pdev->dev, NULL);
|
||||
if (IS_ERR(cfe->clk)) {
|
||||
|
Loading…
Reference in New Issue
Block a user