linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] OMAP: PM: implement devices wakeup latency constraints APIs
@ 2011-03-04 14:52 Jean Pihet
  2011-03-04 14:52 ` [PATCH 1/2] OMAP PM: create a PM layer plugin for the devices wakeup latency constraints Jean Pihet
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Jean Pihet @ 2011-03-04 14:52 UTC (permalink / raw)
  To: linux-omap, linux-arm-kernel, Kevin Hilman; +Cc: Jean Pihet

Implement OMAP PM layer omap_pm_set_max_dev_wakeup_lat API by
creating similar APIs at the omap_device and omap_hwmod levels. The
omap_hwmod level call is the layer with access to the powerdomain
core, so it is the place where the powerdomain is queried to set and
release the constraints.

NOTE: only works for devices which have been converted to use
      omap_device/omap_hwmod.

Longer term, we could possibly remove this API from the OMAP PM layer,
and instead directly use the device level API.

The power domains get the next power state programmed directly in
the registers via pwrdm_wakeuplat_update_pwrst.

Note about PM QOS: the MPU and CORE power domains get the next power
state via cpuidle, which get the strongest wake-up latency constraint
by querying PM QOS. The usage of PM QOS is temporary, until a generic
solution is in place.

Jean Pihet (2):
  OMAP PM: create a PM layer plugin for the devices wakeup latency
    constraints
  OMAP: PM: implement devices wakeup latency constraints APIs

 arch/arm/mach-omap2/omap_hwmod.c              |   62 +++++-
 arch/arm/mach-omap2/powerdomain.c             |  197 ++++++++++++++
 arch/arm/mach-omap2/powerdomain.h             |   39 +++-
 arch/arm/mach-omap2/powerdomains3xxx_data.c   |   60 ++++
 arch/arm/plat-omap/Kconfig                    |    7 +
 arch/arm/plat-omap/Makefile                   |    1 +
 arch/arm/plat-omap/include/plat/omap_device.h |    2 +
 arch/arm/plat-omap/include/plat/omap_hwmod.h  |    2 +
 arch/arm/plat-omap/omap-pm-constraints.c      |  358 +++++++++++++++++++++++++
 arch/arm/plat-omap/omap_device.c              |   28 ++
 10 files changed, 754 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/plat-omap/omap-pm-constraints.c

-- 
1.7.2.3


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [RFC PATCH 0/2] OMAP: PM: add devices wakeup latency constraints APIs
@ 2011-02-10 19:23 jean.pihet
  2011-02-10 19:23 ` [PATCH 1/2] OMAP PM: create a PM layer plugin for the devices wakeup latency constraints jean.pihet
  0 siblings, 1 reply; 14+ messages in thread
From: jean.pihet @ 2011-02-10 19:23 UTC (permalink / raw)
  To: khilman, paul, Vibhore Vardhan, Santosh Shilimkar, Vishwanath BS,
	rnayak
  Cc: linux-omap, Jean Pihet

From: Jean Pihet <j-pihet@ti.com>

- Implement OMAP PM layer omap_pm_set_max_dev_wakeup_lat API.
- Created arch/arm/plat-omap/omap-pm-constraints.c file from 
arch/arm/plat-omap/omap-pm-noop.c and the associated Kconfig option
OMAP_PM_CONSTRAINTS.

This code is an early submission in RFC state and is for review only.
Testing is on-going.

ToDo:
- implement the API for the SDMA device (omap_pm_set_max_sdma_lat),
- change the power domains latency figures to some more realistic values,
- add the hook to the existing kernel PM QoS interfaces (cpu_dma_latency),
   cf. Documentation/power/pm_qos_interface.txt

Jean Pihet (2):
  OMAP PM: create a PM layer plugin for the devices wakeup latency
    constraints
  OMAP: PM: implement devices wakeup latency constraints APIs

 arch/arm/mach-omap2/omap_hwmod.c              |   62 +++++-
 arch/arm/mach-omap2/powerdomain.c             |  176 +++++++++++++-
 arch/arm/mach-omap2/powerdomain.h             |   31 +++
 arch/arm/mach-omap2/powerdomains3xxx_data.c   |   60 +++++
 arch/arm/plat-omap/Kconfig                    |    7 +
 arch/arm/plat-omap/Makefile                   |    1 +
 arch/arm/plat-omap/include/plat/omap_device.h |    2 +
 arch/arm/plat-omap/include/plat/omap_hwmod.h  |    2 +
 arch/arm/plat-omap/omap-pm-constraints.c      |  344 +++++++++++++++++++++++++
 arch/arm/plat-omap/omap_device.c              |   28 ++
 10 files changed, 710 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/plat-omap/omap-pm-constraints.c

-- 
1.7.2.3


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

end of thread, other threads:[~2011-03-10 19:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04 14:52 [PATCH 0/2] OMAP: PM: implement devices wakeup latency constraints APIs Jean Pihet
2011-03-04 14:52 ` [PATCH 1/2] OMAP PM: create a PM layer plugin for the devices wakeup latency constraints Jean Pihet
2011-03-08  1:09   ` Kevin Hilman
2011-03-04 14:52 ` [PATCH 2/2] OMAP: PM: implement devices wakeup latency constraints APIs Jean Pihet
2011-03-08  2:15   ` Kevin Hilman
2011-03-08 15:54     ` Jean Pihet
2011-03-08 17:33       ` Kevin Hilman
2011-03-09 19:19 ` [PATCH 2/2] OMAP: PM: implement devices " Jean Pihet
2011-03-09 19:37   ` Jean Pihet
2011-03-10 19:51     ` Kevin Hilman
2011-03-10  4:03   ` Paul Walmsley
2011-03-10 10:03     ` Jean Pihet
2011-03-10 18:03       ` Kevin Hilman
  -- strict thread matches above, loose matches on Subject: below --
2011-02-10 19:23 [RFC PATCH 0/2] OMAP: PM: add devices wakeup latency " jean.pihet
2011-02-10 19:23 ` [PATCH 1/2] OMAP PM: create a PM layer plugin for the devices wakeup latency constraints jean.pihet

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