linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: Orion5x: Fix too small coherent pool.
@ 2012-09-24  5:54 Andrew Lunn
  2012-09-24 16:37 ` Jason Cooper
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2012-09-24  5:54 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 arch/arm/mach-orion5x/common.c |    7 +++++++
 1 file changed, 7 insertions(+)

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;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-25  0:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24  5:54 [PATCH] ARM: Orion5x: Fix too small coherent pool Andrew Lunn
2012-09-24 16:37 ` Jason Cooper
2012-09-24 17:37   ` Andrew Lunn
2012-09-24 23:16     ` Sebastian Hesselbarth
2012-09-24 23:45       ` Jason Cooper
2012-09-24 23:47         ` Olof Johansson
2012-09-25  0:04           ` Jason Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).