]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts sunxi: Relax a bit the CMA pool allocation range
authorMaxime Ripard <maxime@cerno.tech>
Sat, 4 Jul 2020 13:08:29 +0000 (15:08 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 6 Jul 2020 13:09:40 +0000 (15:09 +0200)
commitaed8e0880b554acff764a025d5fe5ba749a586e6
tree19141344648695e4dba9ab08dd0a9a820d0f9a86
parent2e0873da09585b8a2daf9ca8c2facd15f454ec3f
ARM: dts sunxi: Relax a bit the CMA pool allocation range

The hardware codec on the A10, A10s, A13 and A20 needs buffer in the
first 256MB of RAM. This was solved by setting the CMA pool at a fixed
address in that range.

However, in recent kernels there's something else that comes in and
reserve some range that end up conflicting with our default pool
requirement, and thus makes its reservation fail.

The video codec will then use buffers from the usual default pool,
outside of the range it can access, and will fail to decode anything.

Since we're only concerned about that 256MB, we can however relax the
allocation to just specify the range that's allowed, and not try to
enforce a specific address.

Fixes: fea2f4f608e9 ("ARM: dts: sun4i-a10: Add Video Engine and reserved memory nodes")
Fixes: d48a911ece48 ("ARM: dts: sun5i: Add Video Engine and reserved memory nodes")
Fixes: ebe7de72ff9d ("ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200704130829.34297-1-maxime@cerno.tech
arch/arm/boot/dts/sun4i-a10.dtsi
arch/arm/boot/dts/sun5i.dtsi
arch/arm/boot/dts/sun7i-a20.dtsi