[PATCH] ARM: dts sunxi: Relax a bit the CMA pool allocation range

Maxime Ripard maxime at cerno.tech
Mon Jul 6 09:11:05 EDT 2020


On Mon, Jul 06, 2020 at 11:18:51AM +0800, Chen-Yu Tsai wrote:
> On Sat, Jul 4, 2020 at 9:08 PM Maxime Ripard <maxime at cerno.tech> wrote:
> >
> > 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.
> >
> > Cc: Paul Kocialkowski <paul.kocialkowski at bootlin.com>
> > Fixes: 5949bc5602cc ("ARM: dts: sun4i-a10: Add Video Engine and reserved memory nodes")
> > Fixes: 960432010156 ("ARM: dts: sun5i: Add Video Engine and reserved memory nodes")
> > Fixes: c2a641a74850 ("ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes")
> > Signed-off-by: Maxime Ripard <maxime at cerno.tech>
> 
> Acked-by: Chen-Yu Tsai <wens at csie.org>

Applied, thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200706/f2267d81/attachment.sig>


More information about the linux-arm-kernel mailing list