EDAC/i10nm: don't fail probing if ADXL is missing
Subsystems (3)
PATCH 1/1 EDAC/i10nm: don't fail probing if ADXL is missing
From: Vasily Khoruzhick <[email protected]>
ADXL is not present in Coreboot- or Slimbootloader-based BIOSes and as result, the driver fails to probe there.
i10nm does not require ADXL for decoding errors since commit 2738c69a8813 ("EDAC/i10nm: Add driver decoder for Ice Lake and Tremont CPUs"), so we can just switch to driver decoding when it's not present.
--- drivers/edac/i10nm_base.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
drivers/edac/i10nm_base.c +11 -3
@@ -79,6 +79,7 @@ static struct res_config *res_cfg;static int retry_rd_err_log;static int decoding_via_mca;static bool mem_cfg_2lm; +static bool no_adxl;static struct reg_rrl icx_reg_rrl_ddr = { .set_num =2 ,
@@ -1208,8 +1209,14 @@ static int __init i10nm_init(void) } rc =skx_adxl_get (); -if (rc) - goto fail; +if (rc) { +/* Decoding errors via MCA banks for 2LM isn't supported yet */ +if (rc != -ENODEV || mem_cfg_2lm) + goto fail; +i10nm_printk (KERN_INFO ,"ADXL not found, falling back to MCA-based decoding.\n" ); + no_adxl = true; + decoding_via_mca = true; + }opstate_init ();mce_register_decode_chain (&i10nm_mce_dec);
@@ -1243,7 +1250,8 @@ static void __exit i10nm_exit(void)skx_teardown_debug ();mce_unregister_decode_chain (&i10nm_mce_dec); -skx_adxl_put (); +if (!no_adxl) +skx_adxl_put ();skx_remove (); }
Signature · 1 line
2.53.0
Quoted 6 lines
From: Vasily Khoruzhick <[email protected]>
Sent: Tuesday, April 14, 2026 7:14 AM
To: Luck, Tony <[email protected]>; Borislav Petkov <[email protected]>; linux- [email protected]; [email protected]
Cc: Vasiliy Khoruzhick <[email protected]>; [email protected]
Subject: [PATCH] EDAC/i10nm: don't fail probing if ADXL is missing
s/don't/Don't/
Quoted 6 lines
From: Vasily Khoruzhick <[email protected]>
ADXL is not present in Coreboot- or Slimbootloader-based BIOSes and as result, the driver fails to probe there.
i10nm does not require ADXL for decoding errors since commit
ADXL provides more detailed decoded results than the driver decoder. It's the preferred method when decoding performance is not a concern.
Quoted 3 lines
2738c69a8813("EDAC/i10nm: Add driver decoder for Ice Lake and Tremont CPUs"), so we can just switch to driver decoding when it's not present.
You could phrase this commit message like:
Since commit 2738c69a8813 ("EDAC/i10nm: Add driver decoder for Ice Lake and Tremont CPUs"), i10nm_edac supports driver decoder. Switch to driver decoding when ADXL is not present.
Btw, please drop the personal pronoun 'we' and use the imperative tone.
Quoted 2 lines
Cc [email protected] # v6.1+Signed-off-by Vasily Khoruzhick <[email protected]>
Other than the comments above:
[...]