Re: [PATCH v5 2/7] cxl/core: Rename suspend.c to probe_state.c and remove CONFIG_CXL_SUSPEND

From: dan.j.williams
Date: Tue Jul 22 2025 - 17:44:32 EST


Smita Koralahalli wrote:
> The cxl_mem_active_inc()/dec() and cxl_mem_active() helpers were initially
> introduced to coordinate suspend/resume behavior. However, upcoming
> changes will reuse these helpers to track cxl_mem_probe() activity during
> SOFT RESERVED region handling.
>
> To reflect this broader purpose, rename suspend.c to probe_state.c and
> remove CONFIG_CXL_SUSPEND Kconfig option. These helpers are now always
> built into the CXL core subsystem.
>
> This ensures drivers like cxl_acpi to coordinate with cxl_mem for
> region setup and hotplug handling.

I struggle to see how blocking suspend in the presence of CXL memory has
anything to do with soft-reserve handling? Maybe the story is in a
follow-on patch.