Linux-Rockchip Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] media: verisilicon: Keep the CAPTURE format in line with the decoder
@ 2026-11-30 21:53 Arun Iyengar via B4 Relay
  2026-11-30 21:53 ` [PATCH v3 1/5] media: verisilicon: Size the VP8 segment map for the largest frame Arun Iyengar via B4 Relay
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-11-30 21:53 UTC (permalink / raw)
  To: Nicolas Dufresne, Benjamin Gaignard, Philipp Zabel,
	Mauro Carvalho Chehab, Andrzej Pietrasiewicz, Hans Verkuil,
	Jernej Skrabec, Ezequiel Garcia
  Cc: linux-media, linux-rockchip, linux-kernel, stable, Arun Iyengar

Fixes for cases where the decoder writes past the CAPTURE format or an
auxiliary buffer, found by Sashiko on hantro-dec-size-check v1 [1].

Tested with AV1 on an Orange Pi 5 (RK3588S): CAPTURE format checks for
patches 2, 4 and 5; 64 10-bit vectors to NV12 bit-exact with libdav1d
for patch 3. VP8 and AV1 fluster on v2: no new failures. The overrun in
patch 1 was not reproduced. HEVC and VP9 (G2) are untested.

Developed with Claude (Anthropic), which wrote the code and the commit
messages. I reviewed every change.

[1] https://lore.kernel.org/r/20261112-hantro-dec-size-check-v1-1-e5f1180b625f@gmail.com

---
Changes in v3:
- New 3/5: size reference frames by the stream bit depth (Sashiko on v2 3/4)
- 5/5: drop the NULL check, v4l2_ctrl_new() now sets the handler error
- Reviewed-by from Benjamin on 1/5 and 2/5
- Rebased on media-committers next
- Link to v2: https://patch.msgid.link/20261115-hantro-fixes-v2-0-bfecfb07a3e7@gmail.com

Changes in v2:
- 3/4: also replace a native format when post-processing; second Fixes tag (Sashiko)
- 4/4: check the control returned by v4l2_ctrl_new_custom() (Sashiko)
- Shorter commit messages, fewer code comments
- Link to v1: https://patch.msgid.link/20261114-hantro-fixes-v1-0-abb78264801e@gmail.com

---
Arun Iyengar (5):
      media: verisilicon: Size the VP8 segment map for the largest frame
      media: verisilicon: Set need_postproc before resetting the CAPTURE format
      media: verisilicon: Size reference frames by the stream bit depth
      media: verisilicon: Keep the CAPTURE format at the stream's bit depth
      media: verisilicon: Set the bit depth again when its control is rewritten

 drivers/media/platform/verisilicon/hantro_drv.c  | 11 +++++++++--
 drivers/media/platform/verisilicon/hantro_v4l2.c | 23 ++++++++++++++++++-----
 drivers/media/platform/verisilicon/hantro_vp8.c  |  4 ++--
 3 files changed, 29 insertions(+), 9 deletions(-)
---
base-commit: 95c189b26efb07257888ccf9d873a5c366aafbc6
change-id: 20261113-hantro-fixes-aace04d5268b

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>



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

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

end of thread, other threads:[~2026-11-30 22:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 21:53 [PATCH v3 0/5] media: verisilicon: Keep the CAPTURE format in line with the decoder Arun Iyengar via B4 Relay
2026-11-30 21:53 ` [PATCH v3 1/5] media: verisilicon: Size the VP8 segment map for the largest frame Arun Iyengar via B4 Relay
2026-11-30 22:39   ` Nicolas Dufresne
2026-11-30 21:53 ` [PATCH v3 2/5] media: verisilicon: Set need_postproc before resetting the CAPTURE format Arun Iyengar via B4 Relay
2026-11-30 21:53 ` [PATCH v3 3/5] media: verisilicon: Size reference frames by the stream bit depth Arun Iyengar via B4 Relay
2026-11-30 21:53 ` [PATCH v3 4/5] media: verisilicon: Keep the CAPTURE format at the stream's " Arun Iyengar via B4 Relay
2026-11-30 21:53 ` [PATCH v3 5/5] media: verisilicon: Set the bit depth again when its control is rewritten Arun Iyengar via B4 Relay

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