cxl: Configure PSL for kernel contexts and merge code
authorMichael Neuling <mikey@neuling.org>
Wed, 27 May 2015 06:07:13 +0000 (16:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Jun 2015 03:27:19 +0000 (13:27 +1000)
commit2f663527bd6aa94763aafd3a22332903815fbf81
treeeb812fccbb0268ae99a7ca5153c8dbde54bf7139
parentc358d84b4e57b060e0287d0c614f8f076d725612
cxl: Configure PSL for kernel contexts and merge code

This updates AFU directed and dedicated modes for contexts attached to the
kernel.

The SR (similar to the MSR in the core) calculation is getting
quite complex and is duplicated in AFU directed and dedicated
modes.  This patch also merges this SR calculation for these modes.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/native.c