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