public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] OPP: Simplify set_required_opp handling
@ 2023-02-22 11:06 Viresh Kumar
  2023-02-22 11:06 ` [PATCH 1/3] OPP: Handle all genpd cases together in _set_required_opps() Viresh Kumar
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Viresh Kumar @ 2023-02-22 11:06 UTC (permalink / raw)
  To: Jun Nie, Nishanth Menon, Rafael J. Wysocki, Stephen Boyd,
	Viresh Kumar
  Cc: Viresh Kumar, linux-pm, Vincent Guittot, Manivannan Sadhasivam,
	linux-kernel

Hello,

The required-opps configuration is closely tied to genpd and performance
states at the moment and it is not very obvious that required-opps can
live without genpds. Though we don't support configuring required-opps
for non-genpd cases currently.

This patchset aims at cleaning up this a bit, just like what's done for clk and
regulators. This also makes it possible for platforms to provide their own
version of set_required_opps() helper, which can be used to configure the
devfreq device propertly.

Jun,

I haven't found time to test this through yet, though there isn't much anyway I
guess. Can you see if these can solve your problem properly ?

Viresh Kumar (3):
  OPP: Handle all genpd cases together in _set_required_opps()
  OPP: Move required opps configuration to specialized callback
  OPP: Allow platforms to add a set_required_opps() callback

 drivers/opp/core.c     | 113 ++++++++++++++++++++++++++++-------------
 drivers/opp/of.c       |   3 ++
 drivers/opp/opp.h      |   4 ++
 include/linux/pm_opp.h |   5 ++
 4 files changed, 91 insertions(+), 34 deletions(-)

-- 
2.31.1.272.g89b43f80a514


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-03  4:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 11:06 [PATCH 0/3] OPP: Simplify set_required_opp handling Viresh Kumar
2023-02-22 11:06 ` [PATCH 1/3] OPP: Handle all genpd cases together in _set_required_opps() Viresh Kumar
2023-03-01 13:03   ` Ulf Hansson
2023-02-22 11:06 ` [PATCH 2/3] OPP: Move required opps configuration to specialized callback Viresh Kumar
2023-03-01 13:06   ` Ulf Hansson
2023-04-03  4:29     ` Viresh Kumar
2023-02-22 11:06 ` [PATCH 3/3] OPP: Allow platforms to add a set_required_opps() callback Viresh Kumar
2023-02-23  9:56 ` [PATCH 0/3] OPP: Simplify set_required_opp handling Jun Nie
2023-02-24  2:17   ` Viresh Kumar
2023-02-24  8:17     ` Jun Nie
2023-02-27  4:23       ` Viresh Kumar
2023-02-27  9:21         ` Jun Nie
2023-02-27  9:29           ` Viresh Kumar
2023-03-06 10:48             ` Jun Nie
2023-04-03  4:30               ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox