diff options
author | Dan Williams <dan.j.williams@intel.com> | 2022-04-25 21:43:44 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-07-25 22:18:06 +0300 |
commit | 23a22cd1c98be518774fe7f7e8a5203af050525a (patch) | |
tree | 023f45987cce6345b543ac60ecdb32654735a1db /drivers/cxl/Kconfig | |
parent | 80d10a6cee05029cae9d9d6e8ddb799ea6d01e0c (diff) | |
download | linux-23a22cd1c98be518774fe7f7e8a5203af050525a.tar.xz |
cxl/region: Allocate HPA capacity to regions
After a region's interleave parameters (ways and granularity) are set,
add a way for regions to allocate HPA (host physical address space) from
the free capacity in their parent root-decoder. The allocator for this
capacity reuses the 'struct resource' based allocator used for
CONFIG_DEVICE_PRIVATE.
Once the tuple of "ways, granularity, [uuid], and size" is set the
region configuration transitions to the CXL_CONFIG_INTERLEAVE_ACTIVE
state which is a precursor to allowing endpoint decoders to be added to
a region.
Co-developed-by: Ben Widawsky <bwidawsk@kernel.org>
Signed-off-by: Ben Widawsky <bwidawsk@kernel.org>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165784335630.1758207.420216490941955417.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/Kconfig')
-rw-r--r-- | drivers/cxl/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig index 184fdd4b8871..768ced3d6fe8 100644 --- a/drivers/cxl/Kconfig +++ b/drivers/cxl/Kconfig @@ -106,6 +106,9 @@ config CXL_SUSPEND config CXL_REGION bool default CXL_BUS + # For MAX_PHYSMEM_BITS + depends on SPARSEMEM select MEMREGION + select GET_FREE_REGION endif |