Skip to content

hantro: Enable H.264 VDPU2

Ezequiel Garcia linux-devicetree linux-media linux-rockchip 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 3 repliesIn review
  2. v2 posting 2/210 patches 0 repliesSuperseded
  3. v2 posting 1/210 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches14 repliesSuperseded

Changes in v3 from the cover letter

* Keep a single compatible string "rockchip,px30-vpu", instead of making it compatible with rk3399. The SoCs may have small (but important) differences in their integration so it's better to just make sure the proper compatible is mandatory.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10hantro: vp8: Move noisy WARN_ON to vpu_debugdrivers/staging/media/hantro/hantro_g1_vp8_dec.c drivers/staging/media/hantro/rockchip_vpu2_hw_vp8_dec.c+20 -60 replies
2/10hantro: Make struct hantro_variant.init() optionaldrivers/staging/media/hantro/hantro.h drivers/staging/media/hantro/hantro_drv.c drivers/staging/media/hantro/sama5d4_vdec_hw.c+8 -120 replies
3/10media: hantro: Avoid redundant hantro_get_{dst,src}_buf() callsdrivers/staging/media/hantro/hantro_g1_h264_dec.c drivers/staging/media/hantro/hantro_g1_vp8_dec.c drivers/staging/media/hantro/rockchip_vpu2_hw_vp8_dec.c+26 -280 replies
4/10media: hantro: h264: Move DPB valid and long-term bitmapsdrivers/staging/media/hantro/hantro_g1_h264_dec.c drivers/staging/media/hantro/hantro_h264.c drivers/staging/media/hantro/hantro_hw.h+19 -150 replies
5/10media: hantro: h264: Move reference picture number to a helperdrivers/staging/media/hantro/hantro_g1_h264_dec.c drivers/staging/media/hantro/hantro_h264.c drivers/staging/media/hantro/hantro_hw.h+15 -120 replies
6/10media: hantro: Add H.264 support for Rockchip VDPU2drivers/staging/media/hantro/Makefile drivers/staging/media/hantro/hantro_hw.h drivers/staging/media/hantro/rockchip_vpu2_hw_h264_dec.c+493 -00 replies
7/10media: hantro: Enable H.264 on Rockchip VDPU2drivers/staging/media/hantro/rockchip_vpu_hw.c+25 -12 replies
8/10media: hantro: Add support for the Rockchip PX30drivers/staging/media/hantro/hantro_drv.c drivers/staging/media/hantro/hantro_hw.h drivers/staging/media/hantro/rockchip_vpu_hw.c+19 -00 replies
9/10dt-bindings: media: rockchip-vpu: Add PX30 compatibleDocumentation/devicetree/bindings/media/rockchip-vpu.yaml+1 -00 replies
10/10arm64: dts: rockchip: Add VPU support for the PX30arch/arm64/boot/dts/rockchip/px30.dtsi+23 -01 reply

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchNicolas DufresneAlex Bee
1/10A-b T-b
2/10T-b
3/10T-b
4/10T-b
5/10T-b
6/10T-b
7/10T-b
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/10] hantro: Enable H.264 VDPU2

This series adds support for H.264 decoding on the PX30, RK3328 and RK3326 platforms, enabling the VDPU2 core. This core is available on other SoCs as well, such as RK3568/RK3566.

Patches 1, 2 and 3 are just low-hanging fruit that was on my backlog.

Patches 4 and 5 add some helpers to avoid duplicating some processes between Hantro G1 and VDPU2. Patches 6 and 7 enable the VDPU2 H.264. The implementation is based on a patch from Jonas Karlman [1], which I forwarded ported to mainline.

Finally, patches 8 to 10 add support for the VPU on Rockchip PX30 SoCs. These patches are based on patches submitted by Paul Kocialkowski [2], which I ported and adjusted a bit.

I'd like to thank Jonas and Paul for the good work, and Alex Bee for the additional testing.

Tested on i.MX8MQ EVK and RK3326 Odroid Advance Go, the latter is able to decode a 1080p sample at ~100fps nicely.

Fluster conformance testing is looking good as well, and producing expected results:

RK3326:
Ran 135 tests in 480.067s
FAILED (failures=9, errors=54)

i.MX8MQ:
Ran 135 tests in 337.491s
FAILED (failures=9, errors=54)

[1] https://lore.kernel.org/linux-media/HE1PR06MB40119DE07D38060F531D1070ACBF0@HE1PR06MB4011.eurprd06.prod.outlook.com/
[2] https://lore.kernel.org/patchwork/cover/1361795/

v3:

* Keep a single compatible string "rockchip,px30-vpu", instead of making it compatible with rk3399. The SoCs may have small (but important) differences in their integration so it's better to just make sure the proper compatible is mandatory.

Ezequiel Garcia (6):
hantro: vp8: Move noisy WARN_ON to vpu_debug
hantro: Make struct hantro_variant.init() optional
media: hantro: Avoid redundant hantro_get_{dst,src}_buf() calls
media: hantro: h264: Move DPB valid and long-term bitmaps
media: hantro: h264: Move reference picture number to a helper
media: hantro: Enable H.264 on Rockchip VDPU2

Jonas Karlman (1):
media: hantro: Add H.264 support for Rockchip VDPU2

Paul Kocialkowski (3):
media: hantro: Add support for the Rockchip PX30
dt-bindings: media: rockchip-vpu: Add PX30 compatible
arm64: dts: rockchip: Add VPU support for the PX30

 .../bindings/media/rockchip-vpu.yaml          |   1 +
 arch/arm64/boot/dts/rockchip/px30.dtsi        |  23 +
 drivers/staging/media/hantro/Makefile         |   1 +
 drivers/staging/media/hantro/hantro.h         |   4 +-
 drivers/staging/media/hantro/hantro_drv.c     |  11 +-
 .../staging/media/hantro/hantro_g1_h264_dec.c |  48 +-
 .../staging/media/hantro/hantro_g1_vp8_dec.c  |  31 +-
 drivers/staging/media/hantro/hantro_h264.c    |  24 +
 drivers/staging/media/hantro/hantro_hw.h      |   8 +
 .../media/hantro/rockchip_vpu2_hw_h264_dec.c  | 491 ++++++++++++++++++
 .../media/hantro/rockchip_vpu2_hw_vp8_dec.c   |  32 +-
 .../staging/media/hantro/rockchip_vpu_hw.c    |  43 +-
 .../staging/media/hantro/sama5d4_vdec_hw.c    |   6 -
 13 files changed, 649 insertions(+), 74 deletions(-)
 create mode 100644 drivers/staging/media/hantro/rockchip_vpu2_hw_h264_dec.c
Signature · 7 lines
2.32.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip