]> 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)
commit7911fa2ee2ad574d1ae68540e91c94a9a62955b0
tree161661be9b38a06695c12a5f1ff4c49c99afd711
parent88108ea489e032f6e06c3cfb9ae2cc49fe582608
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: a8abb0059eac ("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