Skip to content

cpuidle fixes and cleanup

Russell King - ARM Linux linux-arm-kernel linux-pm linux-samsung-soc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 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/2] cpuidle fixes and cleanup
Quoted 14 lines · Tomasz Figa
Quoted 9 lines · Chander Kashyap
Quoted 7 lines · Russell King - ARM Linux
Quoted 6 lines · Chander Kashyap

This patch series fixes the cpuidle for different states. Also removes arm diagnostic and power register save/restore code as it is made generic.

Based on:
ARM: save/restore diagnostic register on Cortex-A9 suspend/resume
http://www.spinics.net/lists/arm-kernel/msg340506.html

[Ccing people who participated in discussion in that thread]

Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

As there is an outstanding issue with this patch, we can't proceed with this set of changes until we know what's going on there.

Sure, I will wait for the conclusion.

So I believe the conclusion was that this can't be handled in generic way, because on systems running in non-secure mode writing to those registers faults.

That is, unfortunately, correct.

There is a way around this, but people aren't going to like it. That is - we move it to the suspend and resume paths anyway.

In the resume path, we read the register, compare it with the value which we would update it to, and if it's identical, we avoid the write.

This gets secure-mode platforms working.

For non-secure mode platforms, we have to require them to insert some assembly code into the early resume path which calls their secure monitor to restore these registers before continuing on to cpu_resume, thereby ensuring that the CPU specific code sees that the value in the register is identical with the saved value, and omitting the write.

This isn't really a new principle - we already have this requirement for non-secure mode platforms when they're booting a kernel with various errata enabled.

I can't see any other alternative which satisfies everyone (by everyone, I'm including the requirements from the hardware folk who expect these registers to be static once the MMU is enabled.)

Signature · 2 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.