Skip to content

Commit 8d27dd0

Browse files
committed
cxl: Clarify comment in spa_maps_hpa()
Update the comment in spa_maps_hpa() to clearly convey the construction of extended linear cache. Suggested-by: Dan Williams <dan.j.williams@intel.com> Link: https://lore.kernel.org/linux-cxl/68eea19c7e67e_2f899100a8@dwillia2-mobl4.notmuch/ Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Gregory Price <gourry@gourry.net> Link: https://patch.msgid.link/20251106170108.1468304-3-dave.jiang@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent c43521b commit 8d27dd0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/cxl/core/region.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -851,9 +851,9 @@ static bool spa_maps_hpa(const struct cxl_region_params *p,
851851
return false;
852852

853853
/*
854-
* If an extended linear cache region then the CXL range is assumed
855-
* to be fronted by the DRAM range in current known implementation.
856-
* This assumption will be made until a variant implementation exists.
854+
* The extended linear cache region is constructed by a 1:1 ratio
855+
* where the SPA maps equal amounts of DRAM and CXL HPA capacity with
856+
* CXL decoders at the high end of the SPA range.
857857
*/
858858
return p->res->start + p->cache_size == range->start &&
859859
p->res->end == range->end;

0 commit comments

Comments
 (0)