From: Myeonghun Pak <mhun512@gmail.com>
To: Ming Qian <ming.qian@nxp.com>, Ming Qian <ming.qian@oss.nxp.com>,
Zhou Peng <eagle.zhou@nxp.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Myeonghun Pak <mhun512@gmail.com>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, Ijae Kim <ae878000@gmail.com>
Subject: [PATCH v4 0/2] media: amphion: fix VPU core lifetime during teardown
Date: Fri, 25 Sep 2026 15:17:04 -0400 [thread overview]
Message-ID: <20260925191706.3144437-1-mhun512@gmail.com> (raw)
vpu_core_unregister() releases the message FIFO buffer and VPU reference
before draining queued message work. An open video instance can also keep
a pointer to devm-allocated core state while sysfs unbind removes the core
or its parent.
The first patch drains message work before releasing core state. The
second prevents manual unbind on both platform drivers and warns if core
removal encounters a live instance.
Changes in v4:
- Resend through git send-email after the v3 Gmail submission altered
diff headers and whitespace in transit. No code changes.
Changes in v3:
- Resend with intact diff headers after the v2 mail submission wrapped
the diff --git lines. No code changes.
Changes in v2:
- Move vpu_core_put_vpu() after the work drain.
- Keep runtime PM and mailbox teardown unchanged.
- Address sysfs unbind in a separate patch.
Myeonghun Pak (2):
media: amphion: drain message work before releasing core state
media: amphion: prevent unbind while video instances are open
drivers/media/platform/amphion/vpu_core.c | 18 +++++++++++-------
drivers/media/platform/amphion/vpu_drv.c | 1 +
2 files changed, 12 insertions(+), 7 deletions(-)
base-commit: 4efa625593e1e9c76346232413997556dea1d89f
--
2.53.0
next reply other threads:[~2026-09-25 19:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 19:17 Myeonghun Pak [this message]
2026-09-25 19:17 ` [PATCH v4 1/2] media: amphion: drain message work before releasing core state Myeonghun Pak
2026-09-25 19:17 ` [PATCH v4 2/2] media: amphion: prevent unbind while video instances are open Myeonghun Pak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260925191706.3144437-1-mhun512@gmail.com \
--to=mhun512@gmail.com \
--cc=ae878000@gmail.com \
--cc=eagle.zhou@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ming.qian@nxp.com \
--cc=ming.qian@oss.nxp.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®