linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier
@ 2013-11-19 13:30 Jonghwan Choi
  2013-11-19 14:50 ` Bartlomiej Zolnierkiewicz
  2013-11-20  9:46 ` MyungJoo Ham
  0 siblings, 2 replies; 5+ messages in thread
From: Jonghwan Choi @ 2013-11-19 13:30 UTC (permalink / raw)
  To: Rafael J. Wysocki, MyungJoo Ham, Kukjin Kim
  Cc: linux-kernel, linux-samsung-soc, Jonghwan Choi

Frequency lock should be considered in suspend/hibernation.

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
---
 drivers/devfreq/exynos/exynos5_bus.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/devfreq/exynos/exynos5_bus.c b/drivers/devfreq/exynos/exynos5_bus.c
index a60da3c..bd672de0 100644
--- a/drivers/devfreq/exynos/exynos5_bus.c
+++ b/drivers/devfreq/exynos/exynos5_bus.c
@@ -268,6 +268,7 @@ static int exynos5_busfreq_int_pm_notifier_event(struct notifier_block *this,
 	int err = 0;
 
 	switch (event) {
+	case PM_HIBERNATION_PREPARE:
 	case PM_SUSPEND_PREPARE:
 		/* Set Fastest and Deactivate DVFS */
 		mutex_lock(&data->lock);
@@ -300,6 +301,7 @@ unlock:
 		if (err)
 			return NOTIFY_BAD;
 		return NOTIFY_OK;
+	case PM_POST_HIBERNATION:
 	case PM_POST_RESTORE:
 	case PM_POST_SUSPEND:
 		/* Reactivate */
-- 
1.8.1.2


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

* Re: [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier
  2013-11-19 13:30 [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier Jonghwan Choi
@ 2013-11-19 14:50 ` Bartlomiej Zolnierkiewicz
  2013-11-19 22:08   ` Sebastian Capella
  2013-11-20  9:46 ` MyungJoo Ham
  1 sibling, 1 reply; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2013-11-19 14:50 UTC (permalink / raw)
  To: Jonghwan Choi
  Cc: Rafael J. Wysocki, MyungJoo Ham, Kukjin Kim, linux-kernel,
	linux-samsung-soc, Jonghwan Choi


Hi,

Are you planning to add hibernation support to ARM?

If so then this should be stated somewhere in the patch description.

OTOH if you are not going to add hibernation support to ARM I see
a little sense in adding hibernation support to ARM-only drivers..

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

On Tuesday, November 19, 2013 10:30:31 PM Jonghwan Choi wrote:
> Frequency lock should be considered in suspend/hibernation.
> 
> Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
> ---
>  drivers/devfreq/exynos/exynos5_bus.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/devfreq/exynos/exynos5_bus.c b/drivers/devfreq/exynos/exynos5_bus.c
> index a60da3c..bd672de0 100644
> --- a/drivers/devfreq/exynos/exynos5_bus.c
> +++ b/drivers/devfreq/exynos/exynos5_bus.c
> @@ -268,6 +268,7 @@ static int exynos5_busfreq_int_pm_notifier_event(struct notifier_block *this,
>  	int err = 0;
>  
>  	switch (event) {
> +	case PM_HIBERNATION_PREPARE:
>  	case PM_SUSPEND_PREPARE:
>  		/* Set Fastest and Deactivate DVFS */
>  		mutex_lock(&data->lock);
> @@ -300,6 +301,7 @@ unlock:
>  		if (err)
>  			return NOTIFY_BAD;
>  		return NOTIFY_OK;
> +	case PM_POST_HIBERNATION:
>  	case PM_POST_RESTORE:
>  	case PM_POST_SUSPEND:
>  		/* Reactivate */


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

* Re: [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier
  2013-11-19 14:50 ` Bartlomiej Zolnierkiewicz
@ 2013-11-19 22:08   ` Sebastian Capella
  2013-11-20  9:51     ` MyungJoo Ham
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Capella @ 2013-11-19 22:08 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz, Jonghwan Choi
  Cc: Rafael J. Wysocki, MyungJoo Ham, Kukjin Kim, linux-kernel,
	linux-samsung-soc, Jonghwan Choi

Quoting Bartlomiej Zolnierkiewicz (2013-11-19 06:50:05)
> Hi,
> 
> Are you planning to add hibernation support to ARM?
> 
> If so then this should be stated somewhere in the patch description.
> 
> OTOH if you are not going to add hibernation support to ARM I see
> a little sense in adding hibernation support to ARM-only drivers..

FYI, we at Linaro and a few others have been working on adding
hibernation support for ARM.  I have not coordinated with Jonghwan
however.

Apoligies for the earlier toppost.

Thanks,

Sebastian Capella

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

* Re: [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier
  2013-11-19 13:30 [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier Jonghwan Choi
  2013-11-19 14:50 ` Bartlomiej Zolnierkiewicz
@ 2013-11-20  9:46 ` MyungJoo Ham
  1 sibling, 0 replies; 5+ messages in thread
From: MyungJoo Ham @ 2013-11-20  9:46 UTC (permalink / raw)
  To: Jonghwan Choi
  Cc: Rafael J. Wysocki, Kukjin Kim, LKML, Linux Samsung SoC, Jonghwan Choi

On Tue, Nov 19, 2013 at 10:30 PM, Jonghwan Choi <jhbird.choi@gmail.com> wrote:
> Frequency lock should be considered in suspend/hibernation.
>
> Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>




Cheers,
MyungJoo.

> ---
>  drivers/devfreq/exynos/exynos5_bus.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/devfreq/exynos/exynos5_bus.c b/drivers/devfreq/exynos/exynos5_bus.c
> index a60da3c..bd672de0 100644
> --- a/drivers/devfreq/exynos/exynos5_bus.c
> +++ b/drivers/devfreq/exynos/exynos5_bus.c
> @@ -268,6 +268,7 @@ static int exynos5_busfreq_int_pm_notifier_event(struct notifier_block *this,
>         int err = 0;
>
>         switch (event) {
> +       case PM_HIBERNATION_PREPARE:
>         case PM_SUSPEND_PREPARE:
>                 /* Set Fastest and Deactivate DVFS */
>                 mutex_lock(&data->lock);
> @@ -300,6 +301,7 @@ unlock:
>                 if (err)
>                         return NOTIFY_BAD;
>                 return NOTIFY_OK;
> +       case PM_POST_HIBERNATION:
>         case PM_POST_RESTORE:
>         case PM_POST_SUSPEND:
>                 /* Reactivate */
> --
> 1.8.1.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
MyungJoo Ham, Ph.D.
System S/W Lab, S/W Center, Samsung Electronics

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

* Re: [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier
  2013-11-19 22:08   ` Sebastian Capella
@ 2013-11-20  9:51     ` MyungJoo Ham
  0 siblings, 0 replies; 5+ messages in thread
From: MyungJoo Ham @ 2013-11-20  9:51 UTC (permalink / raw)
  To: Sebastian Capella
  Cc: Bartlomiej Zolnierkiewicz, Jonghwan Choi, Rafael J. Wysocki,
	Kukjin Kim, LKML, Linux Samsung SoC, Jonghwan Choi

On Wed, Nov 20, 2013 at 7:08 AM, Sebastian Capella
<sebastian.capella@linaro.org> wrote:
> Quoting Bartlomiej Zolnierkiewicz (2013-11-19 06:50:05)
>> Hi,
>>
>> Are you planning to add hibernation support to ARM?
>>
>> If so then this should be stated somewhere in the patch description.
>>
>> OTOH if you are not going to add hibernation support to ARM I see
>> a little sense in adding hibernation support to ARM-only drivers..
>
> FYI, we at Linaro and a few others have been working on adding
> hibernation support for ARM.  I have not coordinated with Jonghwan
> however.

That is great.

We once tried to upstream hibernation support and forgot it for a while, too.
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-December/036101.html

I have not coordinated with Jonghwan Choi, either.
However, it appears that some others are trying now, too.


Cheers,
MyungJoo

>
> Apoligies for the earlier toppost.
>
> Thanks,
>
> Sebastian Capella
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
MyungJoo Ham, Ph.D.
System S/W Lab, S/W Center, Samsung Electronics

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

end of thread, other threads:[~2013-11-20  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 13:30 [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier Jonghwan Choi
2013-11-19 14:50 ` Bartlomiej Zolnierkiewicz
2013-11-19 22:08   ` Sebastian Capella
2013-11-20  9:51     ` MyungJoo Ham
2013-11-20  9:46 ` MyungJoo Ham

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