mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
EDAC/i10nm: Don't fail probing if ADXL is missing
commite360a6d65bupstream. ADXL is not present in Coreboot- or Slimbootloader-based BIOSes and as result, the driver fails to probe there. Since commit2738c69a88("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. Signed-off-by: Vasily Khoruzhick <vasilykh@arista.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Cc: stable@vger.kernel.org # v6.1+ Link: https://patch.msgid.link/20260414181735.87023-1-anarsoul@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e65505d91f
commit
caf08fd5ed
@@ -88,6 +88,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 u32 offsets_scrub_icx[] = {0x22c60, 0x22c54, 0x22c5c, 0x22c58, 0x22c28, 0x20ed8};
|
||||
static u32 offsets_scrub_spr[] = {0x22c60, 0x22c54, 0x22f08, 0x22c58, 0x22c28, 0x20ed8};
|
||||
@@ -1173,8 +1174,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);
|
||||
@@ -1208,7 +1215,8 @@ static void __exit i10nm_exit(void)
|
||||
|
||||
teardown_i10nm_debug();
|
||||
mce_unregister_decode_chain(&i10nm_mce_dec);
|
||||
skx_adxl_put();
|
||||
if (!no_adxl)
|
||||
skx_adxl_put();
|
||||
skx_remove();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user