From: Eric Anholt <eric@anholt.net>
To: Martin Sperl <kernel@martin.sperl.org>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Stephen Warren <swarren@wwwdotorg.org>,
Lee Jones <lee@kernel.org>,
linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH V4 1/2] clk: bcm2835: mark enabled clocks with CLK_IS_CRITICAL
Date: Mon, 02 May 2016 18:13:09 -0700 [thread overview]
Message-ID: <87wpncueoq.fsf@eliezer.anholt.net> (raw)
In-Reply-To: <5CC0D984-91E5-4401-8AB6-5827269C4395@martin.sperl.org>
[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]
Martin Sperl <kernel@martin.sperl.org> writes:
>> On 02.05.2016, at 17:36, Eric Anholt <eric@anholt.net> wrote:
>>
>> kernel@martin.sperl.org writes:
>>
>>> From: Martin Sperl <kernel@martin.sperl.org>
>>>
>>> The bcm2835 firmware enables several clocks and plls before
>>> booting the linux kernel.
>>>
>>> These plls should never get disabled as it may result in a
>>> stopped system clock and more.
>>>
>>> So during probing we check if the clock is enabled
>>> and if it is then mark that clock with CLK_IS_CRITICAL.
>>>
>>> As a consequence this will also enable the corresponding
>>> parent plls and pll-divs.
>>>
>>> This is intended as a stop-gap until CLK_ENABLE_HAND_OFF
>>> becomes available, at which point it should be used instead.
>>>
>>> Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
>>
>> I still think that we don't want this patch. We should be able to
>> disable clocks that the firmware turned on, unless they really need to
>> stay on. If you have troubles on the upstream DT, let's talk about
>> individual clocks.
>
> May I ask you what is your main concern about using
> CLK_IS_CRITICAL as a stop-gap/in general?
Burning power when you shouldn't, which is a bug.
> Also the current situation of the machine crashing when releasing the
> PCM clock when the parent is PLLC or PLLD is worse than having some
> clocks/pll running unnecessarily.
Are you saying this happens on the upstream kernel? This sounds like a
bug you'd see in the downstream kernel because they haven't hooked up
the clocks in their DT.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2016-05-03 1:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-29 17:42 [PATCH V4 0/2] clk: bcm2835: use CLK_IS_CRITICAL/CLK_ENABLE_HAND_OFF kernel
2016-04-29 17:42 ` [PATCH V4 1/2] clk: bcm2835: mark enabled clocks with CLK_IS_CRITICAL kernel
2016-05-02 15:36 ` Eric Anholt
2016-05-02 16:16 ` Martin Sperl
2016-05-03 1:13 ` Eric Anholt [this message]
2016-05-03 5:07 ` Martin Sperl
2016-05-03 12:29 ` Martin Sperl
2016-04-29 17:42 ` [PATCH V4 2/2] clk: bcm2835: use CLK_ENABLE_HAND_OFF instead of CLK_IS_CRITICAL kernel
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=87wpncueoq.fsf@eliezer.anholt.net \
--to=eric@anholt.net \
--cc=kernel@martin.sperl.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@codeaurora.org \
--cc=swarren@wwwdotorg.org \
/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