Message ID | 167026948179.3527561.4535373655515827457.stgit@dwillia2-xfh.jf.intel.com |
---|---|
State | Accepted |
Commit | 878b2de67af7095ddd35da859a9ef8db15a36163 |
Headers | show |
Series | tools/testing/cxl: Require cache invalidation bypass | expand |
On 12/5/2022 12:44 PM, Dan Williams wrote: > The typical environment where cxl_test is run, QEMU, does not support > cpu_cache_invalidate_memregion(). Add the 'test' bypass symbols to the > configuration check. > > Reported-by: Alison Schofield <alison.schofield@intel.com> > Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> > --- > tools/testing/cxl/config_check.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/testing/cxl/config_check.c b/tools/testing/cxl/config_check.c > index de5e5b3652fd..c4c457e59841 100644 > --- a/tools/testing/cxl/config_check.c > +++ b/tools/testing/cxl/config_check.c > @@ -10,4 +10,6 @@ void check(void) > BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS)); > BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI)); > BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM)); > + BUILD_BUG_ON(!IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST)); > + BUILD_BUG_ON(!IS_ENABLED(CONFIG_NVDIMM_SECURITY_TEST)); > } >
diff --git a/tools/testing/cxl/config_check.c b/tools/testing/cxl/config_check.c index de5e5b3652fd..c4c457e59841 100644 --- a/tools/testing/cxl/config_check.c +++ b/tools/testing/cxl/config_check.c @@ -10,4 +10,6 @@ void check(void) BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS)); BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI)); BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM)); + BUILD_BUG_ON(!IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST)); + BUILD_BUG_ON(!IS_ENABLED(CONFIG_NVDIMM_SECURITY_TEST)); }
The typical environment where cxl_test is run, QEMU, does not support cpu_cache_invalidate_memregion(). Add the 'test' bypass symbols to the configuration check. Reported-by: Alison Schofield <alison.schofield@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- tools/testing/cxl/config_check.c | 2 ++ 1 file changed, 2 insertions(+)