cxl: Store QTG IDs and related info to the CXL memory device context
authorDave Jiang <dave.jiang@intel.com>
Thu, 21 Dec 2023 22:04:11 +0000 (15:04 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 22 Dec 2023 23:31:53 +0000 (15:31 -0800)
commit86557b7edf77d2a3835136c325c8baa6fe803234
tree133420f397d07418788cb829c3efb7a23f14807e
parent7a4f148dd8d518bc1e012aa738b0ed6244959293
cxl: Store QTG IDs and related info to the CXL memory device context

Once the QTG ID _DSM is executed successfully, the QTG ID is retrieved from
the return package. Create a list of entries in the cxl_memdev context and
store the QTG ID as qos_class token and the associated DPA range. This
information can be exposed to user space via sysfs in order to help region
setup for hot-plugged CXL memory devices.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/170319625109.2212653.11872111896220384056.stgit@djiang5-mobl3
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/cdat.c
drivers/cxl/core/mbox.c
drivers/cxl/cxlmem.h