Thread (5 messages) 5 messages, 3 authors, 2011-05-19

Re: [PATCH 01/13] powerpc/e500: Save SPEFCSR in flush_spe_to_thread()

From: Alexander Graf <hidden>
Date: 2011-05-19 09:38:59

On 05/19/2011 08:04 AM, Kumar Gala wrote:
On May 17, 2011, at 6:35 PM, Scott Wood wrote:
quoted
From: yu liu<redacted>

giveup_spe() saves the SPE state which is protected by MSR[SPE].
However, modifying SPEFSCR does not trap when MSR[SPE]=0.
And since SPEFSCR is already saved/restored in _switch(),
not all the callers want to save SPEFSCR again.
Thus, saving SPEFSCR should not belong to giveup_spe().

This patch moves SPEFSCR saving to flush_spe_to_thread(),
and cleans up the caller that needs to save SPEFSCR accordingly.

Signed-off-by: Liu Yu<redacted>
Signed-off-by: Scott Wood<redacted>
---
This is a resending of http://patchwork.ozlabs.org/patch/88677/

Kumar, please ack to go via kvm.  This is holding up the rest of the SPE
patches, which in turn are holding up the MMU patches due to both
touching the MSR update code.

arch/powerpc/kernel/head_fsl_booke.S |    2 --
arch/powerpc/kernel/process.c        |    1 +
arch/powerpc/kernel/traps.c          |    5 +----
3 files changed, 2 insertions(+), 6 deletions(-)
Acked-by: Kumar Gala<redacted>

[ Alex, let me know if you want this via my powerpc.git tree or your kvm tree ]
I'll take them :). Thanks!

Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help