Skip to content
Commit eb77e6b8 authored by Yazen Ghannam's avatar Yazen Ghannam Committed by Borislav Petkov
Browse files

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: default avatarBenjamin Bennett <benbennett@gmail.com>
Signed-off-by: default avatarYazen 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: default avatarBorislav Petkov <bp@suse.de>
parent f8d5549d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment