mbox series

[0/4] Add DPA->HPA translation to dram & general_media

Message ID cover.1711598777.git.alison.schofield@intel.com
Headers show
Series Add DPA->HPA translation to dram & general_media | expand

Message

Alison Schofield March 28, 2024, 4:36 a.m. UTC
From: Alison Schofield <alison.schofield@intel.com>

Add HPA translations to CXL events: cxl_dram and cxl_general_media

Patches 1 & 2:
Before adding the new support, do some housekeeping and move related
helpers to the region driver because there is no looking up region
related info without CONFIG_CXL_REGION.

Patch 3:
The new functionality is introduced - cxl_dram & cxl_general_media
events will lookup and log the DPA->HPA translation along with the
region name and region uuid.

Patch 4:
Apply the new lookup helpers to the existing cxl_poison event, so it
can be the same, share in the new goodness, and also tidy up its
implementation.

An update to the cxl_event unit test is posted separately.


Alison Schofield (4):
  cxl/region: Move cxl_dpa_to_region() work to the region driver
  cxl/region: Move cxl_trace_hpa() work to the region driver
  cxl/core: Add region info to cxl_general_media and cxl_dram events
  cxl/core: Remove cxlr dependency from cxl_poison trace events

 drivers/cxl/core/core.h   |  20 +++++
 drivers/cxl/core/mbox.c   |  22 ++++--
 drivers/cxl/core/memdev.c |  52 +------------
 drivers/cxl/core/region.c | 151 +++++++++++++++++++++++++++++++++++++-
 drivers/cxl/core/trace.c  |  91 -----------------------
 drivers/cxl/core/trace.h  |  76 +++++++++++++------
 drivers/cxl/cxlmem.h      |   3 +-
 7 files changed, 239 insertions(+), 176 deletions(-)


base-commit: 4cece764965020c22cff7665b18a012006359095