]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Routines for FP/VSX/VMX unavailable during a transaction
authorMichael Neuling <mikey@neuling.org>
Wed, 13 Feb 2013 16:21:39 +0000 (16:21 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 Feb 2013 06:02:23 +0000 (17:02 +1100)
commitf54db641b9bbca91b071128e4d71f0f6af9a3c25
tree4c6728d574ff13668c7712661f2de11aac588203
parentd0c0c9a13f682157e8610565b6125a31d24434bc
powerpc: Routines for FP/VSX/VMX unavailable during a transaction

We do lazy FP but not lazy TM (ie. userspace starts with MSR TM=1 FP=0).  Hence
if userspace does an FP instruction during a transaction, we'll take an
fp unavailable exception.

This adds functions needed to handle this case.  We have to inject the current
FP state into the checkpoint so that the hardware can decide what to do with
the transaction.  We can't inject only the FP so we have to do a full treclaim
and recheckpoint to inject just the FP state.  This will cause the transaction
to be marked as aborted by the hardware.

This just add the routines needed to do this for FP, VMX and VSX.  It doesn't
hook them into the rest of the code yet.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c