• Yazen Ghannam's avatar
    EDAC/amd64: Save max number of controllers to family type · 5e4c5527
    Yazen Ghannam authored
    The maximum number of memory controllers is fixed within a family/model
    group. In most cases, this has been fixed at 2, but some systems may
    have up to 8.
    
    The struct amd64_family_type already contains family/model-specific
    information, and this can be used rather than adding model checks to
    various functions.
    
    Create a new field in struct amd64_family_type for max_mcs.
    Set this when setting other family type information, and use this when
    needing the maximum number of memory controllers possible for a system.
    Signed-off-by: default avatarYazen Ghannam <yazen.ghannam@amd.com>
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>
    Cc: James Morse <james.morse@arm.com>
    Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
    Cc: Robert Richter <rrichter@marvell.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Link: https://lkml.kernel.org/r/20191106012448.243970-4-Yazen.Ghannam@amd.com
    5e4c5527
amd64_edac.c 93.4 KB