[PATCH v2] media: mediatek: vcodec: Initialize context lock before firmware setup

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Nov 30 10:29:47 PST 2026


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 at collabora.com>



More information about the linux-arm-kernel mailing list