All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime@cerno.tech>
To: Stephen Boyd <sboyd@kernel.org>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
	David Airlie <airlied@linux.ie>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Mike Turquette <mturquette@baylibre.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	dri-devel@lists.freedesktop.org, Eric Anholt <eric@anholt.net>,
	Daniel Vetter <daniel@ffwll.ch>,
	linux-kernel@vger.kernel.org,
	Russell King <linux@armlinux.org.uk>,
	Dave Stevenson <dave.stevenson@raspberrypi.com>,
	Phil Elwell <phil@raspberrypi.com>,
	Tim Gover <tim.gover@raspberrypi.com>,
	Dom Cobley <dom@raspberrypi.com>,
	linux-clk@vger.kernel.org
Subject: Re: [PATCH 0/2] clk: Implement a clock request API
Date: Wed, 16 Jun 2021 12:05:56 +0200	[thread overview]
Message-ID: <20210616100556.marhidqeljaxswyf@gilmour> (raw)
In-Reply-To: <20210524124811.74g75n672wrpzqqi@gilmour>

Hi Stephen, Mike,

On Mon, May 24, 2021 at 02:48:11PM +0200, Maxime Ripard wrote:
> Hi Stephen, Mike,
> 
> On Mon, May 03, 2021 at 10:32:21AM +0200, Maxime Ripard wrote:
> > Hi Stephen,
> > 
> > On Fri, Apr 30, 2021 at 01:59:39PM -0700, Stephen Boyd wrote:
> > > Quoting Maxime Ripard (2021-04-13 03:13:18)
> > > > Hi,
> > > > 
> > > > This is a follow-up of the discussion here:
> > > > https://lore.kernel.org/linux-clk/20210319150355.xzw7ikwdaga2dwhv@gilmour/
> > > > 
> > > > This implements a mechanism to raise and lower clock rates based on consumer
> > > > workloads, with an example of such an implementation for the RaspberryPi4 HDMI
> > > > controller.
> > > > 
> > > > There's a couple of things worth discussing:
> > > > 
> > > >   - The name is in conflict with clk_request_rate, and even though it feels
> > > >     like the right name to me, we should probably avoid any confusion
> > > > 
> > > >   - The code so far implements a policy of always going for the lowest rate
> > > >     possible. While we don't have an use-case for something else, this should
> > > >     maybe be made more flexible?
> > > 
> > > I'm definitely confused how it is different from the
> > > clk_set_rate_exclusive() API and associated
> > > clk_rate_exclusive_get()/clk_rate_exclusive_put(). Can you explain
> > > further the differences in the cover letter here?
> > 
> > The exclusive API is meant to prevent the clock rate from changing,
> > allowing a single user to make sure that no other user will be able to
> > change it.
> > 
> > What we want here is instead to allow multiple users to be able to
> > express a set of minimum rates and then let the CCF figure out a rate
> > for that clock that matches those constraints (so basically what
> > clk_set_min_rate does), but then does allow for the clock to go back to
> > its initial rate once that constraint is not needed anymore.
> > 
> > So I guess it's more akin to clk_set_min_rate with rollback than the
> > exclusive API?
> 
> Is that rationale good enough, or did you expect something else?

I'm not really sure what to do at this point. It's been over 2 months
since I sent this series, and we really need that mechanism in some form
or another.

I'm really fine with changing that series in any way, but I got no
comment that I could address to turn this into something that would be
acceptable to you. How can we move this forward?

Maxime

WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime@cerno.tech>
To: Stephen Boyd <sboyd@kernel.org>
Cc: linux-clk@vger.kernel.org, Tim Gover <tim.gover@raspberrypi.com>,
	Dave Stevenson <dave.stevenson@raspberrypi.com>,
	David Airlie <airlied@linux.ie>,
	Mike Turquette <mturquette@baylibre.com>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Russell King <linux@armlinux.org.uk>,
	Eric Anholt <eric@anholt.net>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Daniel Vetter <daniel.vetter@intel.com>,
	Phil Elwell <phil@raspberrypi.com>,
	Dom Cobley <dom@raspberrypi.com>
Subject: Re: [PATCH 0/2] clk: Implement a clock request API
Date: Wed, 16 Jun 2021 12:05:56 +0200	[thread overview]
Message-ID: <20210616100556.marhidqeljaxswyf@gilmour> (raw)
In-Reply-To: <20210524124811.74g75n672wrpzqqi@gilmour>

Hi Stephen, Mike,

On Mon, May 24, 2021 at 02:48:11PM +0200, Maxime Ripard wrote:
> Hi Stephen, Mike,
> 
> On Mon, May 03, 2021 at 10:32:21AM +0200, Maxime Ripard wrote:
> > Hi Stephen,
> > 
> > On Fri, Apr 30, 2021 at 01:59:39PM -0700, Stephen Boyd wrote:
> > > Quoting Maxime Ripard (2021-04-13 03:13:18)
> > > > Hi,
> > > > 
> > > > This is a follow-up of the discussion here:
> > > > https://lore.kernel.org/linux-clk/20210319150355.xzw7ikwdaga2dwhv@gilmour/
> > > > 
> > > > This implements a mechanism to raise and lower clock rates based on consumer
> > > > workloads, with an example of such an implementation for the RaspberryPi4 HDMI
> > > > controller.
> > > > 
> > > > There's a couple of things worth discussing:
> > > > 
> > > >   - The name is in conflict with clk_request_rate, and even though it feels
> > > >     like the right name to me, we should probably avoid any confusion
> > > > 
> > > >   - The code so far implements a policy of always going for the lowest rate
> > > >     possible. While we don't have an use-case for something else, this should
> > > >     maybe be made more flexible?
> > > 
> > > I'm definitely confused how it is different from the
> > > clk_set_rate_exclusive() API and associated
> > > clk_rate_exclusive_get()/clk_rate_exclusive_put(). Can you explain
> > > further the differences in the cover letter here?
> > 
> > The exclusive API is meant to prevent the clock rate from changing,
> > allowing a single user to make sure that no other user will be able to
> > change it.
> > 
> > What we want here is instead to allow multiple users to be able to
> > express a set of minimum rates and then let the CCF figure out a rate
> > for that clock that matches those constraints (so basically what
> > clk_set_min_rate does), but then does allow for the clock to go back to
> > its initial rate once that constraint is not needed anymore.
> > 
> > So I guess it's more akin to clk_set_min_rate with rollback than the
> > exclusive API?
> 
> Is that rationale good enough, or did you expect something else?

I'm not really sure what to do at this point. It's been over 2 months
since I sent this series, and we really need that mechanism in some form
or another.

I'm really fine with changing that series in any way, but I got no
comment that I could address to turn this into something that would be
acceptable to you. How can we move this forward?

Maxime

  reply	other threads:[~2021-06-16 10:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-13 10:13 [PATCH 0/2] clk: Implement a clock request API Maxime Ripard
2021-04-13 10:13 ` Maxime Ripard
2021-04-13 10:13 ` [PATCH 1/2] clk: Introduce " Maxime Ripard
2021-04-13 10:13   ` Maxime Ripard
2021-04-13 10:13 ` [PATCH 2/2] drm/vc4: hdmi: Convert to the new " Maxime Ripard
2021-04-13 10:13   ` Maxime Ripard
2021-04-30  8:48 ` [PATCH 0/2] clk: Implement a " Maxime Ripard
2021-04-30  8:48   ` Maxime Ripard
2021-04-30 20:59 ` Stephen Boyd
2021-04-30 20:59   ` Stephen Boyd
2021-05-03  8:32   ` Maxime Ripard
2021-05-03  8:32     ` Maxime Ripard
2021-05-24 12:48     ` Maxime Ripard
2021-05-24 12:48       ` Maxime Ripard
2021-06-16 10:05       ` Maxime Ripard [this message]
2021-06-16 10:05         ` Maxime Ripard

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=20210616100556.marhidqeljaxswyf@gilmour \
    --to=maxime@cerno.tech \
    --cc=airlied@linux.ie \
    --cc=daniel.vetter@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=dom@raspberrypi.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eric@anholt.net \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mturquette@baylibre.com \
    --cc=phil@raspberrypi.com \
    --cc=sboyd@kernel.org \
    --cc=tim.gover@raspberrypi.com \
    --cc=tzimmermann@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.