diff options
author | Alison Schofield <[email protected]> | 2024-04-30 10:28:03 -0700 |
---|---|---|
committer | Dave Jiang <[email protected]> | 2024-04-30 12:24:26 -0700 |
commit | 2042d11cb57b7e0cbda7910e5ff80e9e8bf0ae17 (patch) | |
tree | f363227c3342e114b23a8f9837c3b3f44f8e826a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e67572cd2204894179d89bd7b984072f19313b03 (diff) |
cxl/trace: Correct DPA field masks for general_media & dram events
The length of Physical Address in General Media and DRAM event
records is 64-bit, so the field mask for extracting the DPA should
be 64-bit also, otherwise the trace event reports DPA's with the
upper 32 bits of a DPA address masked off. If users do DPA-to-HPA
translations this could lead to incorrect page retirement decisions.
Use GENMASK_ULL() for CXL_DPA_MASK to get all the DPA address bits.
Tidy up CXL_DPA_FLAGS_MASK by using GENMASK() to only mask the exact
flag bits.
These bits are defined as part of the event record physical address
descriptions of General Media and DRAM events in CXL Spec 3.1
Section 8.2.9.2 Events.
Fixes: d54a531a430b ("cxl/mem: Trace General Media Event Record")
Co-developed-by: Shiyang Ruan <[email protected]>
Signed-off-by: Shiyang Ruan <[email protected]>
Signed-off-by: Alison Schofield <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/2867fc43c57720a4a15a3179431829b8dbd2dc16.1714496730.git.alison.schofield@intel.com
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions