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
pull/1354/merge
Qiuxu Zhuo 2025-11-19 12:11:40 -08:00 committed by Tony Luck
parent f619613f30
commit 5f40ea7f41
1 changed files with 2 additions and 0 deletions

View 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();