]> git.baikalelectronics.ru Git - kernel.git/commit
cxl: Add support for using the kernel API with a real PHB
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 13 Jul 2016 21:17:07 +0000 (07:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Jul 2016 10:26:56 +0000 (20:26 +1000)
commit17efddf563144117b910511a0a026e4a2290c0d9
tree5862178ce957bc4cdeda182221129f044d67d30d
parentf071788a0c6c3b66d6d3cf884613bb16078d87ac
cxl: Add support for using the kernel API with a real PHB

This hooks up support for using the kernel API with a real PHB. After
the AFU initialisation has completed it calls into the PHB code to pass
it the AFU that will be used by other peer physical functions on the
adapter.

The cxl_pci_to_afu API is extended to work with peer PCI devices,
retrieving the peer AFU from the PHB. This API may also now return an
error if it is called on a PCI device that is not associated with either
a cxl vPHB or a peer PCI device to an AFU, and this error is propagated
down.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/api.c
drivers/misc/cxl/pci.c
drivers/misc/cxl/vphb.c