mbox series

[0/3] cxl: Add support to report region access coordinates to numa nodes

Message ID 170199184936.3543815.17537965163543815359.stgit@djiang5-mobl3
Headers show
Series cxl: Add support to report region access coordinates to numa nodes | expand

Message

Dave Jiang Dec. 7, 2023, 11:31 p.m. UTC
This series adds support for computing the performance data of a CXL region
and also updates the performance data to the NUMA node. The series depends on
the posted QTG ID support series [1].

CXL memory devices already attached before boot are enumerated by the BIOS.
The SRAT and HMAT tables are properly setup to including memory regions
enumerated from those CXL memory devices. For regions not programmed or a
hot-plugged CXL memory device, the BIOS does not have the relevant
information and the performance data has to be caluclated by the driver
post region assembly.

Recall from [1] that the performance data for the ranges of a CXL memory device
is computed and cached. A CXL memory region can be backed by one or more
devices. Thus the performance data would be the aggregated bandwidth of all
devices that back a region and the worst latency out of all devices backing
the region.

[1]: https://lore.kernel.org/linux-cxl/170198976423.3522351.8359845516235306693.stgit@djiang5-mobl3/T/#t

---

Dave Jiang (3):
      cxl/region: Calculate performance data for a region
      cxl/region: Add sysfs attribute for locality attributes of CXL regions
      cxl: Add memory hotplug notifier for cxl region


 Documentation/ABI/testing/sysfs-bus-cxl |  40 ++++++
 drivers/base/node.c                     |   1 +
 drivers/cxl/core/region.c               | 162 ++++++++++++++++++++++++
 drivers/cxl/cxl.h                       |   3 +
 4 files changed, 206 insertions(+)