linux/drivers/media/platform/amphion
Ming Qian 0202a665bf media: amphion: fix a bug that vpu core may not resume after suspend
driver will enable the vpu core when request the first instance
on the core.
one vpu core can only support 8 streaming instances in the same
time, the instance won't be added to core's list before streamon.

so the actual instance count may be greater then the number in
the core's list.

in pm resume callback, driver will resume the core immediately if
core's list is not empty.
but this check is not accurate,
if suspend during one instance is requested, but not streamon,
then after suspend, the core won't be resume, and led to instance failure.

use the request_count instead of the core's list to check
whether is the core needed to resume immediately after suspend.

And it can make the pm suspend and resume callback more clear.

Fixes: 9f599f351e ("media: amphion: add vpu core driver")
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>
2022-08-30 15:27:51 +02:00
..
Kconfig media: platform: amphion: Fix build error without MAILBOX 2022-03-18 06:03:40 +01:00
Makefile
vdec.c media: amphion: don't change the colorspace reported by decoder. 2022-08-30 15:16:49 +02:00
venc.c media: amphion: adjust the encoder's value range of gop size 2022-08-30 15:01:06 +02:00
vpu.h media: amphion: fix a bug that vpu core may not resume after suspend 2022-08-30 15:27:51 +02:00
vpu_cmds.c media: amphion: delete unnecessary NULL check 2022-06-20 10:30:36 +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-08-30 15:27:51 +02:00
vpu_core.h media: amphion: fix a bug that vpu core may not resume after suspend 2022-08-30 15:27:51 +02:00
vpu_dbg.c media: amphion: fix a bug that vpu core may not resume after suspend 2022-08-30 15:27:51 +02:00
vpu_defs.h media: amphion: handle picture skipped event 2022-05-13 11:02:19 +02:00
vpu_drv.c media: amphion: cleanup media device if register it fail 2022-03-18 07:32:40 +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: insert picture startcode after seek for vc1g format 2022-08-30 14:49:47 +02: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: output firmware error message 2022-06-27 08:53:56 +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: defer setting last_buffer_dequeued until resolution changes are processed 2022-07-08 18:13: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: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
vpu_windsor.h media: amphion: implement windsor encoder rpc interface 2022-03-07 17:13:33 +01:00