diff options
| author | Dan Williams <[email protected]> | 2024-03-13 07:07:36 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2024-03-13 07:07:36 +0000 |
| commit | d5c0078033e2adf30e897d985fd29084ecb56b51 (patch) | |
| tree | 4db9109b51457c17972fa262f1ac1bfc80aad9da /drivers/cxl/acpi.c | |
| parent | lib/firmware_table: Provide buffer length argument to cdat_table_parse() (diff) | |
| parent | cxl/region: Deal with numa nodes not enumerated by SRAT (diff) | |
| download | kernel-d5c0078033e2adf30e897d985fd29084ecb56b51.tar.gz kernel-d5c0078033e2adf30e897d985fd29084ecb56b51.zip | |
Merge branch 'for-6.9/cxl-qos' into for-6.9/cxl
Pick up support for CXL "HMEM reporting" for v6.9, i.e. build an HMAT
from CXL CDAT and PCIe switch information.
Diffstat (limited to 'drivers/cxl/acpi.c')
| -rw-r--r-- | drivers/cxl/acpi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c index 1a3e6aafbdcc..af5cb818f84d 100644 --- a/drivers/cxl/acpi.c +++ b/drivers/cxl/acpi.c @@ -530,13 +530,15 @@ static int get_genport_coordinates(struct device *dev, struct cxl_dport *dport) if (kstrtou32(acpi_device_uid(hb), 0, &uid)) return -EINVAL; - rc = acpi_get_genport_coordinates(uid, &dport->hb_coord); + rc = acpi_get_genport_coordinates(uid, dport->hb_coord); if (rc < 0) return rc; /* Adjust back to picoseconds from nanoseconds */ - dport->hb_coord.read_latency *= 1000; - dport->hb_coord.write_latency *= 1000; + for (int i = 0; i < ACCESS_COORDINATE_MAX; i++) { + dport->hb_coord[i].read_latency *= 1000; + dport->hb_coord[i].write_latency *= 1000; + } return 0; } |
