Re: [PATCH v3 4/4] cxl/dax: Delay consumption of SOFT RESERVE resources
From: Jonathan Cameron
Date: Fri Apr 04 2025 - 09:40:02 EST
On Thu, 3 Apr 2025 13:33:15 -0500
Terry Bowman <terry.bowman@xxxxxxx> wrote:
> From: Nathan Fontenot <nathan.fontenot@xxxxxxx>
>
> The dax hmem device initialization will consume any iomem
> SOFT RESERVE resources prior to CXL region creation. To allow
> for the CXL driver to complete region creation and trim any
> SOFT RESERVE resources before the dax driver consumes them
> we need to delay the dax driver's search for SOFT RESERVEs.
>
> To do this the dax driver hmem device initialization code
> skips the walk of the iomem resource tree if the CXL ACPI
> driver is enabled. This allows the CXL driver to complete
> region creation and trim any SOFT RESERVES. Once the CXL
> driver completes this, the CXL driver then registers any
> remaining SOFT RESERVE resources with the dax hmem driver.
>
> Signed-off-by: Nathan Fontenot <nathan.fontenot@xxxxxxx>
> Signed-off-by: Terry Bowman <terry.bowman@xxxxxxx>
Looks fine to me, but I'm not feeling confident enough of
this area of the kernel to give a tag.
Jonathan