From: Maxime Ripard <maxime@cerno.tech>
To: Mike Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
dri-devel@lists.freedesktop.org,
Daniel Vetter <daniel.vetter@intel.com>,
David Airlie <airlied@linux.ie>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
Maxime Ripard <maxime@cerno.tech>
Cc: 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, Maxime Ripard <mripard@kernel.org>
Subject: [PATCH 0/2] clk: Implement a clock request API
Date: Tue, 13 Apr 2021 12:13:18 +0200 [thread overview]
Message-ID: <20210413101320.321584-1-maxime@cerno.tech> (raw)
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?
Let me know what you think
Maxime
Maxime Ripard (2):
clk: Introduce a clock request API
drm/vc4: hdmi: Convert to the new clock request API
drivers/clk/clk.c | 121 +++++++++++++++++++++++++++++++++
drivers/gpu/drm/vc4/vc4_hdmi.c | 19 ++++--
drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +
include/linux/clk.h | 4 ++
4 files changed, 140 insertions(+), 7 deletions(-)
--
2.30.2
next reply other threads:[~2021-04-13 10:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 10:13 Maxime Ripard [this message]
2021-04-13 10:13 ` [PATCH 1/2] clk: Introduce a clock request API Maxime Ripard
2021-04-13 10:13 ` [PATCH 2/2] drm/vc4: hdmi: Convert to the new " Maxime Ripard
2021-04-30 8:48 ` [PATCH 0/2] clk: Implement a " Maxime Ripard
2021-04-30 20:59 ` Stephen Boyd
2021-05-03 8:32 ` Maxime Ripard
2021-05-24 12:48 ` Maxime Ripard
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=20210413101320.321584-1-maxime@cerno.tech \
--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=mripard@kernel.org \
--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 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).