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