]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl: Adjust offset calculation for poison injection
authorDave Jiang <dave.jiang@intel.com>
Fri, 31 Oct 2025 17:32:24 +0000 (10:32 -0700)
committerDave Jiang <dave.jiang@intel.com>
Fri, 7 Nov 2025 16:22:10 +0000 (09:22 -0700)
commitb6cfddd26ec55e865b4715f73e9bbb17a15091ed
tree83f2491a3fe81edd06c9e845c08eaa865da0144c
parent7c3643f204edf1c5edb12b36b34838683ee5f8dc
cxl: Adjust offset calculation for poison injection

The HPA to DPA translation for poison injection assumes that the
base address starts from where the CXL region begins. When the
extended linear cache is active, the offset can be within the DRAM
region. Adjust the offset so that it correctly reflects the offset
within the CXL region.

[ dj: Add fixes tag from Alison ]

Fixes: c3dd67681c70 ("cxl/region: Add inject and clear poison by region offset")
Link: https://patch.msgid.link/20251031173224.3537030-5-dave.jiang@intel.com
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/region.c