From: inki.dae@samsung.com (Inki Dae)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/2] drm/exynos/dsi: Add runtime PM so LCD power domain could be turned off
Date: Fri, 14 Nov 2014 11:53:14 +0900 [thread overview]
Message-ID: <54656E9A.8040702@samsung.com> (raw)
In-Reply-To: <1415368439-23642-3-git-send-email-k.kozlowski@samsung.com>
On 2014? 11? 07? 22:53, Krzysztof Kozlowski wrote:
> Add runtime Power Management to the Exynos DSI driver so the LCD power
> domain could be turned off.
>
> This slightly reduces the energy consumption when screen is completely
> turned off. On Trats2 board when the system was idle the energy
> consumption dropped by 1% (from 92.2 mA to 91.1 mA).
>
> Before the patch:
> $ cat cat /sys/kernel/debug/pm_genpd/pm_genpd_summary
> lcd0-power-domain on
> /devices/11c00000.fimd suspended
> /devices/11c80000.dsi unsupported
>
> After applying the patch:
> lcd0-power-domain off
> /devices/11c00000.fimd suspended
> /devices/11c80000.dsi suspended
Reasonable but this patch incurs page flip test timeout like below,
# modetest -v -s 15 at 12:720x1280
trying to open device 'i915'...failed.
trying to open device 'radeon'...failed.
trying to open device 'nouveau'...failed.
trying to open device 'vmwgfx'...failed.
trying to open device 'omapdrm'...failed.
trying to open device 'exynos'...success.
setting mode 720x1280-0Hz at XR24 on connectors 15, crtc 12
select timed out or error (ret 0)
I'm not sure why this issue is incurred with this patch even through
this patch is reasonable and correct. So we need more checking.
P.S. I tested it on exynos-drm-next and m0 board.
Thanks,
Inki Dae
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> ---
> drivers/gpu/drm/exynos/exynos_drm_dsi.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> index 24741d8758e8..19ed36d2d557 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> @@ -21,6 +21,7 @@
> #include <linux/of_device.h>
> #include <linux/of_gpio.h>
> #include <linux/phy/phy.h>
> +#include <linux/pm_runtime.h>
> #include <linux/regulator/consumer.h>
> #include <linux/component.h>
>
> @@ -1356,6 +1357,8 @@ static int exynos_dsi_enable(struct exynos_dsi *dsi)
> if (dsi->state & DSIM_STATE_ENABLED)
> return 0;
>
> + pm_runtime_get_sync(dsi->dev);
> +
> ret = exynos_dsi_poweron(dsi);
> if (ret < 0)
> return ret;
> @@ -1392,6 +1395,8 @@ static void exynos_dsi_disable(struct exynos_dsi *dsi)
> drm_panel_unprepare(dsi->panel);
> exynos_dsi_poweroff(dsi);
>
> + pm_runtime_put_sync(dsi->dev);
> +
> dsi->state &= ~DSIM_STATE_ENABLED;
> }
>
> @@ -1772,6 +1777,8 @@ static int exynos_dsi_probe(struct platform_device *pdev)
> if (ret)
> goto err_del_component;
>
> + pm_runtime_enable(&pdev->dev);
> +
> return ret;
>
> err_del_component:
> @@ -1781,6 +1788,8 @@ err_del_component:
>
> static int exynos_dsi_remove(struct platform_device *pdev)
> {
> + pm_runtime_disable(&pdev->dev);
> +
> component_del(&pdev->dev, &exynos_dsi_component_ops);
> exynos_drm_component_del(&pdev->dev, EXYNOS_DEVICE_TYPE_CONNECTOR);
>
>
next prev parent reply other threads:[~2014-11-14 2:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 13:53 [PATCH v2 0/2] DRM: Add runtime PM to Exynos DSI Krzysztof Kozlowski
2014-11-07 13:53 ` [PATCH v2 1/2] drm/exynos: Fix DSI resuming fail because power domain being off Krzysztof Kozlowski
2014-11-14 2:56 ` Inki Dae
2014-11-07 13:53 ` [PATCH v2 2/2] drm/exynos/dsi: Add runtime PM so LCD power domain could be turned off Krzysztof Kozlowski
2014-11-14 2:53 ` Inki Dae [this message]
2014-11-14 7:32 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54656E9A.8040702@samsung.com \
--to=inki.dae@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).