ARM: Kirkwood: increase atomic coherent pool size
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 28 Aug 2012 18:57:41 +0000 (20:57 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 28 Aug 2012 19:01:04 +0000 (21:01 +0200)
The default 256 KiB coherent pool may be too small for some of the Kirkwood
devices, so increase it to make sure that devices will be able to allocate
their buffers with GFP_ATOMIC flag.

Suggested-by: Josh Coombs <josh.coombs@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-kirkwood/common.c

index c4b64adcbfce4be58c7a9b149df9e33d19e02e51..d748f50338610e4568bf6ee5ebac7644ff2d9dc0 100644 (file)
@@ -517,6 +517,13 @@ void __init kirkwood_wdt_init(void)
 void __init kirkwood_init_early(void)
 {
        orion_time_set_base(TIMER_VIRT_BASE);
+
+       /*
+        * Some Kirkwood 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 kirkwood_tclk;