Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dax/hmem: Gate Soft Reserved deferral on DEV_DAX_CXL

Replace IS_ENABLED(CONFIG_CXL_REGION) with IS_ENABLED(CONFIG_DEV_DAX_CXL)
so that HMEM only defers Soft Reserved ranges when CXL DAX support is
enabled. This makes the coordination between HMEM and the CXL stack more
precise and prevents deferral in unrelated CXL configurations.

Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20260322195343.206900-5-Smita.KoralahalliChannabasappa@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>

authored by

Dan Williams and committed by
Dave Jiang
edfcf1e2 7b4bcaad

+1 -1
+1 -1
drivers/dax/hmem/hmem.c
··· 119 119 static int hmem_register_device(struct device *host, int target_nid, 120 120 const struct resource *res) 121 121 { 122 - if (IS_ENABLED(CONFIG_CXL_REGION) && 122 + if (IS_ENABLED(CONFIG_DEV_DAX_CXL) && 123 123 region_intersects(res->start, resource_size(res), IORESOURCE_MEM, 124 124 IORES_DESC_CXL) != REGION_DISJOINT) { 125 125 dev_dbg(host, "deferring range to CXL: %pr\n", res);