Re: [PATCH v2] cxl/hdm: Enforce CFMWS memory type policy at decoder commit time
From: Davidlohr Bueso
Date: Mon Jul 13 2026 - 12:10:26 EST
On Fri, 10 Jul 2026, Mayank Rana wrote:
A CXL Fixed Memory Window Structure (CFMWS) in the ACPI CEDT table
carries a restrictions field that describes the memory types a platform
window supports. cfmws_to_decoder_flags() translates this into
CXL_DECODER_F_TYPE2 (HDM-DB permitted) and CXL_DECODER_F_TYPE3 (HDM-H
permitted) flags on the root decoder.
However, nothing currently prevents a caller from committing an endpoint
or switch decoder whose target_type conflicts with the CFMWS policy:
Hi Mayank - please refer to the latest Back Invalidate patchset (v5)
for properly dealing with this:
https://lore.kernel.org/all/20260615145529.13848-1-dave@xxxxxxxxxxxx/
Thanks,
Davidlohr