Skip to content

Commit a4bbb49

Browse files
AlisonSchofielddavejiang
authored andcommitted
cxl/trace: Subtract to find an hpa_alias0 in cxl_poison events
Traces of cxl_poison events include an hpa_alias0 field if the poison address is in a region configured with an ELC, Extended Linear Cache. Since the ELC always comes first in the region, the calculation needs to subtract the ELC size from the calculated HPA address. Fixes: 8c520c5 ("cxl: Add extended linear cache address alias emission for cxl events") Signed-off-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 257c4b0 commit a4bbb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cxl/core/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ TRACE_EVENT(cxl_poison,
10681068
__entry->hpa = cxl_dpa_to_hpa(cxlr, cxlmd,
10691069
__entry->dpa);
10701070
if (__entry->hpa != ULLONG_MAX && cxlr->params.cache_size)
1071-
__entry->hpa_alias0 = __entry->hpa +
1071+
__entry->hpa_alias0 = __entry->hpa -
10721072
cxlr->params.cache_size;
10731073
else
10741074
__entry->hpa_alias0 = ULLONG_MAX;

0 commit comments

Comments
 (0)