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 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ARM: pm: force non-zero return value from __cpu_suspend when abortingarch/arm/kernel/sleep.S+2 -00 replies
2/7ARM: pm: preallocate a page table for suspend/resumearch/arm/include/asm/suspend.h arch/arm/kernel/Makefile arch/arm/kernel/sleep.S +8 more+62 -720 replies
3/7ARM: 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+99 -990 replies
4/7ARM: pm: no need to save/restore context ID registerarch/arm/mm/proc-v6.S arch/arm/mm/proc-v7.S+22 -240 replies
5/7ARM: pm: get rid of cpu_resume_turn_mmu_onarch/arm/kernel/sleep.S arch/arm/kernel/suspend.c+4 -80 replies
6/7ARM: pm: convert some assembly to Carch/arm/include/asm/proc-fns.h arch/arm/kernel/sleep.S arch/arm/kernel/suspend.c+46 -390 replies
7/7ARM: pm: add L2 cache cleaning for suspendarch/arm/kernel/suspend.c+3 -00 replies

Reviews trailers per patch

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

PatchSantosh ShilimkarShawn GuoLorenzo Pieralisi
SeriesT-b T-b
1/7T-b
2/7T-b
3/7T-b
4/7T-b
5/7T-b
6/7T-b
7/7T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] Add L2 cache cleaning to generic CPU suspend

This is a re-post of the previous patch series, but with an additional TLB flush to ensure that hte global TLB entry in the page tables is flushed out. This is a flush of all TLB entries, but it could probably be more targetted if we need to.

Original cover mail follows:

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.