Messages in this thread | | | From | alison.schofield@intel ... | Subject | [PATCH 0/3] CXL Poison List Retrieval & Tracing | Date | Tue, 14 Jun 2022 17:10:25 -0700 |
| |
From: Alison Schofield <alison.schofield@intel.com>
Introducing the first piece of support for CXL Media Errors, offering the ability to retrieve a devices poison list and store the returned error records as kernel trace events.
The handling of the poison list is guided by the CXL 2.0 Spec Section 8.2.9.5.4.1. [1] The usage of Trace Events to store the Media Error records is a first look at the proposed handling of CXL ARS events.
Example command line usage:
$ trace-cmd record -e cxl_poison_list $ echo 1 > /sys/bus/cxl/devices/mem1/get_poison $ trace-cmd report trace.dat
cxl_poison_list: memdev: mem3 source EXTERNAL start 0x41 length 0x2 cxl_poison_list: memdev: mem3 source INTERNAL start 0xc2 length 0x3 cxl_poison_list: memdev: mem3 source INJECTED start 0x183 length 0x4 cxl_poison_list: memdev: mem3 source INVALID start 0x284 length 0x5 cxl_poison_list: memdev: mem3 source VENDOR start 0x707 length 0x8
[1]: https://www.computeexpresslink.org/download-the-specification
Alison Schofield (3): trace, cxl: Introduce a TRACE_EVENT for CXL Poison Records cxl/mbox: Add GET_POISON_LIST mailbox command support cxl/core: Add sysfs attribute get_poison for list retrieval
Documentation/ABI/testing/sysfs-bus-cxl | 13 +++++ drivers/cxl/cxlmem.h | 43 ++++++++++++++ include/trace/events/cxl.h | 60 ++++++++++++++++++++ drivers/cxl/core/mbox.c | 75 +++++++++++++++++++++++++ drivers/cxl/core/memdev.c | 32 +++++++++++ 5 files changed, 223 insertions(+) create mode 100644 include/trace/events/cxl.h
base-commit: 2263e9ed65887cc7c6e977f372596199d2c9f4af -- 2.31.1
| |