]> Gentwo Git Trees - linux/.git/commit
cxl/test: Add cxl_test CFMWS support for extended linear cache
authorDave Jiang <dave.jiang@intel.com>
Mon, 17 Nov 2025 14:46:10 +0000 (07:46 -0700)
committerDave Jiang <dave.jiang@intel.com>
Mon, 17 Nov 2025 16:46:42 +0000 (09:46 -0700)
commit4b1c0466c8fbe23d688a1f54584670a9d1dceabd
treeecc63dc22789b9fec375f4508db0f04f953ad969
parentfa59c35167afdba043efcc80cf460863868141e7
cxl/test: Add cxl_test CFMWS support for extended linear cache

Add a module parameter to allow activation of extended linear cache
on the auto region for cxl_test. The current platform implementation
for extended linear cache is 1:1 of DRAM and CXL memory. A CFMWS is
created with the size of both memory together where DRAM takes the
first part of the memory range and CXL covers the second part. The
current CXL auto region on cxl_test consists of 2 256M devices that
creates a 512M region. The new extended linear cache setup will have
512M DRAM and 512M CXL memory for a total of 1G CFMWS. The hardware
decoders must have their starting offset moved to after the DRAM region
to handle the CXL regions.

[ dj: Fixup commenting style. (Jonathan) ]

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Tested-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Fabio M. De Francesco <fabio.m.de.francesco@linux.intel.com>
Link: https://patch.msgid.link/20251117144611.903692-3-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
tools/testing/cxl/test/cxl.c