Skip to content

Add L2 cache cleaning to generic CPU suspend

Russell King - ARM Linux linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11ARM: pm: CPU specific code should not overwrite r1 (v:p offset)arch/arm/mm/proc-sa1100.S arch/arm/mm/proc-xsc3.S+8 -80 replies
2/11ARM: pm: arm920/926: fix number of registers savedarch/arm/mm/proc-arm920.S arch/arm/mm/proc-arm926.S+2 -20 replies
3/11ARM: pm: some ARMv7 requires a dsb in resume to ensure correctnessarch/arm/mm/proc-v7.S+1 -01 reply
3/11ARM: pm: some ARMv7 requires a dsb in resume to ensure correctness+0 -02 replies
4/11ARM: pm: avoid writing the auxillary control register for ARMv7arch/arm/mm/proc-v7.S+3 -10 replies
5/11ARM: pm: force non-zero return value from __cpu_suspend when abortingarch/arm/kernel/sleep.S+2 -00 replies
6/11ARM: pm: preallocate a page table for suspend/resumearch/arm/include/asm/suspend.h arch/arm/kernel/Makefile arch/arm/kernel/sleep.S +8 more+61 -720 replies
7/11ARM: pm: only use preallocated page table during resumearch/arm/kernel/sleep.S arch/arm/kernel/suspend.c arch/arm/mm/proc-arm920.S +6 more+97 -980 replies
8/11ARM: pm: no need to save/restore context ID registerarch/arm/mm/proc-v6.S arch/arm/mm/proc-v7.S+22 -241 reply
8/11ARM: pm: no need to save/restore context ID register+0 -00 replies
9/11ARM: pm: get rid of cpu_resume_turn_mmu_onarch/arm/kernel/sleep.S arch/arm/kernel/suspend.c+4 -80 replies
10/11ARM: pm: convert some assembly to Carch/arm/include/asm/proc-fns.h arch/arm/kernel/sleep.S arch/arm/kernel/suspend.c+46 -391 reply
10/11ARM: pm: convert some assembly to C+0 -00 replies
11/11ARM: pm: add L2 cache cleaning for suspendarch/arm/kernel/suspend.c+3 -00 replies

Reviews trailers per patch

None of the 14 patches has a Reviewed-by or Acked-by.

PatchSantosh ShilimkarShawn Guo
SeriesT-b T-b
1/11
2/11
3/11
3/11
4/11
5/11
6/11
7/11
8/11
8/11
9/11
10/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] Add L2 cache cleaning to generic CPU suspend

Some systems (such as OMAP) preserve the L2 cache across a suspend/ resume cycle. This means they do not perform L2 cache maintanence in their suspend finisher function.

However, the side effect is that the saved CPU state is not readable by the resume code because it is sitting in the L2 cache.

This patch series adds L2 cache cleaning to the generic CPU suspend/ resume support code, making it possible to use this on systems with L2 cache enabled without having to clean/invalidate the entire L2 cache.

We also add a separate page table, allocated at boot time, for the resume process to use so we don't have to fiddle about with tweaking entries in the current processes page table. Moreover, the current processes page table may be in use by another CPU in the system if these paths are used from cpuidle or hotplug, so changing the page table is technically unsound.

Overall, this makes it possible for OMAP4 systems to use this code.

The first four patches in this set are already merged into Linus' tree as bug fixes, and are included here for completeness given that the kernel.org infrastructure is currently offline.

This has (so far) only been tested on OMAP4. Further testing on OMAP3 and Assabet will follow.