]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit182c9a5b8b473e46cfd1d0c62b45af4755414779
tree5f8ff7ca5c5d5f8c7ad311caa452f446a3b19a00
parent065bbbe717f96edd84ec84382836c409266a9903
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