]> asedeno.scripts.mit.edu Git - linux.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)
commit02d76a471975382ccf7f9d4b0859e00fe723265f
treedc49e38ceff91a910d7bbcaa5f2f5d1c875001de
parentafddf553ea8929c722921bfa3607e3586629442f
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