mbox series

[v2,00/12] Device memory prep

Message ID 168679257511.3436160.9707734364766526576.stgit@dwillia2-xfh.jf.intel.com
Headers show
Series Device memory prep | expand

Message

Dan Williams June 15, 2023, 1:29 a.m. UTC
Changes since v1 [1]:
- Drop the region API changes to focus on the cleanups as a standalone
  set
- Added "cxl: Remove leftover attribute documentation..." (Jonathan)
- Added "cxl: Fix kernel-doc warnings" due as an additional cleanup
  prompted by the above
- Undo cxl_get_gsl() clang formatting (Jonathan)
- Clarified that the need for empty strings in the sysfs capacity
  attributes can be deprecated over time.
- s/expectation/requirement/ in CXL_DEVTYPE_DEVMEM kernel-doc (Jonathan)
- s/HOSTMEM/HOSTONLYMEM/ throughout (Jonathan)
- Fix initialization of the default decoder mode, and clarify that the
  default may need to change if, for example, non-class code HDM-H
  devices show up. (Jonathan)
- Fixup cxl_probe_link() to do actual 68B/256B Flit mode detection
  (Jonathan)
- Remove the previous 256B Flit mode detection

[1]: http://lore.kernel.org/r/168592149709.1948938.8663425987110396027.stgit@dwillia2-xfh.jf.intel.com

---

v1 of this patchset included reworks of the region creation APIs to
demonstrate how and accelerator could reuse CXL core APIs to establish a
host-managed device-memory region. These miscellaneous cleanups that
preceded those reworks are now broken out into their own set.

---

Dan Williams (12):
      cxl/regs: Clarify when a 'struct cxl_register_map' is input vs output
      tools/testing/cxl: Remove unused @cxlds argument
      cxl: Fix kernel-doc warnings
      cxl: Remove leftover attribute documentation in 'struct cxl_dev_state'
      cxl/mbox: Move mailbox related driver state to its own data structure
      cxl/memdev: Make mailbox functionality optional
      cxl/port: Rename CXL_DECODER_{EXPANDER, ACCELERATOR} => {HOSTONLYMEM, DEVMEM}
      cxl/hdm: Default CXL_DEVTYPE_DEVMEM decoders to CXL_DECODER_DEVMEM
      cxl/region: Manage decoder target_type at decoder-attach time
      cxl/pci: Unconditionally unmask 256B Flit errors
      cxl/port: Enumerate cxl link capabilities
      cxl/memdev: Formalize endpoint port linkage


 drivers/cxl/acpi.c           |    2 
 drivers/cxl/core/hdm.c       |   44 +++++--
 drivers/cxl/core/mbox.c      |  276 ++++++++++++++++++++++--------------------
 drivers/cxl/core/memdev.c    |   52 +++++---
 drivers/cxl/core/pci.c       |  113 +++++++++++++++++
 drivers/cxl/core/pmem.c      |    2 
 drivers/cxl/core/port.c      |   17 ++-
 drivers/cxl/core/region.c    |   14 ++
 drivers/cxl/core/regs.c      |    8 +
 drivers/cxl/cxl.h            |   17 ++-
 drivers/cxl/cxlmem.h         |  114 +++++++++++------
 drivers/cxl/cxlpci.h         |   24 +++-
 drivers/cxl/mem.c            |   10 +-
 drivers/cxl/pci.c            |  132 ++++++++++----------
 drivers/cxl/pmem.c           |   35 +++--
 drivers/cxl/port.c           |    5 +
 drivers/cxl/security.c       |   24 ++--
 tools/testing/cxl/test/cxl.c |    6 -
 tools/testing/cxl/test/mem.c |  129 ++++++++++----------
 19 files changed, 629 insertions(+), 395 deletions(-)

base-commit: 9561de3a55bed6bdd44a12820ba81ec416e705a7