Commit 7c76bb5f authored by Chen, Gong's avatar Chen, Gong Committed by Tony Luck

RAS, extlog: Adjust init flow

Unless the platform has eMCA related capability, don't
need to check if there is conflict with EDAC driver.
Signed-off-by: default avatarChen, Gong <gong.chen@linux.intel.com>
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent d6cae935
...@@ -223,19 +223,16 @@ static int __init extlog_init(void) ...@@ -223,19 +223,16 @@ static int __init extlog_init(void)
u64 cap; u64 cap;
int rc; int rc;
rdmsrl(MSR_IA32_MCG_CAP, cap);
if (!(cap & MCG_ELOG_P) || !extlog_get_l1addr())
return -ENODEV;
if (get_edac_report_status() == EDAC_REPORTING_FORCE) { if (get_edac_report_status() == EDAC_REPORTING_FORCE) {
pr_warn("Not loading eMCA, error reporting force-enabled through EDAC.\n"); pr_warn("Not loading eMCA, error reporting force-enabled through EDAC.\n");
return -EPERM; return -EPERM;
} }
rc = -ENODEV;
rdmsrl(MSR_IA32_MCG_CAP, cap);
if (!(cap & MCG_ELOG_P))
return rc;
if (!extlog_get_l1addr())
return rc;
rc = -EINVAL; rc = -EINVAL;
/* get L1 header to fetch necessary information */ /* get L1 header to fetch necessary information */
l1_hdr_size = sizeof(struct extlog_l1_head); l1_hdr_size = sizeof(struct extlog_l1_head);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment