[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1423479726-23140-1-git-send-email-amit.daniel@samsung.com>
Date: Mon, 09 Feb 2015 16:32:03 +0530
From: Amit Daniel Kachhap <amit.daniel@...sung.com>
To: linux-pm@...r.kernel.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org, khilman@...aro.org,
rjw@...ysocki.net, len.brown@...el.com, ulf.hansson@...aro.org,
tomasz.figa@...il.com, kgene.kim@...sung.com,
s.nawrocki@...sung.com, thomas.ab@...sung.com,
pankaj.dubey@...sung.com, m.szyprowski@...sung.com,
geert+renesas@...der.be,
Amit Daniel Kachhap <amit.daniel@...sung.com>
Subject: [PATCH RFC v4 0/3] PM / Runtime: Feature to power manage slave devices
This patch is somewhat similar to V3 version but uses pm runtime framework to
register/fetch the information about the device which may be slave or master.
Since the power domain has the necessary information about devices so it invokes
the save/restore runtime callbacks for the slave devices.
There was objection raised by Kevin and others that V3 is hacky in nature so this
revision fixes it by keeping the slave device information in pm runtime framework.
The model works like,
DEV1 (Attaches itself with PD but no support of pm_runtime_get and
/ pm_runtime_put. Registers itself as pm runtime slave device.
/ Its local runtime_suspend/resume is invoked by PD.
/
/
PD -- DEV2 (Implements complete PM runtime and calls pm_runtime_get and
\ pm_runtime_put. This in turn invokes PD On/Off)
\
DEV3 (Similar to DEV1)
This work is continuation of earlier work,
In V3: Used the existing API pm_genpd_dev_need_restore to add a feature to force
devices to perform restore/save during every power domain on/off
operation. This API is now removed.
Link (https://lkml.org/lkml/2014/12/13/74
In V2: Completely removed notfiers and add support for huge clock list to be
suspended and restored. There was some issue in this as some clocks are
not exposed and are just initialised by bootloaders. This approach
required all of them to be exposed which is cumbersome. Also some
clock API's set_parent are disabling the original parent clocks
which is not required.
Link (https://lkml.org/lkml/2014/11/24/290)
In V1: Implemented PM Domain notfier such as PD_ON_PRE, PD_ON_POST
PD_OFF_PRE and PD_OFF_POST. This was not supported and other
options suggested. link (http://www.spinics.net/lists/linux-samsung-soc/msg38442.html)
This work may also assist exynos iommu pm runtime posted earlier by Marek
http://lists.linaro.org/pipermail/linaro-mm-sig/2014-August/004099.html
Amit Daniel Kachhap (3):
PM / Runtime: Add an API pm_runtime_set_slave
PM / Domains: Save restore slave pm runtime devices
clk: samsung: Add PM runtime support for clocks.
drivers/base/power/domain.c | 28 +++++++++++++
drivers/base/power/runtime.c | 18 +++++++++
drivers/clk/samsung/clk.c | 93 ++++++++++++++++++++++++++++++++++++++++++++
drivers/clk/samsung/clk.h | 11 ++++++
include/linux/pm.h | 1 +
include/linux/pm_runtime.h | 2 +
6 files changed, 153 insertions(+)
--
2.2.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists