diff options
author | Ben Widawsky <ben.widawsky@intel.com> | 2020-07-31 12:24:17 -0700 |
---|---|---|
committer | Jaxon Haws <jaxon.haws@amd.com> | 2022-09-29 16:01:04 -0500 |
commit | 9535c7aa0f64591428e8c436b9dc4dffebb27665 (patch) | |
tree | e498b2d985f65f647fb9812fc0619c571fed7d40 | |
parent | 6c1382049899e6b77720bc1b0209588a51a5cca2 (diff) | |
download | pciutils-9535c7aa0f64591428e8c436b9dc4dffebb27665.tar.gz |
cxl: Collect all DVSEC Device fields
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Co-authored-by: Jaxon Haws <jaxon.haws@amd.com>
Signed-off-by: Jaxon Haws <jaxon.haws@amd.com>
-rw-r--r-- | lib/header.h | 1 | ||||
-rw-r--r-- | ls-ecaps.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/header.h b/lib/header.h index 525b910..71f7fb0 100644 --- a/lib/header.h +++ b/lib/header.h @@ -1069,6 +1069,7 @@ #define PCI_DVSEC_ID_CXL 0 /* Designated Vendor-Specific ID for Intel CXL */ /* PCIe CXL Designated Vendor-Specific Capabilities, Control, Status */ +#define PCI_CXL_DEV_LEN 0x38 /* CXL Device DVSEC Length */ #define PCI_CXL_CAP 0x0a /* CXL Capability Register */ #define PCI_CXL_CAP_CACHE 0x0001 /* CXL.cache Protocol Support */ #define PCI_CXL_CAP_IO 0x0002 /* CXL.io Protocol Support */ @@ -701,7 +701,7 @@ cap_dvsec_cxl(struct device *d, int id, int where) if (id != 0) return; - if (!config_fetch(d, where + PCI_CXL_CAP, 12)) + if (!config_fetch(d, where + PCI_CXL_CAP, PCI_CXL_DEV_LEN - PCI_CXL_CAP)) return; w = get_conf_word(d, where + PCI_CXL_CAP); |