mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] media: amphion: handle runtime resume failures
@ 2026-10-19  8:27 Jiale Yao
  2026-10-19  8:27 ` [PATCH 1/2] media: amphion: handle core " Jiale Yao
  2026-10-19  8:27 ` [PATCH 2/2] media: amphion: handle debug runtime resume failure Jiale Yao
  0 siblings, 2 replies; 7+ messages in thread
From: Jiale Yao @ 2026-10-19  8:27 UTC (permalink / raw)
  To: Ming Qian, Zhou Peng, Mauro Carvalho Chehab, linux-media, linux-kernel
  Cc: Jiale Yao

The Amphion core request, resume, and debugfs write paths assume that
pm_runtime_resume_and_get() always succeeds. If runtime resume fails,
these paths access VPU state or hardware while the device is unavailable
and later drop a runtime PM reference that was not acquired.

Check the resume result before taking the dependent path. The core patch
unwinds its lock and avoids VPU access, while the debugfs write handler
returns the error before accessing the core.

Jiale Yao (2):
  media: amphion: handle core runtime resume failures
  media: amphion: handle debug runtime resume failure

 drivers/media/platform/amphion/vpu_core.c | 13 +++++++++++--
 drivers/media/platform/amphion/vpu_dbg.c  |  6 +++++-
 2 files changed, 16 insertions(+), 3 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-10-19  9:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19  8:27 [PATCH 0/2] media: amphion: handle runtime resume failures Jiale Yao
2026-10-19  8:27 ` [PATCH 1/2] media: amphion: handle core " Jiale Yao
2026-10-19  8:31   ` jiale yao
2026-10-19  9:54   ` [PATCH " Ming Qian(OSS)
2026-10-19  8:27 ` [PATCH 2/2] media: amphion: handle debug runtime resume failure Jiale Yao
2026-10-19  8:31   ` jiale yao
2026-10-19  9:58   ` [PATCH " Ming Qian(OSS)

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®