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)
commite606e035cc7293a3824527d97359711fdda00663
tree161661be9b38a06695c12a5f1ff4c49c99afd711
parent25642e1459ace29f6ce5a171efc8b7b59a52a2d4
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: 2f663527bd6a ("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