]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, amd64: Fix reporting of Chip Select sizes on Fam17h
authorYazen Ghannam <yazen.ghannam@amd.com>
Thu, 27 Apr 2017 17:11:54 +0000 (12:11 -0500)
committerBorislav Petkov <bp@suse.de>
Wed, 3 May 2017 14:27:36 +0000 (16:27 +0200)
commit5de5324a3bb1c557d50bc3903fd968da2e63b4e7
tree38f7f443238317c86c10394f1e415519e7e083e2
parent8205c46e269fb0f3ff61b210320ad31e12d32129
EDAC, amd64: Fix reporting of Chip Select sizes on Fam17h

The wrong index into the csbases/csmasks arrays was being passed to
the function to compute the chip select sizes, which resulted in the
wrong size being computed. Address that so that the correct values are
computed and printed.

Also, redo how we calculate the number of pages in a CS row.

Reported-by: Benjamin Bennett <benbennett@gmail.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: <stable@vger.kernel.org> # 4.10.x
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1493313114-11260-1-git-send-email-Yazen.Ghannam@amd.com
[ Remove unneeded integer math comment, minor cleanups. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c