Re: [PATCH v9 23/27] cxl: add region flag for precluding a device memory to be used for dax

Jonathan Cameron
2025-01-02T15:24:07Z

On Mon, 30 Dec 2024 21:44:41 +0000
alejandro.lucero-palau@amd.com wrote:

> From: Alejandro Lucero <alucerop@amd.com>
>
> By definition a type2 cxl device will use the host managed memory for
> specific functionality, therefore it should not be available to other
> uses. However, a dax interface could be just good enough in some cases.
>
> Add a flag to a cxl region for specifically state to not create a dax
> device. Allow a Type2 driver to set that flag at region creation time.
>
> Signed-off-by: Alejandro Lucero <alucerop@amd.com>
> Reviewed-by: Zhi Wang <zhiw@nvidia.com>

To me this seems a little premature as it will always be set by known
usecases, but meh, if someone else wants it it is indeed harmless.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>