From: Laurent Pinchart Date: Thu, 1 Mar 2012 14:45:16 +0000 (+0100) Subject: ARM: mach-shmobile: mackerel: Reserve DMA memory for the frame buffer X-Git-Tag: v3.12-rc1~3713^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1740d3448012475f6b63172631c60cbcd1994a81;p=kernel%2Fkernel-generic.git ARM: mach-shmobile: mackerel: Reserve DMA memory for the frame buffer The default 2MB size of DMA coherent memory isn't enough for allocate frame buffer memory. Signed-off-by: Laurent Pinchart Signed-off-by: Paul Mundt --- diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index a281324..7b53cda 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -1352,6 +1352,10 @@ static struct map_desc mackerel_io_desc[] __initdata = { static void __init mackerel_map_io(void) { iotable_init(mackerel_io_desc, ARRAY_SIZE(mackerel_io_desc)); + /* DMA memory at 0xff200000 - 0xffdfffff. The default 2MB size isn't + * enough to allocate the frame buffer memory. + */ + init_consistent_dma_size(12 << 20); /* setup early devices and console here as well */ sh7372_add_early_devices();