Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: mx3fb: Allow blocking during framebuffer allocation

No need to allocate the framebuffer from the atomic pool, we are not
in interrupt context. Adding GFP_KERNEL to the framebuffer allocation
allows to use the much bigger CMA pool to allocate the framebuffer.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Sascha Hauer and committed by
Tomi Valkeinen
4d32d047 46862145

+1 -1
+1 -1
drivers/video/mx3fb.c
··· 1263 1263 1264 1264 fbi->screen_base = dma_alloc_writecombine(fbi->device, 1265 1265 mem_len, 1266 - &addr, GFP_DMA); 1266 + &addr, GFP_DMA | GFP_KERNEL); 1267 1267 1268 1268 if (!fbi->screen_base) { 1269 1269 dev_err(fbi->device, "Cannot allocate %u bytes framebuffer memory\n",