[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230310062355.9963-1-irui.wang@mediatek.com>
Date: Fri, 10 Mar 2023 14:23:48 +0800
From: Irui Wang <irui.wang@...iatek.com>
To: Hans Verkuil <hverkuil-cisco@...all.nl>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
<angelogioacchino.delregno@...labora.com>,
<nicolas.dufresne@...labora.com>, kyrie wu <kyrie.wu@...iatek.com>
CC: <Project_Global_Chrome_Upstream_Group@...iatek.com>,
<linux-media@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
Tomasz Figa <tfiga@...omium.org>, <xia.jiang@...iatek.com>,
<maoguang.meng@...iatek.com>,
Yunfei Dong <yunfei.dong@...iatek.com>,
Irui Wang <irui.wang@...iatek.com>
Subject: [V2,0/7] Fixes jpeg crash issue in cuj test
From: kyrie wu <kyrie.wu@...iatek.com>
This series is used to fix jpeg dec & enc crash in cuj test.
The problem was found frequently that executing CUJ
ui.EverydayMultiTaskingCUJ.*_ytmusic test cases on Tomato/Dojo
devices with the HW jpeg decoder enabled. Firstly the single core
and multi-core judgment methods were modified to make the driver
compatible with both cases. Secondly, the jpeg dec & enc worker
initialization method and the timing issue of remove buffer
were corrected, eliminating crash problems. Finally, some variables
and hw dev initialization methods are refactored to reduce code
redundancy and improve program robustness.
This series has been tested with MT8195 & MT8188.
Jpeg encoding and decoding worked for these devices.
Patch 1 fixes single core and multi-core judgment methods.
Patch 2 optimized jpeg single core initial methods.
Patch 3 optimized sw flow of jpeg enc&dec worker to remove buffer.
Patch 4 reconstructs the initialization mode of worker.
Patch 5 Remove some unnecessary variables.
Patch 6 refactor some variables.
Patch 7 refactor hw dev initializaiton sw flow.
---
Changes compared with v1
- No change compared with v1
kyrie wu (7):
media: mtk-jpeg: Fixes jpeghw multi-core judgement
media: mtk-jpeg: add jpeg single core initial function
media: mtk-jpeg: Fixes jpeg enc&dec worker sw flow
media: mtk-jpeg: reconstructs the initialization mode of worker
media: mtk-jpeg: Remove some unnecessary variables
media: mtk-jpeg: refactor some variables
media: mtk-jpeg: refactor hw dev initializaiton
.../platform/mediatek/jpeg/mtk_jpeg_core.c | 130 +++++++++++-------
.../platform/mediatek/jpeg/mtk_jpeg_core.h | 28 ++--
.../platform/mediatek/jpeg/mtk_jpeg_dec_hw.c | 43 ++----
.../platform/mediatek/jpeg/mtk_jpeg_enc_hw.c | 38 ++---
4 files changed, 113 insertions(+), 126 deletions(-)
--
2.18.0
Powered by blists - more mailing lists