)]}'
{
  "commit": "dfadc8ba7d2d32fcf7f8f740aa8a0a60e3e731ec",
  "tree": "1c353e9ef3854f977f1c53a5579323c48f67e780",
  "parents": [
    "b2219e9b406dbe62681a55f3d3bef5a07fec752b"
  ],
  "author": {
    "name": "Valentin Haudiquet",
    "email": "valentin.haudiquet@canonical.com",
    "time": "Sat Sep 26 21:24:17 2026 +0200"
  },
  "committer": {
    "name": "Krzysztof Kozlowski",
    "email": "krzk@kernel.org",
    "time": "Mon Nov 02 14:56:46 2026 +0100"
  },
  "message": "memory: mtk-smi: fail larb runtime resume until component bind\n\nWith mtk-smi and mtk-iommu built as modules, a consumer probe (e.g.\nmediatek-drm on MT8183) runtime-resumes its smi-larb suppliers via\npm_runtime_get_suppliers(), possibly before the iommu\u0027s component master\nbind.  mtk_smi_larb_resume() then calls\nmtk_smi_larb_config_port_gen2_general(), which dereferences larb-\u003emmu\nand larb-\u003ebank, both populated only in mtk_smi_larb_bind():\n\n  Internal error: Oops: 0000000096000004 [#1] SMP\n  pc : mtk_smi_larb_config_port_gen2_general+0xe0/0x660 [mtk_smi]\n  lr : mtk_smi_larb_resume+0xb8/0x1b8 [mtk_smi]\n  Call trace:\n   mtk_smi_larb_config_port_gen2_general+0xe0/0x660 [mtk_smi] (P)\n   mtk_smi_larb_resume+0xb8/0x1b8 [mtk_smi]\n   ...\n   pm_runtime_get_suppliers+0x6c/0xb8\n   __driver_probe_device+0x68/0x230\n   ...\n   mtk_drm_init+0x38/0xfd0 [mediatek_drm]\n\nThe oopsing udev worker holds the module loader locks, so the boot\nhangs in the initrd.  The same was reported on MT8188 from mtk_mdp3.\n\nTrack the bind state with a flag published with smp_store_release()\nand fail the resume with -EAGAIN until it is set.  The larb stays\nsuspended rather than active with unconfigured ports, the error is\nignored by pm_runtime_get_suppliers(), and the consumer\u0027s first real\nresume (e.g. in mtk_crtc_atomic_enable()) happens after the bind and\nconfigures the ports.\n\nFixes: 4f0a1a1ae351 (\"memory: mtk-smi: Invoke pm runtime_callback to enable clocks\")\nReported-by: Jian Hui Lee \u003cjianhui.lee@canonical.com\u003e\nCloses: https://lore.kernel.org/linux-arm-kernel/20251111124853.2916889-1-jianhui.lee@canonical.com/\nCc: stable@vger.kernel.org\nSigned-off-by: Valentin Haudiquet \u003cvalentin.haudiquet@canonical.com\u003e\nReviewed-by: Yong Wu \u003cyong.wu@mediatek.com\u003e\nLink: https://patch.msgid.link/20260926192417.1448813-1-valentin.haudiquet@canonical.com\n[krzk: Rewrite huge wall of LLM text into something shorted and\n manageable]\nSigned-off-by: Krzysztof Kozlowski \u003ckrzk@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8c4606cbd73d914004292f05a26cf8095e489572",
      "old_mode": 33188,
      "old_path": "drivers/memory/mtk-smi.c",
      "new_id": "a0562ca76b72395c5beda36e9dd67bc1645f7fd2",
      "new_mode": 33188,
      "new_path": "drivers/memory/mtk-smi.c"
    }
  ]
}
