summaryrefslogtreecommitdiffstats
path: root/drivers/cxl/core/port.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-05-26 21:15:25 +0200
committerDan Williams <dan.j.williams@intel.com>2022-07-10 19:10:30 +0200
commitcc2a4878700b2467f36e03f581a0a877ae6a568d (patch)
tree735495d6c22d8060fe2212631050aaa37e08d75a /drivers/cxl/core/port.c
parentcxl/debug: Move debugfs init to cxl_core_init() (diff)
downloadlinux-cc2a4878700b2467f36e03f581a0a877ae6a568d.tar.xz
linux-cc2a4878700b2467f36e03f581a0a877ae6a568d.zip
cxl/mem: Add a debugfs version of 'iomem' for DPA, 'dpamem'
Dump the device-physical-address map for a CXL expander in /proc/iomem style format. E.g.: cat /sys/kernel/debug/cxl/mem1/dpamem 00000000-0fffffff : ram 10000000-1fffffff : pmem Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/165603885318.551046.8308248564880066726.stgit@dwillia2-xfh Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/core/port.c')
-rw-r--r--drivers/cxl/core/port.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c
index eecebd66416d..9175d30e1755 100644
--- a/drivers/cxl/core/port.c
+++ b/drivers/cxl/core/port.c
@@ -1506,6 +1506,7 @@ struct dentry *cxl_debugfs_create_dir(const char *dir)
{
return debugfs_create_dir(dir, cxl_debugfs);
}
+EXPORT_SYMBOL_NS_GPL(cxl_debugfs_create_dir, CXL);
static __init int cxl_core_init(void)
{