From: Myeonghun Pak <mhun512@gmail.com>
To: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Cc: Myeonghun Pak <mhun512@gmail.com>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/2] media: venus: fix HFI teardown races
Date: Fri, 25 Sep 2026 15:16:51 -0400 [thread overview]
Message-ID: <20260925191653.3144006-1-mhun512@gmail.com> (raw)
As part of our ongoing static-analysis research, we reviewed the Venus
teardown path and confirmed the race reported by Sashiko.
This series fixes two HFI lifetime races during teardown. The first patch
waits for the hard and threaded IRQ handlers before releasing HFI state.
The second disables and drains recovery work so it cannot be requeued
while HFI state is being torn down.
The later Sashiko report also identifies a separate resource leak when IRQ
registration fails during probe. That issue is outside this series.
Changes in v3:
- Send through git send-email over SMTP. The v2 cover letter incorrectly
said git send-email was used; v2 was sent through the Gmail API, which
still wrapped the diff --git lines before delivery.
- No code changes.
Changes in v2:
- Regenerated the patch files with git format-patch after the v1 mail
delivery wrapped the diff --git lines. No code changes.
Myeonghun Pak (2):
media: venus: hfi: disable IRQ before freeing HFI device
media: venus: disable recovery work before HFI teardown
drivers/media/platform/qcom/venus/core.c | 2 +-
drivers/media/platform/qcom/venus/hfi_venus.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
base-commit: 4efa625593e1e9c76346232413997556dea1d89f
--
2.53.0
next reply other threads:[~2026-09-25 19:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 19:16 Myeonghun Pak [this message]
2026-09-25 19:16 ` [PATCH v3 1/2] media: venus: hfi: disable IRQ before freeing HFI device Myeonghun Pak
2026-09-25 19:16 ` [PATCH v3 2/2] media: venus: disable recovery work before HFI teardown 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=20260925191653.3144006-1-mhun512@gmail.com \
--to=mhun512@gmail.com \
--cc=bod@kernel.org \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=vikash.garodia@oss.qualcomm.com \
/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®