]> git.karo-electronics.de Git - karo-tx-linux.git/commit
amd64_edac: Fix interleaving check
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 6 Dec 2010 15:20:25 +0000 (16:20 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:16:08 +0000 (16:16 -0400)
commita89d724d8e8c61146c3bc03564e7a70c0e3c0bb2
tree616d8e7a9f6f558de2463f140e8118be055cf2af
parenta17cb3a023a04e88b0e97fa282efa56ccf81a30f
amd64_edac: Fix interleaving check

commit e726f3c368e7c1919a7166ec09c5705759f1a69d upstream.

When matching error address to the range contained by one memory node,
we're in valid range when node interleaving

1. is disabled, or
2. enabled and when the address bits we interleave on match the
interleave selector on this node (see the "Node Interleaving" section in
the BKDG for an enlightening example).

Thus, when we early-exit, we need to reverse the compound logic
statement properly.

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