mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
media: rockchip: isp/ispp fix using of vb2_cma_sg
Signed-off-by: Cai YiWei <cyw@rock-chips.com> Change-Id: I564e64f93946c45f7295899fc97cab63b6ec8487
This commit is contained in:
@@ -680,6 +680,8 @@ static int rkisp_init_vb2_queue(struct vb2_queue *q,
|
||||
q->allow_cache_hints = 1;
|
||||
q->bidirectional = 1;
|
||||
q->gfp_flags = GFP_DMA32;
|
||||
if (stream->ispdev->hw_dev->is_dma_contig)
|
||||
q->dma_attrs = DMA_ATTR_FORCE_CONTIGUOUS;
|
||||
return vb2_queue_init(q);
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ static void rkispp_stats_vb2_buf_queue(struct vb2_buffer *vb)
|
||||
unsigned long lock_flags = 0;
|
||||
|
||||
vb2_plane_vaddr(vb, 0);
|
||||
if (stats_dev->dev->hw_dev->is_mmu) {
|
||||
if (stats_dev->dev->hw_dev->is_dma_sg_ops) {
|
||||
struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
|
||||
|
||||
buf->buff_addr[0] = sg_dma_address(sgt->sgl);
|
||||
|
||||
Reference in New Issue
Block a user