diff options
author | Yazen Ghannam <yazen.ghannam@amd.com> | 2020-07-20 16:53:53 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-08-20 10:34:38 +0200 |
commit | 368d1887200d68075c064a62a9aa191168cf1eed (patch) | |
tree | 7408b15f7c0014f2bd87f1f6f41ac8e4d83aedf6 /drivers/edac | |
parent | RAS/CEC: Fix cec_init() prototype (diff) | |
download | linux-368d1887200d68075c064a62a9aa191168cf1eed.tar.xz linux-368d1887200d68075c064a62a9aa191168cf1eed.zip |
x86/MCE/AMD, EDAC/mce_amd: Remove struct smca_hwid.xec_bitmap
The Extended Error Code Bitmap (xec_bitmap) for a Scalable MCA bank type
was intended to be used by the kernel to filter out invalid error codes
on a system. However, this is unnecessary after a few product releases
because the hardware will only report valid error codes. Thus, there's
no need for it with future systems.
Remove the xec_bitmap field and all references to it.
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200720145353.43924-1-Yazen.Ghannam@amd.com
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/mce_amd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 325aedf46ff2..d4168c46739c 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -990,10 +990,8 @@ static void decode_smca_error(struct mce *m) pr_emerg(HW_ERR "%s Ext. Error Code: %d", ip_name, xec); /* Only print the decode of valid error codes */ - if (xec < smca_mce_descs[bank_type].num_descs && - (hwid->xec_bitmap & BIT_ULL(xec))) { + if (xec < smca_mce_descs[bank_type].num_descs) pr_cont(", %s.\n", smca_mce_descs[bank_type].descs[xec]); - } if (bank_type == SMCA_UMC && xec == 0 && decode_dram_ecc) decode_dram_ecc(cpu_to_node(m->extcpu), m); |