From: Andrew Lunn Date: Mon, 24 Sep 2012 05:54:33 +0000 (+0200) Subject: ARM: Orion5x: Fix too small coherent pool. X-Git-Tag: upstream/snapshot3+hdmi~6641^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84d5dfbf09be6be71d6dda63d99a8303e85663c7;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: Orion5x: Fix too small coherent pool. Some Orion5x devices allocate their coherent buffers from atomic context. Increase size of atomic coherent pool to make sure such the allocations won't fail during boot. Signed-off-by: Andrew Lunn Acked-by: Jason Cooper Signed-off-by: Olof Johansson --- diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 410291c..a6cd14a 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c @@ -204,6 +204,13 @@ void __init orion5x_wdt_init(void) void __init orion5x_init_early(void) { orion_time_set_base(TIMER_VIRT_BASE); + + /* + * Some Orion5x devices allocate their coherent buffers from atomic + * context. Increase size of atomic coherent pool to make sure such + * the allocations won't fail. + */ + init_dma_coherent_pool_size(SZ_1M); } int orion5x_tclk;