Re: [PATCH v2] cxl/hdm: Enforce CFMWS memory type policy at decoder commit time
Davidlohr Bueso <[email protected]>
| Newsgroups | org.kernel.vger.linux-cxl,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260713160448.wvkpmbldmfciq4a3@offworld> |
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/[email protected]/ Thanks, Davidlohr