linux/drivers/edac
Lukasz Odzioba c5b48fa7e2 EDAC, sb_edac: Fix channel reporting on Knights Landing
On Intel Xeon Phi Knights Landing processor family the channels of the
memory controller have untypical arrangement - MC0 is mapped to CH3,4,5
and MC1 is mapped to CH0,1,2. This causes the EDAC driver to report the
channel name incorrectly.

We missed this change earlier, so the code already contains similar
comment, but the translation function is incorrect.

Without this patch:
  errors in DIMM_A and DIMM_D were reported in DIMM_D
  errors in DIMM_B and DIMM_E were reported in DIMM_E
  errors in DIMM_C and DIMM_F were reported in DIMM_F

Correct this.

Hubert Chrzaniuk:
 - rebased to 4.8
 - comments and code cleanup

Fixes: d0cdf90031 ("sb_edac: Add Knights Landing (Xeon Phi gen 2) support")
Reviewed-by: Tony Luck <tony.luck@intel.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Hubert Chrzaniuk <hubert.chrzaniuk@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: lukasz.anaczkowski@intel.com
Cc: lukasz.odzioba@intel.com
Cc: mchehab@kernel.org
Cc: <stable@vger.kernel.org> # v4.5..
Link: http://lkml.kernel.org/r/1469231089-22837-1-git-send-email-lukasz.odzioba@intel.com
Signed-off-by: Lukasz Odzioba <lukasz.odzioba@intel.com>
[ Boris: Simplify a bit by removing char mc. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
2016-08-08 05:52:08 +02:00
..
Kconfig EDAC, altera: Add Arria10 Ethernet EDAC support 2016-06-25 11:31:34 +02:00
Makefile EDAC, altera: Add Altera L2 cache and OCRAM support 2016-02-11 12:23:06 +01:00
altera_edac.c EDAC, altera: Add Arria10 Ethernet EDAC support 2016-06-25 11:31:34 +02:00
altera_edac.h EDAC, altera: Add Arria10 Ethernet EDAC support 2016-06-25 11:31:34 +02:00
amd64_edac.c EDAC, amd64_edac: Init opstate at the proper time during init 2016-06-16 01:13:18 +02:00
amd64_edac.h EDAC, amd64_edac: Drop pci_register_driver() use 2016-05-09 20:41:16 +02:00
amd64_edac_dbg.c
amd64_edac_inj.c
amd76x_edac.c
amd8111_edac.c
amd8111_edac.h
amd8131_edac.c
amd8131_edac.h
cell_edac.c
cpc925_edac.c
debugfs.c EDAC: Use edac_debugfs_remove_recursive() in edac_debugfs_exit() 2016-02-10 10:37:46 +01:00
e7xxx_edac.c
e752x_edac.c
edac_core.h
edac_device.c
edac_device_sysfs.c
edac_mc.c EDAC: Fix workqueues poll period resetting 2016-06-03 11:14:27 +02:00
edac_mc_sysfs.c EDAC: Correct channel count limit 2016-06-16 10:06:35 +02:00
edac_module.c
edac_module.h
edac_pci.c EDAC: Cleanup/sync workqueue functions 2016-02-02 11:38:50 +01:00
edac_pci_sysfs.c
edac_stub.c
ghes_edac.c
highbank_l2_edac.c
highbank_mc_edac.c
i7core_edac.c * Altera Arria10 L2 cache and On-Chip RAM ECC handling. (Thor Thayer) 2016-05-16 18:44:39 -07:00
i3000_edac.c
i3200_edac.c
i5000_edac.c
i5100_edac.c EDAC, i5100: Use to_delayed_work() 2016-01-01 18:31:34 +01:00
i5400_edac.c
i7300_edac.c
i82443bxgx_edac.c
i82860_edac.c
i82875p_edac.c
i82975x_edac.c
ie31200_edac.c EDAC, ie31200_edac: Add Skylake support 2016-05-06 18:50:14 +02:00
mce_amd.c EDAC, mce_amd: Detect SMCA using X86_FEATURE_SMCA 2016-05-12 09:08:23 +02:00
mce_amd.h
mpc85xx_edac.c EDAC, mpc85xx: Silence unused variable warning 2016-02-02 18:53:15 +01:00
mpc85xx_edac.h
mv64x60_edac.c
mv64x60_edac.h
octeon_edac-l2c.c
octeon_edac-lmc.c
octeon_edac-pc.c
octeon_edac-pci.c
pasemi_edac.c
ppc4xx_edac.c
ppc4xx_edac.h
r82600_edac.c
sb_edac.c EDAC, sb_edac: Fix channel reporting on Knights Landing 2016-08-08 05:52:08 +02:00
synopsys_edac.c
tile_edac.c
wq.c
x38_edac.c
xgene_edac.c EDAC, xgene: Add missing SoC register bus error handling 2016-01-25 11:17:22 +01:00