]> www.infradead.org Git - users/jedix/linux-maple.git/commit
amd64_edac: Fix missing csrows sysfs nodes
authorAshish Shenoy <ashenoy@riverbed.com>
Thu, 23 Feb 2012 01:20:38 +0000 (17:20 -0800)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 15 Jun 2012 20:43:48 +0000 (00:43 +0400)
commitaaae2cf39eea398d7c511839841566f98e60a083
tree1a3f24adabfe9ab8f29b7becfc20475741de048a
parentee4f04a4aae1de4ab3d902ae8a7485016b872527
amd64_edac: Fix missing csrows sysfs nodes

While initializing the array of csrow attribute instances, a few csrows
were uninitialized. This happened because the module only performed a
check for DRAM base ctl register0's and not DRAM base ctl register1's
chip select enable bit. There could be systems with DIMMs populated
on only single memory channel whereas the module also assumed that a
dual channel dimm had double the memory size of a single memory channel
instead of checking the memory on each channel.

This patch fixes these above issues.

Signed-off-by: Ashish Shenoy <ashenoy@riverbed.com>
Signed-off-by: Prasanna S. Panchamukhi <ppanchamukhi@riverbed.com>
Link: http://lkml.kernel.org/r/4F459CFA.5090604@riverbed.com
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c