Linux-Rockchip Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] media: verisilicon: Fix Hantro G2 handling of invalid DPB index
@ 2025-09-22 18:43 Nicolas Dufresne
  2025-09-22 18:43 ` [PATCH 1/2] media: verisilicon: Fix CPU stalls on G2 bus error Nicolas Dufresne
  2025-09-22 18:43 ` [PATCH 2/2] media: verisilicon: Protect G2 HEVC decoder against invalid DPB index Nicolas Dufresne
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Dufresne @ 2025-09-22 18:43 UTC (permalink / raw)
  To: Benjamin Gaignard, Philipp Zabel, Mauro Carvalho Chehab,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Jernej Skrabec, Hans Verkuil, Ezequiel Garcia
  Cc: Mauro Carvalho Chehab, linux-media, linux-rockchip, linux-kernel,
	imx, linux-arm-kernel, kernel, Stable, Nicolas Dufresne

First patch hardens the IRQ handler so the driver can resume after
hitting bus errors (presumably AXI errors). This will reduce the
risk of having to reboot the system in order to recover.

The second patch actually fix the issue, ensuring the decoder won't be
instructed to use address 0x0 as a reference anymore.

The issues was discovered using GStreamer. A bug in the userspace lead
to skippable (RASL) frames not being skipped if its past reference are
missing. This will happen when seeking inside a video that makes use of
this GOP configuration. The probably could also have been hit in lossy
streaming use cases, such as WebRTC. The JCT-VC-HEVC_V1 ITU tests still
results in 141/147 with two concurrent decoders.

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
---
Nicolas Dufresne (2):
      media: verisilicon: Fix CPU stalls on G2 bus error
      media: verisilicon: Protect G2 HEVC decoder against invalid DPB index

 drivers/media/platform/verisilicon/hantro_g2.c     | 88 +++++++++++++++++-----
 .../platform/verisilicon/hantro_g2_hevc_dec.c      | 17 ++++-
 .../media/platform/verisilicon/hantro_g2_regs.h    | 13 ++++
 .../media/platform/verisilicon/hantro_g2_vp9_dec.c |  2 -
 drivers/media/platform/verisilicon/hantro_hw.h     |  1 +
 drivers/media/platform/verisilicon/imx8m_vpu_hw.c  |  2 +
 6 files changed, 98 insertions(+), 25 deletions(-)
---
base-commit: 40b7a19f321e65789612ebaca966472055dab48c
change-id: 20250919-imx8mq-hantro-g2-hang-cb04dcd07a84

Best regards,
-- 
Nicolas Dufresne <nicolas.dufresne@collabora.com>


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-23 12:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-22 18:43 [PATCH 0/2] media: verisilicon: Fix Hantro G2 handling of invalid DPB index Nicolas Dufresne
2025-09-22 18:43 ` [PATCH 1/2] media: verisilicon: Fix CPU stalls on G2 bus error Nicolas Dufresne
2025-09-23 12:57   ` Benjamin Gaignard
2025-09-22 18:43 ` [PATCH 2/2] media: verisilicon: Protect G2 HEVC decoder against invalid DPB index Nicolas Dufresne
2025-09-23 12:59   ` Benjamin Gaignard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox