]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: copy/paste - Mask SO bit in CR
authorHaren Myneni <haren@us.ibm.com>
Mon, 4 Jun 2018 08:33:38 +0000 (18:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 4 Jun 2018 12:58:41 +0000 (22:58 +1000)
commit45e2470f64a084f1c380a4820e158dab8d788860
tree05a2c523db422b9f5f556828a0b939b4763ea0e5
parent8469cc011dff08c0436738da36aa1925019e8b10
powerpc/powernv: copy/paste - Mask SO bit in CR

NX can set the 3rd bit in CR register for XER[SO] (Summary overflow)
which is not related to paste request. The current paste function
returns failure for a successful request when this bit is set. So mask
this bit and check the proper return status.

Fixes: 1b10be1d0956 ("powerpc/powernv/vas: Define copy/paste interfaces")
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Haren Myneni <haren@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/copy-paste.h