[PATCH] ARM: Orion5x: Fix too small coherent pool.

Jason Cooper jason at lakedaemon.net
Mon Sep 24 12:37:16 EDT 2012


On Mon, Sep 24, 2012 at 07:54:33AM +0200, Andrew Lunn wrote:
> 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 at lunn.ch>

Acked-by: Jason Cooper <jason at lakedaemon.net>

btw - we should take this to it's logical conclusion and have Sebastian
check Dove.  Sebastian?

thx,

Jason.

> ---
>  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
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list