EDAC/amd64: Support asymmetric dual-rank DIMMs
authorYazen Ghannam <yazen.ghannam@amd.com>
Thu, 22 Aug 2019 00:00:02 +0000 (00:00 +0000)
committerBorislav Petkov <bp@suse.de>
Fri, 23 Aug 2019 14:09:52 +0000 (16:09 +0200)
commit81f5090db843be897414418c24fe472fa6e082b6
tree5f8ff7ca5c5d5f8c7ad311caa452f446a3b19a00
parent7574729e91468d568cc198de438feb35ef04f41a
EDAC/amd64: Support asymmetric dual-rank DIMMs

Future AMD systems will support asymmetric dual-rank DIMMs. These are
DIMMs where the ranks are of different sizes.

The even rank will use the Primary Even Chip Select registers and the
odd rank will use the Secondary Odd Chip Select registers.

Recognize if a Secondary Odd Chip Select is being used. Use the
Secondary Odd Address Mask when calculating the chip select size.

 [ bp: move csrow_sec_enabled() to the header, fix CS_ODD define and
   tone-down the capitalized words spelling. ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav 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: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20190821235938.118710-8-Yazen.Ghannam@amd.com
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h