提交 eaa3a1d4 编写于 作者: B Borislav Petkov

EDAC, ghes: Make platform-based whitelisting x86-only

ARM machines all have DMI tables so if they request hw error reporting
through GHES, then the driver should be able to detect DIMMs and report
errors successfully (famous last words :)).

Make the platform-based list x86-specific so that ghes_edac can load on
ARM.
Reported-by: NQiang Zheng <zhengqiang10@huawei.com>
Signed-off-by: NBorislav Petkov <bp@suse.de>
Reviewed-by: NJames Morse <james.morse@arm.com>
Tested-by: NJames Morse <james.morse@arm.com>
Tested-by: NQiang Zheng <zhengqiang10@huawei.com>
Link: https://lkml.kernel.org/r/1526039543-180996-1-git-send-email-zhengqiang10@huawei.com
上级 9ef20753
...@@ -440,12 +440,16 @@ int ghes_edac_register(struct ghes *ghes, struct device *dev) ...@@ -440,12 +440,16 @@ int ghes_edac_register(struct ghes *ghes, struct device *dev)
struct mem_ctl_info *mci; struct mem_ctl_info *mci;
struct edac_mc_layer layers[1]; struct edac_mc_layer layers[1];
struct ghes_edac_dimm_fill dimm_fill; struct ghes_edac_dimm_fill dimm_fill;
int idx; int idx = -1;
if (IS_ENABLED(CONFIG_X86)) {
/* Check if safe to enable on this system */ /* Check if safe to enable on this system */
idx = acpi_match_platform_list(plat_list); idx = acpi_match_platform_list(plat_list);
if (!force_load && idx < 0) if (!force_load && idx < 0)
return -ENODEV; return -ENODEV;
} else {
idx = 0;
}
/* /*
* We have only one logical memory controller to which all DIMMs belong. * We have only one logical memory controller to which all DIMMs belong.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册