[PATCH RFC 0/2] clk: samsung: exynos5: fix sub-CMU power domain attach

Marek Szyprowski m.szyprowski at samsung.com
Mon Nov 23 09:53:55 PST 2026


On 23.11.2026 15:18, Shigeaki Asai via B4 Relay wrote:
> Since commit c09a3e6c97f0 ("soc: samsung: pm_domains: Convert to regular
> platform driver"), the exynos-pd platform driver registers the power
> domains too late for exynos5-subcmu, so the sub-CMUs are not attached to
> them and their clock setup is not restored. On ODROID-XU4 this drops the
> GPU performance badly (about 3.5 fps in the Kodi menu, with repeated
> panfrost "gpu sched timeout").
>
> This series fixes it as follows:
> - Make the exynos5-clock probe wait until the power domains are
>   registered, so the sub-CMUs are attached to them.
> - Also make audss wait for pll_in. As a side effect of making the
>   sub-CMUs wait, audss would otherwise probe before pll_in exists and
>   generate audio from the 24 MHz pll_ref, which causes audio stuttering.
>
> However, this relies on deferred probe, which conflicts with the move 
> towards platform_driver_probe(), and the sub-CMU clock data is
> __initconst, so the deferred probe has to finish before init memory is
> freed. So I would like to discuss the preferred way to fix it.
>
> This may also explain the oopses seen in the RFC series "clk: samsung:
> Use platform_driver_probe() to avoid __refdata". Krzysztof saw them
> when converting exynos5-subcmu, and Stephen pointed out that
> platform_driver_probe() is incompatible with deferred probe. The
> sub-CMUs have to wait for their power domains, so exynos5-subcmu
> probably cannot use platform_driver_probe() as long as exynos-pd is a
> regular platform driver.
> https://lore.kernel.org/all/20250305-clk-samsung-ref-init-data-v1-0-a4e03a019306@linaro.org/
>
> Testing:
> - Tested on ODROID-XU4 with a Linux 7.3 based LibreELEC kernel:
>   every power domain now has an exynos5-subcmu device attached in
>   pm_genpd_summary, the Kodi menu went from about 3.5 fps to 25-30 fps,
>   "gpu sched timeout" went from 17 to 0, and there is no audio
>   stuttering.
> - On next/clk, only build-tested (exynos_defconfig, W=1) and checked
>   with checkpatch. I have not booted next/clk on the hardware.
> - These patches are already carried in LibreELEC.
>
> I investigated the root cause and wrote these patches and the commit
> messages with the help of Claude (claude-opus-5-5). I reviewed the
> changes and tested them on the hardware as described above.

https://lore.kernel.org/all/20261030075325.517182-1-m.szyprowski@samsung.com/

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=5fbe2d229bd3738ed63c7c9177466ad6bc130f18

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland




More information about the linux-arm-kernel mailing list