[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250110012749.30072-1-kyrie.wu@mediatek.com>
Date: Fri, 10 Jan 2025 09:27:37 +0800
From: kyrie.wu <kyrie.wu@...iatek.com>
To: Hans Verkuil <hverkuil-cisco@...all.nl>, Mauro Carvalho Chehab
<mchehab@...nel.org>, Rob Herring <robh+dt@...nel.org>, Matthias Brugger
<matthias.bgg@...il.com>, Tzung-Bi Shih <tzungbi@...omium.org>
CC: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>, kyrie wu
<kyrie.wu@...iatek.corp-partner.google.com>, <linux-media@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-mediatek@...ts.infradead.org>,
kyrie.wu <kyrie.wu@...iatek.com>
Subject: [RESEND,V1,00/12] Enable jpeg enc & dec multi-hardwares for MT8196
This series adds support for mt8196 multi-hardwares jpeg enc & dec,
by first adding mt8196 jpegdec and jpegenc compatible to install
kernel driver. Add smmu setting to support smmu and iommu at the
same time.
Secondly refactor buffer and clock setting to support multi-hw jpeg
working.
Lastly, fix some bugs, including resolution change handleing, stop
streaming sw flow and others.
This series has been tested with MT8196 tast test.
Encoding and decoding worked for this chip.
Patches 1-3 Adds jpeg encoder and decoder compatible.
Patches 4 add jpeg smmu sid setting.
Patches 5 fix jpeg hw count setting to support different chips.
Patches 6 refactor jpeg buffer payload setting to handle buffer
size bug while resolution changed.
Patches 7 reconstruct jpeg dst buffer layout.
Patches 8 fix multi-core stop streaming flow
Patches 9 refactor multi-core clk suspend/resume setting
Patches 10 fix decoding buffer number setting timing issue
Patches 11 refactor decoding resolution change operation
Patches 12 fix remove buffer operation
---
This series patches dependent on:
[1]
https://patchwork.kernel.org/project/linux-mediatek/patch/20240808092555.12999-1-jianhua.lin@mediatek.com/
kyrie.wu (12):
dt-bindings: mediatek: Add mediatek, mt8196-jpgdec compatible
dt-bindings: mediatek: Add mediatek, mt8196-jpgenc compatible
media: mediatek: jpeg: add jpeg compatible
media: mediatek: jpeg: add jpeg smmu sid setting
media: mediatek: jpeg: fix jpeg hw count setting
media: mediatek: jpeg: refactor jpeg buffer payload setting
media: mediatek: jpeg: refactor jpeg dst buffer layout
media: mediatek: jpeg: fix stop streaming flow for multi-core
media: mediatek: jpeg: refactor multi-core clk suspend and resume
setting
media: mediatek: jpeg: fix decoding buffer number setting timing issue
media: mediatek: jpeg: refactor decoding resolution change operation
media: mediatek: jpeg: fix remove buffer operation for multi-core
....yaml => mediatek,multi-core-jpegdec.yaml} | 10 +-
....yaml => mediatek,multi-core-jpegenc.yaml} | 10 +-
.../platform/mediatek/jpeg/mtk_jpeg_core.c | 126 ++++++++++++------
.../platform/mediatek/jpeg/mtk_jpeg_core.h | 17 ++-
.../platform/mediatek/jpeg/mtk_jpeg_dec_hw.c | 115 +++++++++++++++-
.../platform/mediatek/jpeg/mtk_jpeg_dec_hw.h | 4 +
.../platform/mediatek/jpeg/mtk_jpeg_enc_hw.c | 112 +++++++++++++++-
.../platform/mediatek/jpeg/mtk_jpeg_enc_hw.h | 4 +
8 files changed, 341 insertions(+), 57 deletions(-)
rename Documentation/devicetree/bindings/media/{mediatek,mt8195-jpegdec.yaml => mediatek,multi-core-jpegdec.yaml} (95%)
rename Documentation/devicetree/bindings/media/{mediatek,mt8195-jpegenc.yaml => mediatek,multi-core-jpegenc.yaml} (94%)
--
2.46.0
Powered by blists - more mailing lists