mbox series

[RFC,0/2] type2 cxl initialization

Message ID 20250220200041.3891165-1-alejandro.lucero-palau@amd.com
Headers show
Series type2 cxl initialization | expand

Message

Lucero Palau, Alejandro Feb. 20, 2025, 8 p.m. UTC
From: Alejandro Lucero <alucerop@amd.com>

Avoiding to send the full type2 support patchset until there is an
agreement about how to do the cxl initialization from accel drivers.

Using the idea from fwctl for embedding cxl_dev_state in a private
accel driver struct and a macro helping for the allocation and
initialization of such struct.

The main problem is the amount of internal cxl structs which need to be
public for accel drivers which we tried to avoid since v1 of the type2
patchset history.

Alejandro Lucero (2):
  cxl: add type2 device basic support
  sfc: add cxl support

 drivers/cxl/core/mbox.c               |   3 +-
 drivers/cxl/core/memdev.c             |  25 +++
 drivers/cxl/core/pci.c                |   1 +
 drivers/cxl/core/regs.c               |   1 +
 drivers/cxl/cxl.h                     |  98 +----------
 drivers/cxl/cxlmem.h                  | 108 +------------
 drivers/cxl/cxlpci.h                  |  21 ---
 drivers/cxl/pci.c                     |  17 +-
 drivers/net/ethernet/sfc/Kconfig      |   6 +
 drivers/net/ethernet/sfc/Makefile     |   1 +
 drivers/net/ethernet/sfc/efx.c        |  15 +-
 drivers/net/ethernet/sfc/efx_cxl.c    |  53 ++++++
 drivers/net/ethernet/sfc/efx_cxl.h    |  40 +++++
 drivers/net/ethernet/sfc/net_driver.h |  10 ++
 include/cxl/cxl.h                     | 225 ++++++++++++++++++++++++++
 include/cxl/pci.h                     |  23 +++
 16 files changed, 417 insertions(+), 230 deletions(-)
 create mode 100644 drivers/net/ethernet/sfc/efx_cxl.c
 create mode 100644 drivers/net/ethernet/sfc/efx_cxl.h
 create mode 100644 include/cxl/cxl.h
 create mode 100644 include/cxl/pci.h


base-commit: d5d2106e2118c4e09fef131d9889f79559b95bfc