]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:46:18 +0000 (15:46 +0200)
commit1b8de0a2bb88636afcd1e48c8d20bf9d14eca27d
tree39be8f023d1e5e705fc1eaf941f836e3318b774a
parent0a4115da6135293f0568c85a9c621190e1695333
EDAC, amd64: Fix reporting of Chip Select sizes on Fam17h

commit eb77e6b80f3bed262c7773236f0fb84649fd3091 upstream.

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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/amd64_edac.c