diff options
author | Wayne Zou <b36644@freescale.com> | 2012-08-13 15:25:12 +0800 |
---|---|---|
committer | Wayne Zou <b36644@freescale.com> | 2012-08-13 16:19:06 +0800 |
commit | df8c1c22bd02a4e9df823cd127b0139e6f4c02b2 (patch) | |
tree | 02e4e2a7b2c1fc5269b0a825011f670818f35b77 | |
parent | ab187e938dcdbc3968def50fc55e7aec33901c34 (diff) |
ENGR00216786-2 IPU/FB: 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 <b36644@freescale.com>
-rw-r--r-- | drivers/video/mxc/mxc_ipuv3_fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c index 4c3ae1e1511e..c9cdad48b899 100644 --- a/drivers/video/mxc/mxc_ipuv3_fb.c +++ b/drivers/video/mxc/mxc_ipuv3_fb.c @@ -401,13 +401,13 @@ static int mxcfb_set_par(struct fb_info *fbi) dma_alloc_coherent(fbi->device, alpha_mem_len, &mxc_fbi->alpha_phy_addr0, - GFP_KERNEL); + GFP_DMA | GFP_KERNEL); mxc_fbi->alpha_virt_addr1 = dma_alloc_coherent(fbi->device, alpha_mem_len, &mxc_fbi->alpha_phy_addr1, - GFP_KERNEL); + GFP_DMA | GFP_KERNEL); if (mxc_fbi->alpha_virt_addr0 == NULL || mxc_fbi->alpha_virt_addr1 == NULL) { dev_err(fbi->device, "mxcfb: dma alloc for" @@ -1652,7 +1652,7 @@ static int mxcfb_map_video_memory(struct fb_info *fbi) fbi->screen_base = dma_alloc_writecombine(fbi->device, fbi->fix.smem_len, (dma_addr_t *)&fbi->fix.smem_start, - GFP_KERNEL); + GFP_DMA | GFP_KERNEL); if (fbi->screen_base == 0) { dev_err(fbi->device, "Unable to allocate framebuffer memory\n"); fbi->fix.smem_len = 0; |