diff options
| author | Ming Qian <ming.qian@oss.nxp.com> | 2025-12-05 09:54:26 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-01-05 15:56:31 +0100 |
| commit | e0203ddf9af7c8e170e1e99ce83b4dc07f0cd765 (patch) | |
| tree | 834d1d389708a757f39c10487d1ceda8c33a3af3 /tools/lib/python/kdoc | |
| parent | db6b97a4f8041e479be9ef4b8b07022636c96f50 (diff) | |
| download | linux-e0203ddf9af7c8e170e1e99ce83b4dc07f0cd765.tar.gz linux-e0203ddf9af7c8e170e1e99ce83b4dc07f0cd765.zip | |
media: verisilicon: Avoid G2 bus error while decoding H.264 and HEVC
For the i.MX8MQ platform, there is a hardware limitation: the g1 VPU and
g2 VPU cannot decode simultaneously; otherwise, it will cause below bus
error and produce corrupted pictures, even potentially lead to system hang.
[ 110.527986] hantro-vpu 38310000.video-codec: frame decode timed out.
[ 110.583517] hantro-vpu 38310000.video-codec: bus error detected.
Therefore, it is necessary to ensure that g1 and g2 operate alternately.
This allows for successful multi-instance decoding of H.264 and HEVC.
To achieve this, g1 and g2 share the same v4l2_m2m_dev, and then the
v4l2_m2m_dev can handle the scheduling.
Fixes: cb5dd5a0fa518 ("media: hantro: Introduce G2/HEVC decoder")
Cc: stable@vger.kernel.org
Signed-off-by: Ming Qian <ming.qian@oss.nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Co-developed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
