Skip to content

media: adding lock to protect the context list

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 Latest2 patches 0 repliesNew
  2. v32 patches 8 repliesSuperseded
  3. v22 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Re-write the commit message for patch 1/2

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: mediatek: vcodec: adding lock to protect decoder context listdrivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.h +1 more+11 -20 replies
2/2media: mediatek: vcodec: adding lock to protect encoder context listdrivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.c drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h +1 more+11 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNicolas DufresneAngeloGioacchino Del Regno
1/2R-b R-b
2/2R-b R-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/2] media: adding lock to protect the context list

The ctx_list of each module will be deleted when scp getting unexpected behavior, then the ctx_list->next will be set to NULL, the system reboot when access the NULL pointer in function vpu_enc(dev)_ipi_handler to go through each context.

---
Changed in v4:
- Re-write the commit message for patch 1/2
Changed in v3:
- change 'Fixes' tag in patch 1/2
- add cover-letter for this patch series
---
Yunfei Dong (2):
media: mediatek: vcodec: adding lock to protect decoder context list
media: mediatek: vcodec: adding lock to protect encoder context list

 .../platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c   | 8 ++++----
 .../platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c | 5 +++++
 .../platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.h | 2 ++
 .../media/platform/mediatek/vcodec/decoder/vdec_vpu_if.c  | 2 ++
 .../platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.c | 5 +++++
 .../platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h | 2 ++
 .../media/platform/mediatek/vcodec/encoder/venc_vpu_if.c  | 2 ++
 7 files changed, 22 insertions(+), 4 deletions(-)
Signature · 1 line
2.18.0