]> Gentwo Git Trees - linux/.git/commit
cxl/trace: Subtract to find an hpa_alias0 in cxl_poison events
authorAlison Schofield <alison.schofield@intel.com>
Tue, 14 Oct 2025 21:38:49 +0000 (14:38 -0700)
committerDave Jiang <dave.jiang@intel.com>
Tue, 14 Oct 2025 21:48:14 +0000 (14:48 -0700)
commita4bbb493a3247ef32f6191fd8b2a0657139f8e08
treea8aeab8a314c4b8e117bf5f83d215a4b4d8595a6
parent257c4b03a2f7d8c15f79c79b09a561af9734f6c4
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: 8c520c5f1e76 ("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>
drivers/cxl/core/trace.h