summaryrefslogtreecommitdiff
path: root/drivers/cxl/core
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2022-12-15 10:38:36 -0800
committerDan Williams <dan.j.williams@intel.com>2023-01-05 15:01:45 -0800
commite520d52d7cabf6817b2c56d2681e9618bc5540ae (patch)
tree0e1dc26bf122f21c5b8206263e4b7b32fb7a01fc /drivers/cxl/core
parent589c3357370a596ef7c99c00baca8ac799fce531 (diff)
downloadlwn-e520d52d7cabf6817b2c56d2681e9618bc5540ae.tar.gz
lwn-e520d52d7cabf6817b2c56d2681e9618bc5540ae.zip
cxl/region: Only warn about cpu_cache_invalidate_memregion() once
No need for more than once per module load. Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20221215183836.24136-1-dave@stgolabs.net Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/core')
-rw-r--r--drivers/cxl/core/region.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
index 02f28da519e3..c11a6ab5e48d 100644
--- a/drivers/cxl/core/region.c
+++ b/drivers/cxl/core/region.c
@@ -1967,7 +1967,7 @@ static int cxl_region_invalidate_memregion(struct cxl_region *cxlr)
if (!cpu_cache_has_invalidate_memregion()) {
if (IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST)) {
- dev_warn(
+ dev_warn_once(
&cxlr->dev,
"Bypassing cpu_cache_invalidate_memregion() for testing!\n");
clear_bit(CXL_REGION_F_INCOHERENT, &cxlr->flags);