diff options
| author | Qiuxu Zhuo <qiuxu.zhuo@intel.com> | 2025-11-19 12:11:40 -0800 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2025-11-21 10:20:51 -0800 |
| commit | 5f40ea7f41773d996d92db8bde600199200adc11 (patch) | |
| tree | 0dc3e02260d375af4b518dc77285780ea6fd49a0 /drivers/edac | |
| parent | f619613f3058dee38f50b116ec774c5295c8b08b (diff) | |
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
Diffstat (limited to 'drivers/edac')
| -rw-r--r-- | drivers/edac/imh_base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/imh_base.c b/drivers/edac/imh_base.c index 2b0db6321da0..4348b3883b45 100644 --- a/drivers/edac/imh_base.c +++ b/drivers/edac/imh_base.c @@ -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(); |