]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/exynos: Use device dependency links to control runtime pm
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 14 Nov 2016 10:08:12 +0000 (11:08 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Nov 2016 16:11:59 +0000 (17:11 +0100)
commit2f5f44f205cc958bcd881ee21e4844fae83b0364
tree2ebb8f3848afaea9beb37c735ea631580a017b88
parent9b265536c271163ec4acc140ca0a40a732971cbf
iommu/exynos: Use device dependency links to control runtime pm

This patch uses recently introduced device dependency links to track the
runtime pm state of the master's device. The goal is to let SYSMMU
controller device's runtime PM to follow the runtime PM state of the
respective master's device. This way each SYSMMU controller is active
only when its master's device is active and can properly restore or save
its state instead on runtime PM transition of master's device.
This approach replaces old behavior, when SYSMMU controller was set to
runtime active once after attaching to the master device. In the new
approach SYSMMU controllers no longer prevents respective power domains
to be turned off when master's device is not being used.

This patch reduces total power consumption of idle system, because most
power domains can be finally turned off. For example, on Exynos 4412
based Odroid U3 this patch reduces power consuption from 136mA to 130mA
at 5V (by 4.4%).

The dependency links also enforce proper order of suspending/restoring
devices during system sleep transition, so there is no more need to use
LATE_SYSTEM_SLEEP_PM_OPS-based workaround for ensuring that SYSMMUs are
suspended after their master devices.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/exynos-iommu.c