]> git.baikalelectronics.ru Git - kernel.git/commit
media: coda: avoid hardware lockups with more than 13 capture buffers
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 12 Dec 2019 14:23:27 +0000 (15:23 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 09:09:12 +0000 (10:09 +0100)
commitdd152caf376c8902e1e3e9c5c82df0d2cd1c12f3
treedc49e38ceff91a910d7bbcaa5f2f5d1c875001de
parent830c13dfe711a43fc1fdef56c2b81b7e4352ca6a
media: coda: avoid hardware lockups with more than 13 capture buffers

When decoding using the CODA internal rotator (for example NV12
capture), currently the value vb2_buf.index + CODA_MAX_FRAMEBUFFERS (19)
is written into the DEC_PIC_ROT_INDEX register. At least with firmware
version 3.1.1 this causes CODA hangups as soon as the register value
reaches 32. Instead, always write CODA_MAX_FRAMEBUFFERS.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/coda/coda-bit.c