cxl: Move QoS class to be calculated from the nearest CPU
authorDave Jiang <dave.jiang@intel.com>
Fri, 8 Mar 2024 21:59:26 +0000 (14:59 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Mar 2024 19:34:11 +0000 (12:34 -0700)
commit6ef83c4e19e9ce20a05127eec8a10911cf3516a7
tree5f96b10dea54c7a94a63ca69a6a072d3a45a7da7
parent863027d40993f13155451bd898bfe4c4e9b7002f
cxl: Move QoS class to be calculated from the nearest CPU

Retrieve the qos_class (QTG ID) using the access coordinates from the
nearest CPU rather than the nearst initiator that may not be a CPU.
This may be the more appropriate number that applications care about.

For most cases, access0 and access1 have the same values.

Link: https://lore.kernel.org/linux-cxl/20240112113023.00006c50@Huawei.com/
Suggested-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20240308220055.2172956-8-dave.jiang@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/cdat.c