linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] soc/tegra: bpmp: Generic PM domains for Tegra186
@ 2017-03-29 16:34 Thierry Reding
  2017-03-29 16:34 ` [PATCH v2 1/3] PM / Domains: Allow overriding the ->xlate() callback Thierry Reding
       [not found] ` <20170329163452.10761-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Thierry Reding @ 2017-03-29 16:34 UTC (permalink / raw)
  To: Rafael J. Wysocki, Kevin Hilman, Ulf Hansson
  Cc: Jonathan Hunter, Stefan Kristiansson, Mikko Perttunen,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

Hi Rafael, Kevin, Ulf,

This series implement generic power domains for Tegra186. Since the
power partitions on Tegra186 have a non-contiguous ID range, the PM
domain core is enhanced with a way to allow PM domain providers to
override the default ->xlate() implementation. This is used to look
up the correct PM domain given the ID read from device tree.

The second patch updates the BPMP ABI header to a version that has
support for the MRQ_PG request which is used to enumerate available
power partitions and control them.

An implementation of the generic PM domains using the MRQ_PG request
is provided in patch 3.

Given the dependency of patch 3 on patch 1 I think it'd be easiest
to get an Acked-by on patch 1 and take all of these through the Tegra
tree. If that's okay with you, I can provide a stable branch with the
first patch that could be pulled into the PM tree to resolve potential
conflicts.

Thanks,
Thierry

Changes in v2:
- take into account PG_STATE_RUNNING in tegra_bpmp_powergate_is_powered()
- check return value of pm_genpd_init() and clean up on failure
- simplify error unwinding in tegra_bpmp_init_powergates()

Thierry Reding (3):
  PM / Domains: Allow overriding the ->xlate() callback
  soc/tegra: bpmp: Update ABI header
  soc/tegra: bpmp: Implement generic PM domains

 drivers/base/power/domain.c        |   8 +-
 drivers/firmware/tegra/bpmp.c      |   4 +
 drivers/soc/tegra/Kconfig          |   5 +
 drivers/soc/tegra/Makefile         |   1 +
 drivers/soc/tegra/powergate-bpmp.c | 359 +++++++++++++++++++++++++++++++
 include/linux/pm_domain.h          |   4 +
 include/soc/tegra/bpmp-abi.h       | 418 ++++++++++++++++++++++++++++++++++++-
 include/soc/tegra/bpmp.h           |  12 ++
 8 files changed, 797 insertions(+), 14 deletions(-)
 create mode 100644 drivers/soc/tegra/powergate-bpmp.c

-- 
2.12.0

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

end of thread, other threads:[~2017-04-27 14:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-29 16:34 [PATCH v2 0/3] soc/tegra: bpmp: Generic PM domains for Tegra186 Thierry Reding
2017-03-29 16:34 ` [PATCH v2 1/3] PM / Domains: Allow overriding the ->xlate() callback Thierry Reding
2017-04-19 14:32   ` Ulf Hansson
     [not found] ` <20170329163452.10761-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-03-29 16:34   ` [PATCH v2 2/3] soc/tegra: bpmp: Update ABI header Thierry Reding
2017-04-20  0:44     ` Rafael J. Wysocki
     [not found]       ` <10169152.Khpl4fl1AK-yvgW3jdyMHm1GS7QM15AGw@public.gmane.org>
2017-04-27 14:19         ` Thierry Reding
2017-03-29 16:34   ` [PATCH v2 3/3] soc/tegra: bpmp: Implement generic PM domains Thierry Reding
     [not found]     ` <20170329163452.10761-4-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-19 14:32       ` Ulf Hansson
2017-04-11 15:28   ` [PATCH v2 0/3] soc/tegra: bpmp: Generic PM domains for Tegra186 Thierry Reding
     [not found]     ` <20170411152838.GA13819-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2017-04-11 19:37       ` Ulf Hansson

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).