xref: /linux/drivers/cxl/Kconfig (revision 8dd2bc0f8e02d39bd80851ca787bcbdb7d495e69)
14cdadfd5SDan Williams# SPDX-License-Identifier: GPL-2.0-only
24cdadfd5SDan Williamsmenuconfig CXL_BUS
34cdadfd5SDan Williams	tristate "CXL (Compute Express Link) Devices Support"
44cdadfd5SDan Williams	depends on PCI
54cdadfd5SDan Williams	help
64cdadfd5SDan Williams	  CXL is a bus that is electrically compatible with PCI Express, but
74cdadfd5SDan Williams	  layers three protocols on that signalling (CXL.io, CXL.cache, and
84cdadfd5SDan Williams	  CXL.mem). The CXL.cache protocol allows devices to hold cachelines
94cdadfd5SDan Williams	  locally, the CXL.mem protocol allows devices to be fully coherent
104cdadfd5SDan Williams	  memory targets, the CXL.io protocol is equivalent to PCI Express.
114cdadfd5SDan Williams	  Say 'y' to enable support for the configuration and management of
124cdadfd5SDan Williams	  devices supporting these protocols.
134cdadfd5SDan Williams
144cdadfd5SDan Williamsif CXL_BUS
154cdadfd5SDan Williams
1668cdd3d2SBen Widawskyconfig CXL_PCI
1768cdd3d2SBen Widawsky	tristate "PCI manageability"
183feaa2d3SDan Williams	default CXL_BUS
194cdadfd5SDan Williams	help
2068cdd3d2SBen Widawsky	  The CXL specification defines a "CXL memory device" sub-class in the
2168cdd3d2SBen Widawsky	  PCI "memory controller" base class of devices. Device's identified by
2268cdd3d2SBen Widawsky	  this class code provide support for volatile and / or persistent
2368cdd3d2SBen Widawsky	  memory to be mapped into the system address map (Host-managed Device
2468cdd3d2SBen Widawsky	  Memory (HDM)).
254cdadfd5SDan Williams
2668cdd3d2SBen Widawsky	  Say 'y/m' to enable a driver that will attach to CXL memory expander
2768cdd3d2SBen Widawsky	  devices enumerated by the memory device class code for configuration
2868cdd3d2SBen Widawsky	  and management primarily via the mailbox interface. See Chapter 2.3
2968cdd3d2SBen Widawsky	  Type 3 CXL Device in the CXL 2.0 specification for more details.
304cdadfd5SDan Williams
314cdadfd5SDan Williams	  If unsure say 'm'.
3213237183SBen Widawsky
3313237183SBen Widawskyconfig CXL_MEM_RAW_COMMANDS
3413237183SBen Widawsky	bool "RAW Command Interface for Memory Devices"
3568cdd3d2SBen Widawsky	depends on CXL_PCI
3613237183SBen Widawsky	help
3713237183SBen Widawsky	  Enable CXL RAW command interface.
3813237183SBen Widawsky
3913237183SBen Widawsky	  The CXL driver ioctl interface may assign a kernel ioctl command
4013237183SBen Widawsky	  number for each specification defined opcode. At any given point in
4113237183SBen Widawsky	  time the number of opcodes that the specification defines and a device
4213237183SBen Widawsky	  may implement may exceed the kernel's set of associated ioctl function
4313237183SBen Widawsky	  numbers. The mismatch is either by omission, specification is too new,
4413237183SBen Widawsky	  or by design. When prototyping new hardware, or developing / debugging
4513237183SBen Widawsky	  the driver it is useful to be able to submit any possible command to
4613237183SBen Widawsky	  the hardware, even commands that may crash the kernel due to their
4713237183SBen Widawsky	  potential impact to memory currently in use by the kernel.
4813237183SBen Widawsky
4913237183SBen Widawsky	  If developing CXL hardware or the driver say Y, otherwise say N.
504812be97SDan Williams
514812be97SDan Williamsconfig CXL_ACPI
524812be97SDan Williams	tristate "CXL ACPI: Platform Support"
534812be97SDan Williams	depends on ACPI
543feaa2d3SDan Williams	default CXL_BUS
55f4ce1f76SDan Williams	select ACPI_TABLE_LIB
564812be97SDan Williams	help
574812be97SDan Williams	  Enable support for host managed device memory (HDM) resources
584812be97SDan Williams	  published by a platform's ACPI CXL memory layout description.  See
594812be97SDan Williams	  Chapter 9.14.1 CXL Early Discovery Table (CEDT) in the CXL 2.0
604812be97SDan Williams	  specification, and CXL Fixed Memory Window Structures (CEDT.CFMWS)
614812be97SDan Williams	  (https://www.computeexpresslink.org/spec-landing). The CXL core
624812be97SDan Williams	  consumes these resource to publish the root of a cxl_port decode
634812be97SDan Williams	  hierarchy to map regions that represent System RAM, or Persistent
644812be97SDan Williams	  Memory regions to be managed by LIBNVDIMM.
654812be97SDan Williams
664812be97SDan Williams	  If unsure say 'm'.
678fdcb170SDan Williams
688fdcb170SDan Williamsconfig CXL_PMEM
698fdcb170SDan Williams	tristate "CXL PMEM: Persistent Memory Support"
708fdcb170SDan Williams	depends on LIBNVDIMM
718fdcb170SDan Williams	default CXL_BUS
728fdcb170SDan Williams	help
738fdcb170SDan Williams	  In addition to typical memory resources a platform may also advertise
748fdcb170SDan Williams	  support for persistent memory attached via CXL. This support is
758fdcb170SDan Williams	  managed via a bridge driver from CXL to the LIBNVDIMM system
768fdcb170SDan Williams	  subsystem. Say 'y/m' to enable support for enumerating and
778fdcb170SDan Williams	  provisioning the persistent memory capacity of CXL memory expanders.
788fdcb170SDan Williams
798fdcb170SDan Williams	  If unsure say 'm'.
8054cdbf84SBen Widawsky
81*8dd2bc0fSBen Widawskyconfig CXL_MEM
82*8dd2bc0fSBen Widawsky	tristate "CXL: Memory Expansion"
83*8dd2bc0fSBen Widawsky	depends on CXL_PCI
84*8dd2bc0fSBen Widawsky	default CXL_BUS
85*8dd2bc0fSBen Widawsky	help
86*8dd2bc0fSBen Widawsky	  The CXL.mem protocol allows a device to act as a provider of "System
87*8dd2bc0fSBen Widawsky	  RAM" and/or "Persistent Memory" that is fully coherent as if the
88*8dd2bc0fSBen Widawsky	  memory were attached to the typical CPU memory controller. This is
89*8dd2bc0fSBen Widawsky	  known as HDM "Host-managed Device Memory".
90*8dd2bc0fSBen Widawsky
91*8dd2bc0fSBen Widawsky	  Say 'y/m' to enable a driver that will attach to CXL.mem devices for
92*8dd2bc0fSBen Widawsky	  memory expansion and control of HDM. See Chapter 9.13 in the CXL 2.0
93*8dd2bc0fSBen Widawsky	  specification for a detailed description of HDM.
94*8dd2bc0fSBen Widawsky
95*8dd2bc0fSBen Widawsky	  If unsure say 'm'.
96*8dd2bc0fSBen Widawsky
9754cdbf84SBen Widawskyconfig CXL_PORT
9854cdbf84SBen Widawsky	default CXL_BUS
9954cdbf84SBen Widawsky	tristate
10054cdbf84SBen Widawsky
1014cdadfd5SDan Williamsendif
102