]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
EDAC/imh: Setup 'imh_test' debugfs testing node
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Wed, 19 Nov 2025 20:11:40 +0000 (12:11 -0800)
committerTony Luck <tony.luck@intel.com>
Fri, 21 Nov 2025 18:20:51 +0000 (10:20 -0800)
Setup the following debugfs testing node to enable fake memory error
address decoding tests for the imh_edac driver.

  /sys/kernel/debug/edac/imh_test/addr

Tested-by: Yi Lai <yi1.lai@intel.com>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://patch.msgid.link/20251119134132.2389472-8-qiuxu.zhuo@intel.com
drivers/edac/imh_base.c

index 2b0db6321da0a29f6ae1266756f5afe9df9cfa30..4348b3883b457b2ce2229c93127a400dee8beca6 100644 (file)
@@ -574,6 +574,7 @@ static int __init imh_init(void)
 
        opstate_init();
        mce_register_decode_chain(&imh_mce_dec);
+       skx_setup_debug("imh_test");
 
        imh_printk(KERN_INFO, "%s\n", IMH_REVISION);
 
@@ -587,6 +588,7 @@ static void __exit imh_exit(void)
 {
        edac_dbg(2, "\n");
 
+       skx_teardown_debug();
        mce_unregister_decode_chain(&imh_mce_dec);
        skx_adxl_put();
        skx_remove();