mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Tiffany Lin <tiffany.lin@mediatek.com>,
	Runyu Xiao <runyu.xiao@seu.edu.cn>
Cc: Nicolas Dufresne <nicolas.dufresne@collabora.com>,
	Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
	Yunfei Dong <yunfei.dong@mediatek.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	Nicolas Dufresne <nicolas@ndufresne.ca>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, stable@vger.kernel.org,
	Jianhao Xu <jianhao.xu@seu.edu.cn>
Subject: Re: [PATCH v2] media: mediatek: vcodec: Initialize context lock before firmware setup
Date: Mon, 30 Nov 2026 13:29:47 -0500	[thread overview]
Message-ID: <179606297697.348956.695998028656727162.b4-ty@collabora.com> (raw)
In-Reply-To: <20261008121434.946927-1-runyu.xiao@seu.edu.cn>


On Thu, 08 Oct 2026 20:14:34 +0800, Runyu Xiao wrote:
> The normal encoder open path cannot take dev_ctx_lock before
> video_register_device(), but there is another path during probe.
> 
> On VPU-backed devices, mtk_vcodec_probe() selects firmware before it
> initializes dev_ctx_lock. VPU firmware setup registers the encoder watchdog
> callback during this selection. A watchdog timeout on the shared VPU
> queues reset work, which invokes the registered callbacks. If it runs
> before spin_lock_init(), the encoder callback takes the uninitialized lock.
> 
> [...]

Applied, thanks!

[1/1] media: mediatek: vcodec: Initialize context lock before firmware setup
      commit: 93370ecf52465e942df9199b06c5b283eed6b30f

Best regards,
-- 
Nicolas Dufresne <nicolas.dufresne@collabora.com>

      reply	other threads:[~2026-11-30 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30 14:48 [PATCH] " Runyu Xiao
2026-10-04 11:17 ` Nicolas Dufresne
2026-10-04 12:39   ` Runyu Xiao
2026-10-04 13:18     ` Nicolas Dufresne
2026-10-08 12:14 ` [PATCH v2] " Runyu Xiao
2026-11-30 18:29   ` Nicolas Dufresne [this message]

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=179606297697.348956.695998028656727162.b4-ty@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=andrew-ct.chen@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=jianhao.xu@seu.edu.cn \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=nicolas@ndufresne.ca \
    --cc=runyu.xiao@seu.edu.cn \
    --cc=stable@vger.kernel.org \
    --cc=tiffany.lin@mediatek.com \
    --cc=yunfei.dong@mediatek.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®