]> git.baikalelectronics.ru Git - kernel.git/commit
amd64_edac: Fix syndrome calculation on K8
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 2 Jul 2010 15:02:43 +0000 (17:02 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Fri, 2 Jul 2010 15:32:34 +0000 (17:32 +0200)
commitc00e72118da7bd871c3fa80f6a8fc9b75739d3cf
tree20839d92f95d88d70813d9ef81058ba2c1a62a7c
parenta05552eb058caba6e4fae1ea274cb90883c6f8eb
amd64_edac: Fix syndrome calculation on K8

When calculating the DCT channel from the syndrome we need to know the
syndrome type (x4 vs x8). On F10h, this is read out from extended PCI
cfg space register F3x180 while on K8 we only support x4 syndromes and
don't have extended PCI config space anyway.

Make the code accessing F3x180 F10h only and fall back to x4 syndromes
on everything else.

Cc: <stable@kernel.org> # .33.x .34.x
Reported-by: Jeffrey Merkey <jeffmerkey@gmail.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c