Skip to content

omap3: pm: Fixes for low power code

Santosh Shilimkar linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] omap3: pm: Fixes for low power code
Quoted 46 lines

-----Original Message-----
From: Kevin Hilman [mailto:khilman at ti.com]
Sent: Thursday, March 03, 2011 6:53 AM
To: Santosh Shilimkar
Cc: linux-omap at vger.kernel.org; linux-arm-kernel at lists.infradead.org
Subject: Re: [PATCH 0/6] omap3: pm: Fixes for low power code

Hi Santosh,

Quoted 7 lines · Santosh Shilimkar

The series does below fixes to the omap3 low power code.
1. Use supported ARMv7 instructions instead of the legacy ones
2. Fix the MMU on sequence
3. Fix the cache flush scenario when only L1 lost.
4. Remove all un-necessary context save registers
5. Disable C-bit before cache clean
6. Use set_cr() exported API instead of custom one.

Look like good cleanups, thanks.

Quoted 3 lines

It's generated against mainline and tested with OMAP3630 ZOOM3.
1. Renetion and off-mode mode in suspend - ok.
2. Retention in idle - ok

Testing this series along with other PM changes queued up for mainline
(my pm-core branch), this doesn't work for me on 3630/Zoom3 (but works fine on 3430/n900.)

Here's what I did using omap2plus_defconfig + enabling CPUidle

First tested suspend:

echo 4 > /debug/pm_debug/wakeup_timer_seconds
echo mem > /sys/power/state

then, setup UART idle/wakeup:

echo 5 > /sys/devices/platform/omap/omap_uart.0/sleep_timeout echo 5 > /sys/devices/platform/omap/omap_uart.1/sleep_timeout echo 5 > /sys/devices/platform/omap/omap_uart.2/sleep_timeout echo 5 > /sys/devices/platform/omap/omap_uart.3/sleep_timeout echo enabled > /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup

Quoted 9 lines

then enabled idle:

echo 1 > /debug/pm_debug/sleep_while_idle

As soon as I do this, it hangs.

Without your series, it's working fine for me. Only after merging your series it hangs.

Interesting. I was seeing cpuidle hang on my 3630 without this Series when tested on mainline.
Will rebase this series on your pm-core branch and look at the issue further.

Regards,
Santosh