]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 22:43:06 +0000 (14:43 -0800)
commitc756b7289be03cf4d8ee03e0300b418e65e3ff0d
treec9114eda5c9baf3825ec6afad5950c6b9bcd2d49
parente0d1e27d374c3248ff5b1da6dd052127216cd0da
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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/edac/amd64_edac.c