[PATCH v2] memory: mtk-smi: fail larb runtime resume until component bind
Krzysztof Kozlowski
krzk at kernel.org
Mon Nov 2 05:58:35 PST 2026
On Sat, 26 Sep 2026 21:24:17 +0200, Valentin Haudiquet wrote:
> With the mtk-smi and mtk-iommu drivers built as modules, a consumer
> device probe (e.g. mediatek-drm on MT8183) can race the iommu's
> component master bind. The consumer's probe path runtime-resumes its
> smi-larb suppliers, and the larb's runtime resume then runs
> mtk_smi_larb_config_port_gen2_general(), which dereferences
> larb->mmu and larb->bank. Those pointers are only populated by
> mtk_smi_larb_bind() when the component master completes, so a larb
> resumed inside the window dereferences NULL and oopses in the module
> loader's initcall context. The module loader is then stuck and the
> rest of the boot dies. On MT8183 (krane), mediatek-drm module init
> hits this:
>
> [...]
Applied, thanks!
[1/1] memory: mtk-smi: fail larb runtime resume until component bind
https://git.kernel.org/krzk/linux-mem-ctrl/c/dfadc8ba7d2d32fcf7f8f740aa8a0a60e3e731ec
Best regards,
--
Krzysztof Kozlowski <krzk at kernel.org>
More information about the linux-arm-kernel
mailing list