]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ARM: Orion5x: Fix too small coherent pool.
authorAndrew Lunn <andrew@lunn.ch>
Mon, 24 Sep 2012 05:54:33 +0000 (07:54 +0200)
committerOlof Johansson <olof@lixom.net>
Wed, 26 Sep 2012 23:48:47 +0000 (16:48 -0700)
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 <andrew@lunn.ch>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-orion5x/common.c

index 410291c676668befcfe5b43723af071ba153e5db..a6cd14ab1e4e6f4c27103baf780df091de0cfb93 100644 (file)
@@ -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;