Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb01b633 authored by Marek Szyprowski's avatar Marek Szyprowski
Browse files

ARM: Kirkwood: increase atomic coherent pool size



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: default avatarJosh Coombs <josh.coombs@gmail.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
parent fb71285f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;