2021-02-17 12:09:50 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
menuconfig CXL_BUS
|
|
|
|
tristate "CXL (Compute Express Link) Devices Support"
|
|
|
|
depends on PCI
|
|
|
|
help
|
|
|
|
CXL is a bus that is electrically compatible with PCI Express, but
|
|
|
|
layers three protocols on that signalling (CXL.io, CXL.cache, and
|
|
|
|
CXL.mem). The CXL.cache protocol allows devices to hold cachelines
|
|
|
|
locally, the CXL.mem protocol allows devices to be fully coherent
|
|
|
|
memory targets, the CXL.io protocol is equivalent to PCI Express.
|
|
|
|
Say 'y' to enable support for the configuration and management of
|
|
|
|
devices supporting these protocols.
|
|
|
|
|
|
|
|
if CXL_BUS
|
|
|
|
|
2022-01-24 08:28:44 +08:00
|
|
|
config CXL_PCI
|
|
|
|
tristate "PCI manageability"
|
2021-06-10 00:01:41 +08:00
|
|
|
default CXL_BUS
|
2021-02-17 12:09:50 +08:00
|
|
|
help
|
2022-01-24 08:28:44 +08:00
|
|
|
The CXL specification defines a "CXL memory device" sub-class in the
|
|
|
|
PCI "memory controller" base class of devices. Device's identified by
|
|
|
|
this class code provide support for volatile and / or persistent
|
|
|
|
memory to be mapped into the system address map (Host-managed Device
|
|
|
|
Memory (HDM)).
|
2021-02-17 12:09:50 +08:00
|
|
|
|
2022-01-24 08:28:44 +08:00
|
|
|
Say 'y/m' to enable a driver that will attach to CXL memory expander
|
|
|
|
devices enumerated by the memory device class code for configuration
|
|
|
|
and management primarily via the mailbox interface. See Chapter 2.3
|
|
|
|
Type 3 CXL Device in the CXL 2.0 specification for more details.
|
2021-02-17 12:09:50 +08:00
|
|
|
|
|
|
|
If unsure say 'm'.
|
2021-02-17 12:09:54 +08:00
|
|
|
|
|
|
|
config CXL_MEM_RAW_COMMANDS
|
|
|
|
bool "RAW Command Interface for Memory Devices"
|
2022-01-24 08:28:44 +08:00
|
|
|
depends on CXL_PCI
|
2021-02-17 12:09:54 +08:00
|
|
|
help
|
|
|
|
Enable CXL RAW command interface.
|
|
|
|
|
|
|
|
The CXL driver ioctl interface may assign a kernel ioctl command
|
|
|
|
number for each specification defined opcode. At any given point in
|
|
|
|
time the number of opcodes that the specification defines and a device
|
|
|
|
may implement may exceed the kernel's set of associated ioctl function
|
|
|
|
numbers. The mismatch is either by omission, specification is too new,
|
|
|
|
or by design. When prototyping new hardware, or developing / debugging
|
|
|
|
the driver it is useful to be able to submit any possible command to
|
|
|
|
the hardware, even commands that may crash the kernel due to their
|
|
|
|
potential impact to memory currently in use by the kernel.
|
|
|
|
|
|
|
|
If developing CXL hardware or the driver say Y, otherwise say N.
|
2021-06-10 00:01:35 +08:00
|
|
|
|
|
|
|
config CXL_ACPI
|
|
|
|
tristate "CXL ACPI: Platform Support"
|
|
|
|
depends on ACPI
|
2021-06-10 00:01:41 +08:00
|
|
|
default CXL_BUS
|
2021-10-30 03:51:48 +08:00
|
|
|
select ACPI_TABLE_LIB
|
2021-06-10 00:01:35 +08:00
|
|
|
help
|
|
|
|
Enable support for host managed device memory (HDM) resources
|
|
|
|
published by a platform's ACPI CXL memory layout description. See
|
|
|
|
Chapter 9.14.1 CXL Early Discovery Table (CEDT) in the CXL 2.0
|
|
|
|
specification, and CXL Fixed Memory Window Structures (CEDT.CFMWS)
|
|
|
|
(https://www.computeexpresslink.org/spec-landing). The CXL core
|
|
|
|
consumes these resource to publish the root of a cxl_port decode
|
|
|
|
hierarchy to map regions that represent System RAM, or Persistent
|
|
|
|
Memory regions to be managed by LIBNVDIMM.
|
|
|
|
|
2021-06-16 07:18:17 +08:00
|
|
|
If unsure say 'm'.
|
|
|
|
|
|
|
|
config CXL_PMEM
|
|
|
|
tristate "CXL PMEM: Persistent Memory Support"
|
|
|
|
depends on LIBNVDIMM
|
|
|
|
default CXL_BUS
|
|
|
|
help
|
|
|
|
In addition to typical memory resources a platform may also advertise
|
|
|
|
support for persistent memory attached via CXL. This support is
|
|
|
|
managed via a bridge driver from CXL to the LIBNVDIMM system
|
|
|
|
subsystem. Say 'y/m' to enable support for enumerating and
|
|
|
|
provisioning the persistent memory capacity of CXL memory expanders.
|
|
|
|
|
2021-06-10 00:01:35 +08:00
|
|
|
If unsure say 'm'.
|
2022-02-02 05:07:51 +08:00
|
|
|
|
|
|
|
config CXL_PORT
|
|
|
|
default CXL_BUS
|
|
|
|
tristate
|
|
|
|
|
2021-02-17 12:09:50 +08:00
|
|
|
endif
|