Skip to content

media: mediatek: vcodec: Fix power_VideoCall test fail

Yunfei Dong linux-arm-kernel linux-devicetree linux-media linux-mediatek lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 0 repliesNew
  2. v37 patches 0 repliesSuperseded
  3. v27 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7media: mediatek: vcodec: add params to record lat and core lat_buf countdrivers/media/platform/mediatek/vcodec/vdec_msg_queue.c drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h+28 -10 replies
2/7media: mediatek: vcodec: using each instance lat_buf count replace core ready listdrivers/media/platform/mediatek/vcodec/vdec_msg_queue.c+1 -10 replies
3/7media: mediatek: vcodec: move lat_buf to the top of core listdrivers/media/platform/mediatek/vcodec/vdec_msg_queue.c drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h+22 -10 replies
4/7media: mediatek: vcodec: add core decode done eventdrivers/media/platform/mediatek/vcodec/vdec_msg_queue.c drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h+5 -10 replies
5/7media: mediatek: vcodec: remove unused lat_bufdrivers/media/platform/mediatek/vcodec/vdec_msg_queue.c+15 -30 replies
6/7media: mediatek: vcodec: making sure queue_work successfullydrivers/media/platform/mediatek/vcodec/vdec_msg_queue.c drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h+25 -80 replies
7/7media: mediatek: vcodec: change lat thread decode error conditiondrivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_multi_if.c drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c+6 -40 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del Regno
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7
7/7R-b

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

Read the v4 thread

Cover letter [PATCH v4,0/7] media: mediatek: vcodec: Fix power_VideoCall test fail

Random getting below error message when test power_VideoCall/control.49_vp9:

pc : __list_del_entry_valid+0xb0/0xfc
lr : __list_del_entry_valid+0xac/0xfc

The lat_buf in core list won't be deleted when one instance decode done. Will access invalid released lat_buf list when queue work continue to decode. Firstly, remove all unused lat_buf to the top of core list, making sure these buffers can be decoded in highest priority; lastly, remove all unused lat_buf when the instance is freed.

patch 1 add params to record lat and core lat_buf count. patch 2 using each instance lat_buf count replace core ready list. patch 3 move lat_buf to the top of core list.
patch 4 add core decode done event.
patch 5 remove unused lat_buf.
patch 6 making sure queue_work successfully
patch 7 change lat thread decode error condition
---
changed with v3:
- forgot to add reviewed-by for patch: 1/2/4/5/7
changed with v2:
- fix seek fail for patch 3
changed with v1:
- remove mutex for atomic for patch 1
- add patch 6 to make sure queue_work successfully
- add patch 7 change lat thread decode error condition
---
Yunfei Dong (7):
media: mediatek: vcodec: add params to record lat and core lat_buf
count
media: mediatek: vcodec: using each instance lat_buf count replace
core ready list
media: mediatek: vcodec: move lat_buf to the top of core list
media: mediatek: vcodec: add core decode done event
media: mediatek: vcodec: remove unused lat_buf
media: mediatek: vcodec: making sure queue_work successfully
media: mediatek: vcodec: change lat thread decode error condition

 .../vcodec/mtk_vcodec_dec_stateless.c         |  6 +-
 .../vcodec/vdec/vdec_h264_req_multi_if.c      |  2 +-
 .../vcodec/vdec/vdec_vp9_req_lat_if.c         |  2 +-
 .../platform/mediatek/vcodec/vdec_msg_queue.c | 95 ++++++++++++++++---
 .../platform/mediatek/vcodec/vdec_msg_queue.h | 12 +++
 5 files changed, 100 insertions(+), 17 deletions(-)
Signature · 1 line
2.18.0