drivers/dax/hmem

ACPI HMAT and CXL soft-reserved memory DAX driver

Exposes "soft-reserved" memory regions — heterogeneous memory described by ACPI HMAT or sitting behind CXL Type-3 memory-expansion devices — as direct-access (DAX) devices that software can map and use. It is the fallback that handles ranges firmware sets aside at boot but which aren't claimed by a more specific CXL region driver, mainly on modern servers with CXL memory expanders.

keep conf=0.89 deploy=low replacement=none subsystem=dax category=memory
89%

recommendation

It should stay in the kernel because the code is actively maintained — patches were still landing in early 2026 to fix real bugs and refine deferred soft-reserved memory registration — and it backs a current, documented boot flow for CXL Type-3 and HMAT memory. Deployments are niche (datacenter and high-end servers), but CXL memory-expansion hardware such as Astera Labs Leo is still sold new in 2025, and no other upstream driver fully covers the soft-reserved fallback role that cxl_dax_region leaves uncovered.

repository signals

3 files
267 source lines
14 commits, 5y
+218 / −115 lines added / removed, 5y
5 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 14 total · active in 8/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 0 commits · +0 −0 2021-06: 0 commits · +0 −0 2021-07: 0 commits · +0 −0 2021-08: 0 commits · +0 −0 2021-09: 0 commits · +0 −0 2021-10: 0 commits · +0 −0 2021-11: 0 commits · +0 −0 2021-12: 0 commits · +0 −0 2022-01: 0 commits · +0 −0 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 0 commits · +0 −0 2022-05: 0 commits · +0 −0 2022-06: 0 commits · +0 −0 2022-07: 0 commits · +0 −0 2022-08: 0 commits · +0 −0 2022-09: 2 commits · +3 −2 2022-10: 0 commits · +0 −0 2022-11: 1 commit · +15 −9 2022-12: 0 commits · +0 −0 2023-01: 0 commits · +0 −0 2023-02: 6 commits · +193 −92 2023-03: 0 commits · +0 −0 2023-04: 0 commits · +0 −0 2023-05: 0 commits · +0 −0 2023-06: 1 commit · +1 −7 2023-07: 0 commits · +0 −0 2023-08: 0 commits · +0 −0 2023-09: 0 commits · +0 −0 2023-10: 0 commits · +0 −0 2023-11: 1 commit · +1 −0 2023-12: 0 commits · +0 −0 2024-01: 0 commits · +0 −0 2024-02: 0 commits · +0 −0 2024-03: 0 commits · +0 −0 2024-04: 0 commits · +0 −0 2024-05: 0 commits · +0 −0 2024-06: 1 commit · +1 −0 2024-07: 0 commits · +0 −0 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 0 commits · +0 −0 2024-11: 0 commits · +0 −0 2024-12: 0 commits · +0 −0 2025-01: 0 commits · +0 −0 2025-02: 0 commits · +0 −0 2025-03: 0 commits · +0 −0 2025-04: 0 commits · +0 −0 2025-05: 0 commits · +0 −0 2025-06: 1 commit · +0 −1 2025-07: 0 commits · +0 −0 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 0 commits · +0 −0 2025-11: 1 commit · +4 −4 2025-12: 0 commits · +0 −0 2026-01: 0 commits · +0 −0 2026-02: 0 commits · +0 −0 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    As of 2026-03-27 the directory is still receiving functional fixes, not just treewide churn ('Fix singleton confusion between dax_hmem_work and hmem devices').

  2. lore.kernel.org

    As of 2026-01-13 there was active development around deferred Soft Reserved registration for hmem rather than removal discussion.

  3. docs.kernel.org

    Kernel documentation says Specific Purpose / Soft Reserved memory is deferred to drivers to manage during boot, which is the operating context for hmem-managed ranges.

  4. docs.kernel.org

    Current kernel CXL documentation describes CXL Type-3 memory exposure through DAX flows and explicitly shows an 'hmem' mode where the dax device is left as daxdev.

  5. asteralabs.com

    CXL memory-expansion hardware remained an actively marketed product family in 2025-era deployments, indicating the underlying use case is not obsolete.

codex reasoning notes (technical)

Not an early-exit case: local code inspection via exec_command shows real platform drivers in hmem.c/device.c. lore_file_timeline on drivers/dax/hmem/device.c showed heavy 2025-2026 activity and no sampled removal thread; cited lore URLs came from the lore_file_timeline tool. Kernel-doc URLs were obtained via web search/open and show hmem/CXL soft-reserved memory remains a current documented flow. Astera Labs product URL was obtained via web search and is deployment evidence that CXL memory expansion hardware is still sold; however this remains a niche server/datacenter path, so deployments_today is low. No single upstream replacement cleanly covers the same fallback role because cxl_dax_region handles configured CXL regions while hmem still covers soft-reserved ranges not claimed there.