]> git.baikalelectronics.ru Git - kernel.git/commit
cxl: Export library to support IBM XSL
authorChristophe Lombard <clombard@linux.vnet.ibm.com>
Thu, 22 Jun 2017 13:07:27 +0000 (15:07 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 3 Jul 2017 13:07:03 +0000 (23:07 +1000)
commitf4e64f9c95c20a4f18c78ec1a47e2f5b34c5b88a
treeeb6c13f48f53960574756c5fc7edfe0519f9e443
parent29a38d6e8d8a799e972d19695f399bfb9a54d48c
cxl: Export library to support IBM XSL

This patch exports a in-kernel 'library' API which can be called by
other drivers to help interacting with an IBM XSL on a POWER9 system.

The XSL (Translation Service Layer) is a stripped down version of the
PSL (Power Service Layer) used in some cards such as the Mellanox CX5.
Like the PSL, it implements the CAIA architecture, but has a number
of differences, mostly in it's implementation dependent registers.

The XSL also uses a special DMA cxl mode, which uses a slightly
different init sequence for the CAPP and PHB.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h
drivers/misc/cxl/Kconfig
drivers/misc/cxl/Makefile
drivers/misc/cxl/cxl.h
drivers/misc/cxl/cxllib.c [new file with mode: 0644]
drivers/misc/cxl/fault.c
drivers/misc/cxl/native.c
drivers/misc/cxl/pci.c
include/misc/cxllib.h [new file with mode: 0644]