Skip to contentSkip to conversation

OMAP2: PM: fix fault in enter_full_retention()

PATCH In review Kevin Hilman 2 participants 2 messages Dec 6, 2008 – Dec 16, 2008

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

PATCH 1/1 OMAP2: PM: fix fault in enter_full_retention()

In omap24xx_cpu_suspend assembly routine, the r2 register which holds the address of the SDRC_POWER reg is set to zero before the value is written back triggering a fault due to writing to address zero.

It's hard to tell where this change was introduced since this file has been moved and merged.

While this fix prevents a crash, suspend on my n810 is broken with current kernels. I never come out of suspend.

---
 arch/arm/mach-omap2/sleep24xx.S |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/sleep24xx.S +1 -2
index 43336b9..bf9e961 100644
@@ -93,9 +93,8 @@ ENTRY(omap24xx_cpu_suspend)
 	orr	r4, r4, #0x40		@ enable self refresh on idle req
 	mov	r5, #0x2000		@ set delay (DPLL relock + DLL relock)
 	str	r4, [r2]		@ make it so
-	mov	r2, #0
 	nop
-	mcr	p15, 0, r2, c7, c0, 4	@ wait for interrupt
+	mcr	p15, 0, r3, c7, c0, 4	@ wait for interrupt
 	nop
 loop:
 	subs	r5, r5, #0x1		@ awake, wait just a bit
Signature · 1 line
1.6.0.3
maintainer
#1 lore raw
Quoted 6 lines · Kevin Hilman

In omap24xx_cpu_suspend assembly routine, the r2 register which holds the address of the SDRC_POWER reg is set to zero before the value is written back triggering a fault due to writing to address zero.

It's hard to tell where this change was introduced since this file has been moved and merged.

Pushing to l-o tree, and adding to omap-fixes queue for mainline.

Quoted 2 lines

While this fix prevents a crash, suspend on my n810 is broken with current kernels. I never come out of suspend.

Bummer.

Tony

Quoted 28 lines
---
 arch/arm/mach-omap2/sleep24xx.S |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/sleep24xx.S +1 -2
index 43336b9..bf9e961 100644
@@ -93,9 +93,8 @@ ENTRY(omap24xx_cpu_suspend)
 	orr	r4, r4, #0x40		@ enable self refresh on idle req
 	mov	r5, #0x2000		@ set delay (DPLL relock + DLL relock)
 	str	r4, [r2]		@ make it so
-	mov	r2, #0
 	nop
-	mcr	p15, 0, r2, c7, c0, 4	@ wait for interrupt
+	mcr	p15, 0, r3, c7, c0, 4	@ wait for interrupt
 	nop
 loop:
 	subs	r5, r5, #0x1		@ awake, wait just a bit
Signature · 6 lines
1.6.0.3

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