mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
2042d11cb5
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:
|
||
---|---|---|
.. | ||
cdat.c | ||
core.h | ||
hdm.c | ||
Makefile | ||
mbox.c | ||
memdev.c | ||
pci.c | ||
pmem.c | ||
pmu.c | ||
port.c | ||
region.c | ||
regs.c | ||
suspend.c | ||
trace.c | ||
trace.h |