Skip to content

Commit 5f40ea7

Browse files
qzhuo2aegl
authored andcommitted
EDAC/imh: Setup 'imh_test' debugfs testing node
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
1 parent f619613 commit 5f40ea7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/edac/imh_base.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ static int __init imh_init(void)
574574

575575
opstate_init();
576576
mce_register_decode_chain(&imh_mce_dec);
577+
skx_setup_debug("imh_test");
577578

578579
imh_printk(KERN_INFO, "%s\n", IMH_REVISION);
579580

@@ -587,6 +588,7 @@ static void __exit imh_exit(void)
587588
{
588589
edac_dbg(2, "\n");
589590

591+
skx_teardown_debug();
590592
mce_unregister_decode_chain(&imh_mce_dec);
591593
skx_adxl_put();
592594
skx_remove();

0 commit comments

Comments
 (0)