Skip to content

Commit

Permalink
ARM: Kirkwood: increase atomic coherent pool size
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Acked-by: Jason Cooper <[email protected]>
  • Loading branch information
mszyprow committed Aug 28, 2012
1 parent fb71285 commit cb01b63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/mach-kirkwood/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cb01b63

Please sign in to comment.