OSDN Git Service

EDAC/amd64: Add new register offset support and related changes
authorYazen Ghannam <yazen.ghannam@amd.com>
Wed, 2 Feb 2022 14:43:07 +0000 (14:43 +0000)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Feb 2022 21:01:33 +0000 (22:01 +0100)
commit2151c84ece920dc55942495004a823cbecb921e5
treea58cc30a865f495635d2d0e6875e82c7ebf7008d
parent75aeaaf23def967853c8d1cfb513a6842dbc232e
EDAC/amd64: Add new register offset support and related changes

Introduce a "family flags" bitmask that can be used to indicate any
special behavior needed on a per-family basis.

Add a flag to indicate a system uses the new register offsets introduced
with Family 19h Model 10h.

Use this flag to account for register offset changes, a new bitfield
indicating DDR5 use on a memory controller, and to set the proper number
of chip select masks.

Rework f17_addr_mask_to_cs_size() to properly handle the change in chip
select masks. And update code comments to reflect the updated Chip
Select, DIMM, and Mask relationships.

[uninitialized variable warning]
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: William Roche <william.roche@oracle.com>
Link: https://lore.kernel.org/r/20220202144307.2678405-3-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h