Skip to contentSkip to conversation

ARM: EXYNOS4: Fix soft reboot hang after suspend/resume

PATCH In review Inderpal Singh 2 participants 6 messages Mar 28, 2012 – Sep 14, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS4: Fix soft reboot hang after suspend/resume

Upon wake-up, clear the sleep mode set in INFORM1 register.

---
 arch/arm/mach-exynos/pm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/pm.c +4 -0
index f0bb467..16cba3f 100644
@@ -381,6 +381,10 @@ static void exynos4_pm_resume(void)
 #endif
 
 early_wakeup:
+
+	/* Clear SLEEP mode set in INFORM1 */
+	__raw_writel(0x0, S5P_INFORM1);
+
 	return;
 }
 
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 3 lines · Inderpal Singh

Upon wake-up, clear the sleep mode set in INFORM1 register.

Is this for wake-up or _really_ software reset? And is this available on all of EXYNOS4 SoCs?

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Quoted 20 lines
---
 arch/arm/mach-exynos/pm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/pm.c +4 -0
index f0bb467..16cba3f 100644
@@ -381,6 +381,10 @@ static void exynos4_pm_resume(void)
 #endif
 
 early_wakeup:
+
+	/* Clear SLEEP mode set in INFORM1 */
+	__raw_writel(0x0, S5P_INFORM1);
+
 	return;
 }
 
#2 lore raw

Hi Kukjin,

Quoted 6 lines · Kukjin Kim
Quoted 3 lines · Inderpal Singh

Upon wake-up, clear the sleep mode set in INFORM1 register.

Is this for wake-up or _really_ software reset? And is this available on all of EXYNOS4 SoCs?

This is for soft reboot hang after one cycle of suspend/resume is complete. And yes this is applicable for all exynos SOCs.

With Regards,
Inder

Quoted 34 lines

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Quoted 17 lines

---
 arch/arm/mach-exynos/pm.c |    4 ++++

 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/pm.c +0 -0
index f0bb467..16cba3f 100644
@@ -381,6 +381,10 @@ static void exynos4_pm_resume(void)
  #endif
 

 early_wakeup:

arch/arm/mach-exynos/pm.c +4 -0
+
+     /* Clear SLEEP mode set in INFORM1 */
+     __raw_writel(0x0, S5P_INFORM1);
+
Quoted 3 lines

      return;
 }

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 5 lines · Inderpal Singh

Hi Kukjin,

Quoted 2 lines · Kukjin Kim
Quoted 1 line · Inderpal Singh
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Upon wake-up, clear the sleep mode set in INFORM1 register.

Is this for wake-up or _really_ software reset? And is this available on all of EXYNOS4 SoCs?

This is for soft reboot hang after one cycle of suspend/resume is complete. And yes this is applicable for all exynos SOCs.

Hi,

As I know, we don't need it for all of EXYNOS SoCs but let me check about the situation you said with hardware engineer tomorrow. If any updates, let you know.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#4 lore raw

Hi Kukjin,

Quoted 20 lines · Kukjin Kim
Quoted 10 lines · Inderpal Singh

Hi Kukjin,

Quoted 6 lines · Kukjin Kim
Quoted 4 lines · Inderpal Singh

Upon wake-up, clear the sleep mode set in INFORM1 register.

Quoted 9 lines
Quoted 3 lines

Is this for wake-up or _really_ software reset? And is this available on all
of EXYNOS4 SoCs?

This is for soft reboot hang after one cycle of suspend/resume is complete.
And yes this is applicable for all exynos SOCs.

Quoted 6 lines

Hi,

As I know, we don't need it for all of EXYNOS SoCs but let me check about the situation you said with hardware engineer tomorrow. If any updates, let you know.

The issue happens because u-boot checks INFROM1 register to know if its wake-up from sleep. Hence if INFORM1 is not cleared, the soft reboot after one suspend/resume cycle will be understood by u-boot as wake-up from sleep, so it will try to resume and will hang up.

I have faced this issue on Origen, Pegasus SMDK and 5250 SMDK.

Thanks,
Inder

Quoted 8 lines

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#5 lore raw

Hi Kukjin,

Quoted 30 lines · Inderpal Singh

Hi Kukjin,

Quoted 26 lines · Kukjin Kim
Quoted 10 lines · Inderpal Singh

Hi Kukjin,

Quoted 6 lines · Kukjin Kim
Quoted 4 lines · Inderpal Singh

Upon wake-up, clear the sleep mode set in INFORM1 register.

Quoted 9 lines
Quoted 3 lines

Is this for wake-up or _really_ software reset? And is this available on all
of EXYNOS4 SoCs?

This is for soft reboot hang after one cycle of suspend/resume is complete.
And yes this is applicable for all exynos SOCs.

Hi,

As I know, we don't need it for all of EXYNOS SoCs but let me check about the situation you said with hardware engineer tomorrow. If any updates, let you know.

Any updates on this ?
As i mentioned below, Its applicable for Origen, Pegasus and 5250 as well.

Quoted 5 lines

The issue happens because u-boot checks INFROM1 register to know if its wake-up from sleep. Hence if INFORM1 is not cleared, the soft reboot after one suspend/resume cycle will be understood by u-boot as wake-up from sleep, so it will try to resume and will hang up.

Quoted 13 lines

I have faced this issue on Origen, Pegasus SMDK and 5250 SMDK.

Thanks,
Inder

Quoted 8 lines

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

With Regards,
Inder