lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250626095442.1254840-1-wangyuquan1236@phytium.com.cn>
Date: Thu, 26 Jun 2025 17:54:42 +0800
From: Yuquan Wang <wangyuquan1236@...tium.com.cn>
To: dave@...olabs.net,
	jonathan.cameron@...wei.com,
	dave.jiang@...el.com,
	alison.schofield@...el.com,
	vishal.l.verma@...el.com,
	ira.weiny@...el.com,
	dan.j.williams@...el.com
Cc: linux-cxl@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	chenbaozi@...tium.com.cn,
	Yuquan Wang <wangyuquan1236@...tium.com.cn>
Subject: [PATCH] cxl: Add CONFIG_CXL_DEBUG to drivers/cxl

CONFIG_CXL_DEBUG=y adds -DDEBUG to CFLAGS, which enables pr_debug()
and dev_dbg(). Users can use this config to open all cxl debug
messages.

Signed-off-by: Yuquan Wang <wangyuquan1236@...tium.com.cn>
---
 drivers/cxl/Kconfig  | 10 ++++++++++
 drivers/cxl/Makefile |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig
index 48b7314afdb8..b7e5225e9d7c 100644
--- a/drivers/cxl/Kconfig
+++ b/drivers/cxl/Kconfig
@@ -233,4 +233,14 @@ config CXL_MCE
 	def_bool y
 	depends on X86_MCE && MEMORY_FAILURE
 
+config CXL_DEBUG
+	bool "CXL Debugging"
+	depends on DEBUG_KERNEL
+	help
+	  Say Y here if you want the CXL core to produce a bunch of debug
+	  messages to the system log.  Select this if you are having a
+	  problem with CXL support and want to see more of what is going on.
+
+	  When in doubt, say N.
+
 endif
diff --git a/drivers/cxl/Makefile b/drivers/cxl/Makefile
index 2caa90fa4bf2..9c0151a2b201 100644
--- a/drivers/cxl/Makefile
+++ b/drivers/cxl/Makefile
@@ -19,3 +19,5 @@ cxl_acpi-y := acpi.o
 cxl_pmem-y := pmem.o security.o
 cxl_mem-y := mem.o
 cxl_pci-y := pci.o
+
+subdir-ccflags-$(CONFIG_CXL_DEBUG) := -DDEBUG
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ