linux-stable/drivers/media/platform/amphion
Ming Qian d56e47983e media: amphion: lock and check m2m_ctx in event handler
[ Upstream commit 1ade3f3f16 ]

driver needs to cancel vpu before releasing the vpu instance,
so call v4l2_m2m_ctx_release() first,
to handle the redundant event triggered after m2m_ctx is released.

lock and check m2m_ctx in the event handler.

Fixes: 3cd084519c ("media: amphion: add vpu v4l2 m2m support")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:26:03 +01:00
..
Kconfig media: platform: amphion: Fix build error without MAILBOX 2022-03-18 06:03:40 +01:00
Makefile
vdec.c media: amphion: add lock around vdec_g_fmt 2022-12-31 13:25:59 +01:00
venc.c media: amphion: adjust the encoder's value range of gop size 2022-10-21 12:38:41 +02:00
vpu.h media: amphion: try to wakeup vpu core to avoid failure 2022-12-31 13:26:03 +01:00
vpu_cmds.c media: amphion: try to wakeup vpu core to avoid failure 2022-12-31 13:26:03 +01:00
vpu_cmds.h media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_codec.h
vpu_color.c media: amphion: add vpu v4l2 m2m support 2022-03-07 17:13:33 +01:00
vpu_core.c media: amphion: fix a bug that vpu core may not resume after suspend 2022-10-21 12:38:41 +02:00
vpu_core.h media: amphion: fix a bug that vpu core may not resume after suspend 2022-10-21 12:38:41 +02:00
vpu_dbg.c media: amphion: fix a bug that vpu core may not resume after suspend 2022-10-21 12:38:41 +02:00
vpu_defs.h media: amphion: handle picture skipped event 2022-05-13 11:02:19 +02:00
vpu_drv.c media: amphion: Fix error handling in vpu_driver_init() 2022-12-31 13:26:00 +01:00
vpu_helpers.c media: amphion: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
vpu_helpers.h media: amphion: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
vpu_imx8q.c media: amphion: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
vpu_imx8q.h media: amphion: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
vpu_malone.c media: amphion: try to wakeup vpu core to avoid failure 2022-12-31 13:26:03 +01:00
vpu_malone.h media: amphion: vdec check format in enum_fmt 2022-06-20 10:30:34 +01:00
vpu_mbox.c media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_mbox.h media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_msgs.c media: amphion: lock and check m2m_ctx in event handler 2022-12-31 13:26:03 +01:00
vpu_msgs.h media: amphion: implement vpu core communication based on mailbox 2022-03-07 17:13:33 +01:00
vpu_rpc.c media: amphion: vdec check format in enum_fmt 2022-06-20 10:30:34 +01:00
vpu_rpc.h media: amphion: only insert the first sequence startcode for vc1l format 2022-07-08 18:18:49 +01:00
vpu_v4l2.c media: amphion: lock and check m2m_ctx in event handler 2022-12-31 13:26:03 +01:00
vpu_v4l2.h media: amphion: decoder copy timestamp from output to capture 2022-05-13 11:02:19 +02:00
vpu_windsor.c media: amphion: try to wakeup vpu core to avoid failure 2022-12-31 13:26:03 +01:00
vpu_windsor.h media: amphion: implement windsor encoder rpc interface 2022-03-07 17:13:33 +01:00