diff options
author | Alison Schofield <[email protected]> | 2023-04-18 10:39:08 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2023-04-23 11:46:13 -0700 |
commit | 28a3ae4ff66c622448f5dfb7416bbe753e182eb4 (patch) | |
tree | d6e343fbfcb6a2dc3b7dc9647cb19ee20715b6ff /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | f0832a58639691af575fa28ffaeb657c51f3ca06 (diff) |
cxl/trace: Add an HPA to cxl_poison trace events
When a cxl_poison trace event is reported for a region, the poisoned
Device Physical Address (DPA) can be translated to a Host Physical
Address (HPA) for consumption by user space.
Translate and add the resulting HPA to the cxl_poison trace event.
Follow the device decode logic as defined in the CXL Spec 3.0 Section
8.2.4.19.13.
If no region currently maps the poison, assign ULLONG_MAX to the
cxl_poison event hpa field.
Signed-off-by: Alison Schofield <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Link: https://lore.kernel.org/r/6d3cd726f9042a59902785b0a2cb3ddfb70e0219.1681838292.git.alison.schofield@intel.com
Tested-by: Jonathan Cameron <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions