cxl: Export QTG ids from CFMWS to sysfs as qos_class attribute
authorDave Jiang <dave.jiang@intel.com>
Thu, 12 Oct 2023 18:53:37 +0000 (11:53 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 28 Oct 2023 03:48:02 +0000 (20:48 -0700)
commit529c0a44045e59c3c067f1f2c5887759644c50ae
treefacc3ca56142392addc70ff811da6537942d0211
parent178e1ea6a68f12967ee0e9afc4d79a2939acd43c
cxl: Export QTG ids from CFMWS to sysfs as qos_class attribute

Export the QoS Throttling Group ID from the CXL Fixed Memory Window
Structure (CFMWS) under the root decoder sysfs attributes as qos_class.

CXL rev3.0 9.17.1.3 CXL Fixed Memory Window Structure (CFMWS)

cxl cli will use this id to match with the _DSM retrieved id for a
hot-plugged CXL memory device DPA memory range to make sure that the
DPA range is under the right CFMWS window.

Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/169713681699.2205276.14475306324720093079.stgit@djiang5-mobl3
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/ABI/testing/sysfs-bus-cxl
drivers/cxl/acpi.c
drivers/cxl/core/port.c
drivers/cxl/cxl.h