]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signals: Improved mark VSX not saved with small contexts fix
authorMichael Neuling <mikey@neuling.org>
Mon, 25 Nov 2013 00:12:20 +0000 (11:12 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 25 Nov 2013 00:50:51 +0000 (11:50 +1100)
commit7479bd75dd000c5ec9a345c7d432cf1e42150d3c
tree8f03379f169ef11972c72d4281c82446c7b5e93f
parent98a1dab087e2ef7a0eaac9ca770b59edba638ec7
powerpc/signals: Improved mark VSX not saved with small contexts fix

In a recent patch:
  commit 661ae54613c76501d0bf3b012d60b641c148dc70
  Author: Michael Neuling <mikey@neuling.org>
  powerpc/signals: Mark VSX not saved with small contexts

We fixed an issue but an improved solution was later discussed after the patch
was merged.

Firstly, this patch doesn't handle the 64bit signals case, which could also hit
this issue (but has never been reported).

Secondly, the original patch isn't clear what MSR VSX should be set to.  The
new approach below always clears the MSR VSX bit (to indicate no VSX is in the
context) and sets it only in the specific case where VSX is available (ie. when
VSX has been used and the signal context passed has space to provide the
state).

This reverts the original patch and replaces it with the improved solution.  It
also adds a 64 bit version.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_64.c