From e725757b3fa57eb91c07c17d874c47ada9a6045a Mon Sep 17 00:00:00 2001 From: Wayne Zou Date: Mon, 13 Aug 2012 15:26:23 +0800 Subject: [PATCH] ENGR00216786-3 V4L2 output: Allocate DMA buffer from DMA zone Allocate DMA buffer from DMA zone, and the system can configure reserve dma size through proc fs file under /proc/sys/vm/lowmem_reserve_ratio. Signed-off-by: Wayne Zou --- drivers/media/video/mxc/output/mxc_vout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c index 4b3617f89b08..366d27a92286 100644 --- a/drivers/media/video/mxc/output/mxc_vout.c +++ b/drivers/media/video/mxc/output/mxc_vout.c @@ -244,7 +244,7 @@ static int alloc_dma_buf(struct mxc_vout_output *vout, struct dma_mem *buf) { buf->vaddr = dma_alloc_coherent(vout->vbq.dev, buf->size, &buf->paddr, - GFP_KERNEL); + GFP_DMA | GFP_KERNEL); if (!buf->vaddr) { v4l2_err(vout->vfd->v4l2_dev, "cannot get dma buf size:0x%x\n", buf->size); -- 2.39.5