From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Rob Clark <robdclark@gmail.com>
Cc: DRI Development <dri-devel@lists.freedesktop.org>,
linux-clk <linux-clk@vger.kernel.org>,
Stephen Boyd <sboyd@codeaurora.org>,
Michael Turquette <mturquette@baylibre.com>,
Archit Taneja <architt@codeaurora.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>
Subject: Re: [RFC 0/3] drm/msm+clk: handover of bootloader display
Date: Tue, 11 Jul 2017 20:35:34 +0200 [thread overview]
Message-ID: <CAMuHMdUFfKN2mYRTpTe-Z_sLyXpw4aRM27VgKi5FaXUXLaEkNg@mail.gmail.com> (raw)
In-Reply-To: <20170711182008.28298-1-robdclark@gmail.com>
Hi Rob,
On Tue, Jul 11, 2017 at 8:20 PM, Rob Clark <robdclark@gmail.com> wrote:
> So now that this is working (at least on a single device), I figured
> it was a good time to send out an RFC to start discussion about how
> to do this properly, in particular the CCF/powerdomain parts.
>
> The first patch adds flags so we can mark power domains and leaf
> node clocks which might (or might not) be enabled by bootloader and
> which we want to inherit when real display driver is probed. (There
> might be use-cases outside of display.. such as debug serial port?
> I guess display is the most common/complex/useful use-case.) From
> the CCF/genpd standpoint, "inherit" really just means "fixup enable/
> prepare_count and don't automatically switch off in lateinit". The
> rest of the complexity is in the display driver.
>
> For display, there are two different cases depending on whether the
> display driver is built as a module (ie. probes after lateinit) or
> not. If the display driver is built as a module, then we want efifb
> to keep working after the clk_disable_unused + genpd_power_off_unused
> late_initcall's. And in either case, we want the display driver to
> be able to detect that display is already on (by checking whether
> various clocks are already enabled) so that it knows to readback the
> hw state. (And not try to do things like clk_set_rate() on already
> running clocks.)
For the PM domains: won't these just stay enabled if efifb would
call pm_runtime_enable() and pm_runtime_get_sync()?
For clocks, can't efifb enable all clocks tied to the device in DT?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2017-07-11 18:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-11 18:20 [RFC 0/3] drm/msm+clk: handover of bootloader display Rob Clark
2017-07-11 18:20 ` [RFC 1/3] clk: inherit display clocks enabled by bootloader Rob Clark
2017-07-14 4:52 ` Rajendra Nayak
2017-07-14 10:43 ` Rob Clark
2017-07-17 9:37 ` Nayak, Rajendra
2017-07-18 23:16 ` Stephen Boyd
2017-07-11 18:20 ` [RFC 2/3] drm/msm: inherit display from bootloader Rob Clark
2017-07-11 18:20 ` [RFC 3/3] drm/bridge: adv7511: deal with bootloader lighting up display Rob Clark
2017-07-11 18:35 ` Geert Uytterhoeven [this message]
2017-07-11 19:16 ` [RFC 0/3] drm/msm+clk: handover of bootloader display Rob Clark
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=CAMuHMdUFfKN2mYRTpTe-Z_sLyXpw4aRM27VgKi5FaXUXLaEkNg@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=architt@codeaurora.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robdclark@gmail.com \
--cc=sboyd@codeaurora.org \
--cc=viresh.kumar@linaro.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;
as well as URLs for NNTP newsgroup(s).