Re: [PATCH] EDAC/mce_amd: Reduce unnecessary spew in dmesg if SMCA feature bit is not exposed
From: Borislav Petkov
Date: Tue Jun 15 2021 - 11:19:06 EST
On Tue, Jun 15, 2021 at 11:08:46AM -0400, Yazen Ghannam wrote:
> How about adding the the SMCA feature to the amd64_cpuids[] table in
> amd64_edac.c?
>
> We can use X86_MATCH_VENDOR_FEATURE to match on AMD (and Hygon) systems
> with SMCA. And we can remove the X86_MATCH_VENDOR_FAM entries for
> families 17h-19h.
Sure. That'll alleviate the need to add new families which support SMCA
too.
> I'm assuming the issue is that amd64_edac_mod is autoloading due to the
> family-based device table, and this will load edac_mce_amd as a
> dependency.
Is it?
We have
early_initcall(mce_amd_init);
in mce_amd.c which attempts to load this thing unconditionally.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette