mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] Improvement around mtk_vcodec_mem_free() logging and usage
@ 2023-11-13 12:26 Fei Shao
  2023-11-13 12:26 ` [PATCH 1/4] media: mediatek: vcodec: Replace dev_name in error string Fei Shao
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Fei Shao @ 2023-11-13 12:26 UTC (permalink / raw)
  To: Hans Verkuil, AngeloGioacchino Del Regno
  Cc: Fei Shao, Andrew-CT Chen, Dan Carpenter, Irui Wang,
	Matthias Brugger, Mauro Carvalho Chehab, Nicolas Dufresne,
	Nícolas F. R. A. Prado, Tiffany Lin, Xiaoyong Lu,
	Yunfei Dong, linux-arm-kernel, linux-kernel, linux-media,
	linux-mediatek

This series includes some improvements around mtk_vcodec_mem_free() in
mtk_vcodec_util.c.

I noticed that mtk_vcodec_mem_free() generates a spurious error if the
target DMA buffer has been freed previously:
  mtk_vcodec_mem_free(),69: [MTK_V4L2][ERROR] 18000000.video-codec
  dma_free size=0 failed!

It's actually harmless, but it brings some confusion to our developers
and testing infra so I'd like to fix it. Then I found some checks around
mtk_vcodec_mem_free() usages in the driver that can optimized together,
so I wrapped both into this series.

The first two patches are for aesthetic and style improvements, the
third suppresses the error mentioned above, and the last removes the
redundant code for optimization.

Regards,
Fei


Fei Shao (4):
  media: mediatek: vcodec: Replace dev_name in error string
  media: mediatek: vcodec: Drop unnecessary variable
  media: mediatek: vcodec: Fix mtk_vcodec_mem_free() error log criteria
  media: mediatek: vcodec: Drop VA check against mtk_vcodec_mem_free()

 .../mediatek/vcodec/common/mtk_vcodec_util.c  | 23 +++++++--------
 .../vcodec/decoder/vdec/vdec_av1_req_lat_if.c | 18 ++++--------
 .../vcodec/decoder/vdec/vdec_h264_if.c        |  9 ++----
 .../vcodec/decoder/vdec/vdec_h264_req_if.c    |  9 ++----
 .../decoder/vdec/vdec_h264_req_multi_if.c     |  6 ++--
 .../decoder/vdec/vdec_hevc_req_multi_if.c     |  9 ++----
 .../vcodec/decoder/vdec/vdec_vp8_if.c         |  4 +--
 .../vcodec/decoder/vdec/vdec_vp8_req_if.c     | 12 +++-----
 .../vcodec/decoder/vdec/vdec_vp9_if.c         | 15 ++++------
 .../vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 29 +++++++------------
 .../mediatek/vcodec/decoder/vdec_msg_queue.c  | 15 ++++------
 11 files changed, 54 insertions(+), 95 deletions(-)

-- 
2.42.0.869.gea05f2083d-goog


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

end of thread, other threads:[~2023-12-08  4:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 12:26 [PATCH 0/4] Improvement around mtk_vcodec_mem_free() logging and usage Fei Shao
2023-11-13 12:26 ` [PATCH 1/4] media: mediatek: vcodec: Replace dev_name in error string Fei Shao
2023-12-06 10:19   ` AngeloGioacchino Del Regno
2023-11-13 12:26 ` [PATCH 2/4] media: mediatek: vcodec: Drop unnecessary variable Fei Shao
2023-12-06 10:19   ` AngeloGioacchino Del Regno
2023-12-07 11:14     ` Fei Shao
2023-11-13 12:26 ` [PATCH 3/4] media: mediatek: vcodec: Fix mtk_vcodec_mem_free() error log criteria Fei Shao
2023-12-06 10:19   ` AngeloGioacchino Del Regno
2023-12-07 11:17     ` Fei Shao
2023-12-07 12:54       ` AngeloGioacchino Del Regno
2023-12-08  4:22         ` Fei Shao
2023-11-13 12:26 ` [PATCH 4/4] media: mediatek: vcodec: Drop VA check against mtk_vcodec_mem_free() Fei Shao
2023-12-06 10:19   ` AngeloGioacchino Del Regno

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

all inboxes | Powered by JetHome®