Skip to content

ARM: OMAP2+: powerdomain/PM: convert to functional power states

Tero Kristo linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am 1357308732.2221.108.camel@sokoban

Versions newest first

  1. v1 Latest4 of 12 patches 0 repliesNew

4 of 12 patches are in this archive. The cover letter announces 12.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/12ARM: OMAP2+: PM: introduce power domains functional states+0 -00 replies
5/12ARM: OMAP3xxx: PM: convert to use the functional power states API+0 -00 replies
6/12ARM: OMAP44xx: PM: convert to use the functional power states APIarch/arm/mach-omap2/pm44xx.c+7 -00 replies
7/12ARM: OMAP2+: PM: use power domain functional state in stats counters+0 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/12] ARM: OMAP2+: powerdomain updates after the functional power state conversion

Hi Paul,

Tested this whole set on omap3beagle and omap4panda. The only regression I noticed was that cpu0 debug counters do not increment on omap4 after this set. The patch at the end fixes this problem. Other than that, you can add acked-by tag from me if you want, I went the code through quickly and don't have any comments to it.

-Tero

From: Tero Kristo <[email protected]>
Date: Thu, 3 Jan 2013 20:07:27 +0200
Subject: [PATCH] ARM: OMAP4: PM: fix cpu0 statistics update during idle

Cpu0 PM counters do not update, as the cpu0 fpwrst is set to ON before calling pwrdm_post_transition. The optimized code checks whether the fpwrst is ON, and skips any further checks if this is the case. Fixed by re-ordering the code within omap4_mpuss_enter_lowpower function.

---
 arch/arm/mach-omap2/omap-mpuss-lowpower.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/arch/arm/mach-omap2/omap-mpuss-lowpower.c
index 9acd52a..1bdd59e 100644

arch/arm/mach-omap2/omap-mpuss-lowpower.c +0 -0
@@ -269,10 +269,16 @@ int omap4_mpuss_enter_lowpower(unsigned int cpu,

u8 fpwrst)
* domain transition
*/
wakeup_cpu = smp_processor_id();
- WARN_ON(pwrdm_set_next_fpwrst(pm_info->pwrdm, PWRDM_FUNC_PWRST_ON));

+ /*
+ * Due to optimizations to the code, pwrdm_post_transition
+ * must be called prior to resetting cpu0 pwrst to ON,
+ * otherwise cpu0 powerstate statistics don't update properly
+ */
pwrdm_post_transition(NULL);

+ WARN_ON(pwrdm_set_next_fpwrst(pm_info->pwrdm, PWRDM_FUNC_PWRST_ON));
+
return 0;
}

Signature · 1 line
1.7.4.1