[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <706cd9c2-5eeb-fd56-a7de-045796584797@canonical.com>
Date: Mon, 22 Nov 2021 08:57:16 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
To: Sam Protsenko <semen.protsenko@...aro.org>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Chanwoo Choi <cw00.choi@...sung.com>,
Tomasz Figa <tomasz.figa@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Stephen Boyd <sboyd@...nel.org>,
Michael Turquette <mturquette@...libre.com>
Cc: David Virag <virag.david003@...il.com>,
Paweł Chmiel <pawel.mikolaj.chmiel@...il.com>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org
Subject: Re: [PATCH 6/6] clk: samsung: exynos850: Keep some crucial clocks
running
On 22/11/2021 00:27, Sam Protsenko wrote:
> Some clocks shouldn't be automatically disabled in clk_disable_unused(),
> otherwise kernel hangs. Mark those clocks with:
> - CLK_IS_CRITICAL flag, when there won't be any consumers for that
> clock, but system can't function when it's gated
> - CLK_IGNORE_UNUSED flag, when consumer driver will be probably added
> later
>
> That makes it possible to run the kernel without passing the
> "clk_ignore_unused" param.
>
> Next clocks were modified:
> - "gout_dpu_cmu_dpu_pclk": CLK_IGNORE_UNUSED
>
> Will be enabled later in DSIM driver (Display Serial Interface
> Master).
>
> - "gout_gpio_peri_pclk": CLK_IGNORE_UNUSED
> "gout_gpio_cmgp_pclk": CLK_IGNORE_UNUSED
> "gout_gpio_hsi_pclk": CLK_IGNORE_UNUSED
>
> Should be probably enabled in corresponding GPIO driver later, or
> made CLK_IS_CRITICAL. "gout_gpio_peri_clk" is actually used by LEDs
> on Exynos850-based dev board, so kernel hangs if this clock is not
> running. Other clocks were marked as "ignore unused" to prevent
> similar issues for other use cases or boards that might be added
> later.
>
> - "gout_cci_aclk": CLK_IS_CRITICAL
>
> CCI (Cache Coherent Interconnect): obviously is critical.
>
> - "gout_gic_clk": CLK_IS_CRITICAL
>
> GIC (Generic Interrupt Controller): obviously is critical.
>
> Signed-off-by: Sam Protsenko <semen.protsenko@...aro.org>
> ---
> drivers/clk/samsung/clk-exynos850.c | 19 +++++++++++++------
> 1 file changed, 13 insertions(+), 6 deletions(-)
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Powered by blists - more mailing lists