Blame SOURCES/0197-cxl-list-make-memdevs-and-regions-the-default-listin.patch

26ccd9
From fade1a8039446ed1aa8656f49121886c71d221a4 Mon Sep 17 00:00:00 2001
26ccd9
From: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
Date: Mon, 15 Aug 2022 13:22:12 -0600
26ccd9
Subject: [PATCH 197/217] cxl/list: make memdevs and regions the default
26ccd9
 listing
26ccd9
26ccd9
Instead of only listing regions by default (which can often be empty if
26ccd9
no regions have been configured), change the default listing mode to
26ccd9
both memdevs and regions. This will allow a plain 'cxl-list' to be a
26ccd9
quick health check of whether all the expected memdevs have enumerated
26ccd9
correctly, and see any regions that have been configured.
26ccd9
26ccd9
Link: https://lore.kernel.org/r/20220815192214.545800-10-vishal.l.verma@intel.com
26ccd9
Cc: Dan Williams <dan.j.williams@intel.com>
26ccd9
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
26ccd9
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
---
26ccd9
 cxl/list.c | 3 ++-
26ccd9
 1 file changed, 2 insertions(+), 1 deletion(-)
26ccd9
26ccd9
diff --git a/cxl/list.c b/cxl/list.c
26ccd9
index 88ca9d9..5f604ec 100644
26ccd9
--- a/cxl/list.c
26ccd9
+++ b/cxl/list.c
26ccd9
@@ -100,9 +100,10 @@ int cmd_list(int argc, const char **argv, struct cxl_ctx *ctx)
26ccd9
 			param.regions = true;
26ccd9
 	}
26ccd9
 
26ccd9
-	/* List regions by default */
26ccd9
+	/* List regions and memdevs by default */
26ccd9
 	if (num_list_flags() == 0) {
26ccd9
 		param.regions = true;
26ccd9
+		param.memdevs = true;
26ccd9
 	}
26ccd9
 
26ccd9
 	log_init(&param.ctx, "cxl list", "CXL_LIST_LOG");
26ccd9
-- 
26ccd9
2.27.0
26ccd9