Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Szyprowski <m.szyprowski@samsung.com>
To: y-asai.0816@docomonet.jp, Krzysztof Kozlowski <krzk@kernel.org>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Chanwoo Choi <cw00.choi@samsung.com>,
	Peter Griffin <peter.griffin@linaro.org>,
	Alim Akhtar <alim.akhtar@samsung.com>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>
Cc: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC 0/2] clk: samsung: exynos5: fix sub-CMU power domain attach
Date: Mon, 23 Nov 2026 18:53:55 +0100	[thread overview]
Message-ID: <d0bf2242-d9ad-4a7e-a1cb-ef32e50f34f9@samsung.com> (raw)
In-Reply-To: <20261123-exynos5-subcmu-defer-v1-0-43aef47d4f2b@docomonet.jp>

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



  parent reply	other threads:[~2026-11-23 17:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261123141844eucas1p221c650882789ccab239e57ee458c02a1@eucas1p2.samsung.com>
2026-11-23 14:18 ` [PATCH RFC 0/2] clk: samsung: exynos5: fix sub-CMU power domain attach Shigeaki Asai via B4 Relay
2026-11-23 14:18   ` [PATCH RFC 1/2] clk: samsung: exynos-audss: defer probe until pll_in is available Shigeaki Asai via B4 Relay
2026-11-23 14:18   ` [PATCH RFC 2/2] clk: samsung: exynos5-subcmu: defer probe until power domains are registered Shigeaki Asai via B4 Relay
2026-11-23 17:53   ` Marek Szyprowski [this message]
2026-11-23 18:31     ` [PATCH RFC 0/2] clk: samsung: exynos5: fix sub-CMU power domain attach Krzysztof Kozlowski

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=d0bf2242-d9ad-4a7e-a1cb-ef32e50f34f9@samsung.com \
    --to=m.szyprowski@samsung.com \
    --cc=alim.akhtar@samsung.com \
    --cc=bmasney+clk@redhat.com \
    --cc=cw00.choi@samsung.com \
    --cc=jbrunet+clk@baylibre.com \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=s.nawrocki@samsung.com \
    --cc=sboyd@kernel.org \
    --cc=y-asai.0816@docomonet.jp \
    /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