]> git.baikalelectronics.ru Git - kernel.git/commit
cxl: Set endianess of kernel contexts
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Mon, 7 Dec 2015 13:34:40 +0000 (14:34 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Dec 2015 05:57:01 +0000 (16:57 +1100)
commit3c1bd834a7674c76399846b6174fa819ebf21050
tree161661be9b38a06695c12a5f1ff4c49c99afd711
parentc1f1fa135d3fc9ebcdf67e180cfea81106bcbb75
cxl: Set endianess of kernel contexts

A process element (defined in CAIA) keeps track of the endianess of
contexts through the Little Endian (LE) bit of the State Register. It
is currently set for user contexts, but was somehow forgotten for
kernel contexts, so this patch fixes it.
It could lead to erratic behavior from an AFU when the context is
attached through the kernel API.

Fixes: e31386343f91 ("cxl: Configure PSL for kernel contexts and merge code")
Cc: stable@vger.kernel.org # 4.2+
Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Suggested-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/native.c