]> bbs.cooldavid.org Git - net-next-2.6.git/commit
amd64_edac: correct sys address to chip select mapping
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 13 Nov 2009 14:10:43 +0000 (15:10 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Tue, 8 Dec 2009 12:38:12 +0000 (13:38 +0100)
commitbdc30a0c8c7427a1c1d2e4d149d372d4d77781ee
treea990bedfacf041586af4d6fdf59389c975114a5d
parentbfc04aec7d687282b5e7adb26799d3eb50d05f01
amd64_edac: correct sys address to chip select mapping

The routine does the reverse mapping of the error address of a CECC back
to the node id, DRAM controller and chip select of the DIMM which caused
the error. We should lookup the channel using the syndromes _only_ when
the DCTs are ganged so fix that.

Also, add an early exit when there's an error while scanning for the
csrow thus decreasing indentation levels for better readability.

Finally, fixup comments.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c