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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:24:50 +0000 (11:24 +0200)
commit134e70c22eb0a47dcb30f20859f331344b5018db
tree4cb0fd1ce5d0248f7a1138badfa3e724f084b615
parent0e8bb91c6dd6a77c60279c4fd83975ef257ed3c2
powerpc/powernv: copy/paste - Mask SO bit in CR

commit 75743649064ec0cf5ddd69f240ef23af66dde16e upstream.

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: 2392c8c8c045 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/copy-paste.h