Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315007

Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288

From Tomeu Vizoso <tomeu@tomeuvizoso.net>
Newsgroups linux.kernel
Subject Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288
Date 2016-01-22 15:10 +0100
Message-ID <qTKzw-560-9@gated-at.bofh.it> (permalink)
References (3 earlier) <ombwS-4Sc-11@gated-at.bofh.it> <qSDgK-7DY-21@gated-at.bofh.it> <qT4gW-PQ-17@gated-at.bofh.it> <qTjpF-39M-31@gated-at.bofh.it> <qTtS2-1R8-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 21 January 2016 at 21:11, Doug Anderson <dianders@chromium.org> wrote:
> Hi,
>
> On Thu, Jan 21, 2016 at 1:03 AM, Tomeu Vizoso <tomeu@tomeuvizoso.net> wrote:
>> So we have a mechanism for detecting a conflict in the clock
>> hierarchy, and a mechanism to solve it, but we are missing a way for
>> userspace to communicate policy regarding which clocks should be given
>> priority when solving such a conflict?
>
> Hrmmm, I guess it could be userspace that makes the decision.  It does
> seem a little odd to force it to userspace in all cases, though.  For
> a particular laptop that is designed with a specific panel connected
> up eDP it seems less than ideal to push this into userspace.  If the
> kernel could just work in the expected sane way (or at least work that
> way by default) it would be ideal.

Ah, I was wrongly assuming that the kernel didn't have enough
information to make an informed decision in this case, sorry.

Guess the per-user rate limits don't help here because the consumer
with higher priority could work with frequencies other than the ideal.

And we cannot have a consumer listening for PRE_RATE_CHANGE and
aborting unwanted changes or rerouting the ancestors of the clocks of
other consumers because that would be a massive violation of
separation of concerns.

If we were to rearrange the clock topology from within the CCF, then
consumers need to have a way to communicate to the core that they are
more important than other consumers. clk_set_important(clk, true)
could be enough in this case, but would be insufficient in more
complex cases where more than two clocks could use the same PLL.

> If the kernel doesn't try to do anything sane by default then you're
> creating a requirement for everyone's userspace to somehow figure this
> out.  Do you expect there to be UI here, or that this would be
> something that would be figured out by the Linux distribution?
> Certainly exposing UI on something like a laptop with a builtin panel
> wouldn't make any sense to me, but it might make sense if you had an
> eval board with different display connectors on it.  If there's no UI,
> would the Linux distribution need to somehow identify which board we
> were on and then have a big lookup table about how to configure
> things?

If we don't actually need input from userspace for this use case, I
wouldn't go this way right now, because it seems to me like it could
be a really big timesink for little gain.

Once someone comes with a situation in which feedback from userspace
is really needed, that person can propose such an interface ;)

Regards,

Tomeu

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Tomeu Vizoso <tomeu@tomeuvizoso.net> - 2016-01-19 13:10 +0100
  Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Doug Anderson <dianders@chromium.org> - 2016-01-20 18:00 +0100
    Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Tomeu Vizoso <tomeu@tomeuvizoso.net> - 2016-01-21 10:10 +0100
      Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Doug Anderson <dianders@chromium.org> - 2016-01-21 21:20 +0100
        Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Tomeu Vizoso <tomeu@tomeuvizoso.net> - 2016-01-22 15:10 +0100
          Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Doug Anderson <dianders@chromium.org> - 2016-01-22 18:10 +0100
            Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Tomeu Vizoso <tomeu@tomeuvizoso.net> - 2016-01-26 09:30 +0100
              Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Doug Anderson <dianders@chromium.org> - 2016-01-26 17:40 +0100
                Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Tomeu Vizoso <tomeu@tomeuvizoso.net> - 2016-01-27 11:30 +0100
                Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288 Doug Anderson <dianders@chromium.org> - 2016-01-27 17:50 +0100

csiph-web