anitazha / rpms / ndctl

Forked from rpms/ndctl 2 years ago
Clone

Blame 0190-cxl-port-Consolidate-the-debug-option-in-cxl-port-ma.patch

Jeff Moyer 2c91dc
From a951e6ddaec82dc0c33fb4e665e20f8fe4ce9caf 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:05 -0600
Jeff Moyer 2c91dc
Subject: [PATCH 190/217] cxl/port: Consolidate the debug option in cxl-port
Jeff Moyer 2c91dc
 man pages
Jeff Moyer 2c91dc
Jeff Moyer 2c91dc
In preparation for additional commands that implement the --debug
Jeff Moyer 2c91dc
option, consolidate the option description from the cxl-port man pages
Jeff Moyer 2c91dc
into an include.
Jeff Moyer 2c91dc
Jeff Moyer 2c91dc
The port man pages also mentioned the debug option requiring a build
Jeff Moyer 2c91dc
with debug enabled, which wasn't true - so remove that part.
Jeff Moyer 2c91dc
Jeff Moyer 2c91dc
Link: https://lore.kernel.org/r/20220815192214.545800-3-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
 Documentation/cxl/cxl-disable-port.txt | 5 +----
Jeff Moyer 2c91dc
 Documentation/cxl/cxl-enable-port.txt  | 5 +----
Jeff Moyer 2c91dc
 Documentation/cxl/debug-option.txt     | 4 ++++
Jeff Moyer 2c91dc
 Documentation/cxl/meson.build          | 1 +
Jeff Moyer 2c91dc
 4 files changed, 7 insertions(+), 8 deletions(-)
Jeff Moyer 2c91dc
 create mode 100644 Documentation/cxl/debug-option.txt
Jeff Moyer 2c91dc
Jeff Moyer 2c91dc
diff --git a/Documentation/cxl/cxl-disable-port.txt b/Documentation/cxl/cxl-disable-port.txt
Jeff Moyer 2c91dc
index ac56f20..7a22efc 100644
Jeff Moyer 2c91dc
--- a/Documentation/cxl/cxl-disable-port.txt
Jeff Moyer 2c91dc
+++ b/Documentation/cxl/cxl-disable-port.txt
Jeff Moyer 2c91dc
@@ -30,10 +30,7 @@ OPTIONS
Jeff Moyer 2c91dc
 	firmware and disabling an active device is akin to force removing memory
Jeff Moyer 2c91dc
 	from a running system.
Jeff Moyer 2c91dc
 
Jeff Moyer 2c91dc
---debug::
Jeff Moyer 2c91dc
-	If the cxl tool was built with debug disabled, turn on debug
Jeff Moyer 2c91dc
-	messages.
Jeff Moyer 2c91dc
-
Jeff Moyer 2c91dc
+include::debug-option.txt[]
Jeff Moyer 2c91dc
 
Jeff Moyer 2c91dc
 include::../copyright.txt[]
Jeff Moyer 2c91dc
 
Jeff Moyer 2c91dc
diff --git a/Documentation/cxl/cxl-enable-port.txt b/Documentation/cxl/cxl-enable-port.txt
Jeff Moyer 2c91dc
index 9a37cef..50b53d1 100644
Jeff Moyer 2c91dc
--- a/Documentation/cxl/cxl-enable-port.txt
Jeff Moyer 2c91dc
+++ b/Documentation/cxl/cxl-enable-port.txt
Jeff Moyer 2c91dc
@@ -31,10 +31,7 @@ OPTIONS
Jeff Moyer 2c91dc
 	memdev is only enabled after all CXL ports in its device topology
Jeff Moyer 2c91dc
 	ancestry are enabled.
Jeff Moyer 2c91dc
 
Jeff Moyer 2c91dc
---debug::
Jeff Moyer 2c91dc
-	If the cxl tool was built with debug enabled, turn on debug
Jeff Moyer 2c91dc
-	messages.
Jeff Moyer 2c91dc
-
Jeff Moyer 2c91dc
+include::debug-option.txt[]
Jeff Moyer 2c91dc
 
Jeff Moyer 2c91dc
 include::../copyright.txt[]
Jeff Moyer 2c91dc
 
Jeff Moyer 2c91dc
diff --git a/Documentation/cxl/debug-option.txt b/Documentation/cxl/debug-option.txt
Jeff Moyer 2c91dc
new file mode 100644
Jeff Moyer 2c91dc
index 0000000..70b922f
Jeff Moyer 2c91dc
--- /dev/null
Jeff Moyer 2c91dc
+++ b/Documentation/cxl/debug-option.txt
Jeff Moyer 2c91dc
@@ -0,0 +1,4 @@
Jeff Moyer 2c91dc
+// SPDX-License-Identifier: GPL-2.0
Jeff Moyer 2c91dc
+
Jeff Moyer 2c91dc
+--debug::
Jeff Moyer 2c91dc
+	Turn on additional debug messages including library debug.
Jeff Moyer 2c91dc
diff --git a/Documentation/cxl/meson.build b/Documentation/cxl/meson.build
Jeff Moyer 2c91dc
index d019dfc..423be90 100644
Jeff Moyer 2c91dc
--- a/Documentation/cxl/meson.build
Jeff Moyer 2c91dc
+++ b/Documentation/cxl/meson.build
Jeff Moyer 2c91dc
@@ -22,6 +22,7 @@ filedeps = [
Jeff Moyer 2c91dc
   '../copyright.txt',
Jeff Moyer 2c91dc
   'memdev-option.txt',
Jeff Moyer 2c91dc
   'labels-options.txt',
Jeff Moyer 2c91dc
+  'debug-option.txt',
Jeff Moyer 2c91dc
 ]
Jeff Moyer 2c91dc
 
Jeff Moyer 2c91dc
 cxl_manpages = [
Jeff Moyer 2c91dc
-- 
Jeff Moyer 2c91dc
2.27.0
Jeff Moyer 2c91dc