Re: [PATCH v2] cxl/hdm: Enforce CFMWS memory type policy at decoder commit time

From: Mayank Rana

Date: Wed Jul 15 2026 - 18:38:10 EST


Hi Davidlohr

Thank you for your review and suggestion.

On 7/13/2026 9:04 AM, Davidlohr Bueso wrote:
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/
Ok. I will review propose changes, and rework upon this fix.

Regards,
Mayank

Thanks,
Davidlohr