]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cxl/region: Factor out interleave granularity setup
authorAlejandro Lucero <alucerop@amd.com>
Sat, 28 Feb 2026 17:36:03 +0000 (17:36 +0000)
committerDave Jiang <dave.jiang@intel.com>
Mon, 16 Mar 2026 23:32:21 +0000 (16:32 -0700)
commit64584273dfb8a1e5fc7d78094ba22a93c204b44e
tree956c911347aa60bf6dac2b5d4afb1f2e7ec9e2c6
parent29f0724c4592a5ab9076e1ff6e4e39f0de60cc9e
cxl/region: Factor out interleave granularity setup

Region creation based on Type3 devices can be triggered from user space
allowing memory combination through interleaving.

In preparation for kernel driven region creation, that is Type2 drivers
triggering region creation backed with its advertised CXL memory, factor
out a common helper from the user-sysfs region setup for interleave
granularity.

Signed-off-by: Alejandro Lucero <alucerop@amd.com>
Reviewed-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Tested-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20260228173603.1125109-4-alejandro.lucero-palau@amd.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/region.c