mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
6f7f0b3df6
This patch does two things. Firstly it presents the Accelerator Function Unit (AFUs) behind the POWER Service Layer (PSL) as PCI devices on a virtual PCI Host Bridge (vPHB). This in in addition to the PSL being a PCI device itself. As part of the Coherent Accelerator Interface Architecture (CAIA) AFUs can provide an AFU configuration. This AFU configuration recored is architected to be the same as a PCI config space. This patch sets discovers the AFU configuration records, provides AFU config space read/write functions to these configuration records. It then enumerates the PCI bus. It also hooks in PCI ops where appropriate. It also destroys the vPHB when the physical card is removed. Secondly, it add an in kernel API for AFU to use CXL. AFUs must present a driver that firstly binds as a PCI device. This PCI device can then be using to do CXL specific operations (that can't sit in the PCI ops) using this API. 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>
9 lines
291 B
Makefile
9 lines
291 B
Makefile
cxl-y += main.o file.o irq.o fault.o native.o
|
|
cxl-y += context.o sysfs.o debugfs.o pci.o trace.o
|
|
cxl-y += vphb.o api.o
|
|
obj-$(CONFIG_CXL) += cxl.o
|
|
obj-$(CONFIG_CXL_BASE) += base.o
|
|
|
|
# For tracepoints to include our trace.h from tracepoint infrastructure:
|
|
CFLAGS_trace.o := -I$(src)
|