drm/exynos: fimd: modify condition in fimd resume
Subsystems (3)
PATCH 1/1 drm/exynos: fimd: modify condition in fimd resume
If fimd is runtime suspended (by DPMS OFF), fimd_suspend does not call fimd_activate(false) and just returns. Similarily the check in fimd_resume should not resume if previously runtime_suspended. Instead the existing check does the opposite. So if fimd was not runtime suspended, suspend will turn off fimd but resume will not turn it on. This patch fixes this issue by reversing the condition.
--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +1 -1
@@ -1046,7 +1046,7 @@ static int fimd_resume(struct device *dev)* of pm runtime would still be 1 so in this case, fimd driver * should be on directly not drawing on pm runtime interface. */ -if (pm_runtime_suspended (dev)) { +if (!pm_runtime_suspended (dev)) {int ret; ret =fimd_activate (ctx, true);
Signature · 1 line
1.8.0
Hi,
Please review this patch.
Regards,
Prathyush
Quoted 29 lines · Prathyush K
If fimd is runtime suspended (by DPMS OFF),
fimd_suspenddoes not callfimd_activate(false)and just returns. Similarily the check infimd_resumeshould not resume if previouslyruntime_suspended. Instead the existing check does the opposite. So if fimd was not runtime suspended, suspend will turn off fimd but resume will not turn it on. This patch fixes this issue by reversing the condition.Signed-off-by Prathyush K <[email protected]>--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/exynos/exynos_drm_fimd.c +1
-2@@ -1046,7 +1046,7 @@ static int fimd_resume(struct device *dev)* of pm runtime would still be 1 so in this case, fimd driver * should be on directly not drawing on pm runtime interface. */ -if (pm_runtime_suspended (dev)) { +if (!pm_runtime_suspended (dev)) {int ret; ret =fimd_activate (ctx, true); --1.8.0
Quoted 5 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Inki Dae
maintainer2012/12/27 Prathyush K <[email protected]>:
Quoted 2 lines
If fimd is runtime suspended (by DPMS OFF),
fimd_suspenddoes not callfimd_activate(false)and just returns. Similarily the check in
Right and that is our intension. pm suspend should be ignored because fimd already became off.
And if we want for fimd to be pm suspended after pm runtime suspend then we should register a callback that resumes (e.g., runtime-pm-get) the device to pm notifier so that the PM_SLEEP suspends the device forcibly again. And that seems quite inefficient' you are doing the same task duplicated.
Quoted 3 lines
fimd_resumeshould not resume if previouslyruntime_suspended. Instead the existing check does the opposite. So if fimd was not runtime suspended, suspend will turn off fimd but resume will not turn
Right, if the fimd wasn't turned off by runtime pm suspend and enerted pm suspend then the fimd is turned off by pm suspend and then should be turned on by pm resume again. Actully we have a same patch internally but we didn't post it. Will apply it.
Thank,
Inki Dae
Quoted 27 lines
it on. This patch fixes this issue by reversing the condition.
Signed-off-by Prathyush K <[email protected]>--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/exynos/exynos_drm_fimd.c +1
-2@@ -1046,7 +1046,7 @@ static int fimd_resume(struct device *dev)* of pm runtime would still be 1 so in this case, fimd driver * should be on directly not drawing on pm runtime interface. */ -if (pm_runtime_suspended (dev)) { +if (!pm_runtime_suspended (dev)) {int ret; ret =fimd_activate (ctx, true); --1.8.0
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel