[PATCH v2, 0/6] support mt8188 h264 encoder

Irui Wang irui.wang at mediatek.com
Wed Jul 20 01:57:25 PDT 2022


mt8188 encoder hardware has a change compared to the previous
chipsets, it supports 34-bit iova access. For 34-bit iova, the
encoder driver needs to write all 34 bits to hardware, otherwise
encoder will encode fail.

Patch 1 add the 34-bit iova supporting in driver.
Patch 2~3 add dt-bindings and driver compatible and private data.
Patch 4~6 some modification for in driver.

---
compare with v1:
 - split vpu_enc_encode function into 32bits and 34bits.
 - some review comments modification.
---

Irui Wang (6):
  media: mediatek: vcodec: Add encoder driver support for 34-bit iova
  dt-bindings: media: mediatek: vcodec: Add encoder dt-bindings for
    mt8188
  media: mediatek: vcodec: Add mt8188 encoder driver
  media: mediatek: vcodec: Remove encoder driver get IRQ resource
  media: mediatek: vcodec: Fix bitstream crop information error
  media: mediatek: vcodec: Use ctx vb2_queue mutex instead of device
    mutex

 .../media/mediatek,vcodec-encoder.yaml        |   1 +
 .../platform/mediatek/vcodec/mtk_vcodec_drv.h |   6 +
 .../platform/mediatek/vcodec/mtk_vcodec_enc.c |  14 +-
 .../mediatek/vcodec/mtk_vcodec_enc_drv.c      |  22 +-
 .../mediatek/vcodec/venc/venc_h264_if.c       | 200 +++++++++++++++---
 .../platform/mediatek/vcodec/venc_ipi_msg.h   |  24 +++
 .../platform/mediatek/vcodec/venc_vpu_if.c    |  76 ++++++-
 7 files changed, 291 insertions(+), 52 deletions(-)

-- 
2.18.0




More information about the Linux-mediatek mailing list