]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/misc/cxl/native.c
cxl: Abstract the differences between the PSL and XSL
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Mon, 23 May 2016 17:39:18 +0000 (03:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jun 2016 13:08:54 +0000 (23:08 +1000)
commit6d382616ac2283ed65c7a6a52d05b064488aa8f8
tree1a55bb25f5489b30c0d841b0f76b29c457f82513
parent292841b09648ce7aee5df16ab72581f3b6c2bd7a
cxl: Abstract the differences between the PSL and XSL

The XSL (Translation Service Layer) is a stripped down version of the
PSL (Power Service Layer) used in some cards such as the Mellanox CX4.

Like the PSL, it implements the CAIA architecture, but has a number of
differences, mostly in it's implementation dependent registers. This
adds an ops structure to abstract these differences to bring initial
support for XSL CAPI devices.

The XSL does not implement the optional architected SERR register,
however while it treats it as a reserved register and should work with
no special treatment, attempting to access it will cause the XSL_FEC
(First Error Capture) register to be filled out, preventing it from
capturing any subsequent errors. Therefore, this patch also prevents the
kernel from trying to set up the SERR register so that the FEC register
may still be useful, and to save one interrupt.

The XSL also uses a special DMA cxl mode, which uses a slightly
different init sequence for the CAPP and PHB. The kernel support for
this will be in a future patch once the corresponding support has been
merged into skiboot.

Co-authored-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/cxl.h
drivers/misc/cxl/debugfs.c
drivers/misc/cxl/native.c
drivers/misc/cxl/pci.c