summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlison Schofield <alison.schofield@intel.com>2026-01-15 20:58:37 -0800
committerDave Jiang <dave.jiang@intel.com>2026-01-22 16:58:14 -0700
commitb51792fd9168e581e51be98e22df5f79454e22de (patch)
tree5b510aa783b98cbb0db033ee6e9a6826ae45bd0f /scripts
parente639055f1f30311db91cafb36e408cc727c7d445 (diff)
cxl/region: Translate HPA to DPA and memdev in unaligned regions
The CXL driver supports an expert user debugfs interface to inject and clear poison by a region offset. That feature requires translating a HPA (the region address) to a DPA and a memdev to perform the poison operation. Unaligned regions do not have an algebraically invertible mapping from HPA to DPA due to the region offset skew. The region base is not aligned to a full interleave. Add a helper to perform the unaligned translations that first calculates the DPA offset and then tests it against each candidate endpoint decoder. Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Signed-off-by: Alison Schofield <alison.schofield@intel.com> Link: https://patch.msgid.link/f338b7aff7e4574fcc525b1a0d4f09786bfb6489.1768538962.git.alison.schofield@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions