summaryrefslogtreecommitdiffstats
path: root/lib/rational.c
diff options
context:
space:
mode:
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>2017-05-25 14:46:53 +0200
committerBorislav Petkov <bp@suse.de>2017-05-25 14:57:52 +0200
commit4d475dde79b561bbd843d7deb7100f9e75596487 (patch)
treeb891cc4bbc3440dbf241d7e5fd1519db26bb0fe3 /lib/rational.c
parent3286d3eb906cbac832884dda8ce2fdc7acb17a65 (diff)
downloadlinux-4d475dde79b561bbd843d7deb7100f9e75596487.tar.bz2
EDAC, sb_edac: Check if ECC enabled when at least one DIMM is present
This is based on previous work by Patrick Geary, see Link. Additional cleanups ontop: - Remove the code to read MCMTR from pci_ha1_ta and CHN_TO_HA macro, now that TA0 and TA1 are unified. - Remove get_pdev_same_bus(), since in get_dimm_config() the variable "pvt->pci_ta" for KNL is also ready, we can simply use pci_read_config_dword(pvt->pci_ta, KNL_MCMTR, &pvt->info.mcmtr) to read MCMTR. Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Cc: linux-edac <linux-edac@vger.kernel.org> Link: https://lkml.kernel.org/r/57884350.1030401@supermicro.com Link: http://lkml.kernel.org/r/20170523000910.87925-1-qiuxu.zhuo@intel.com [ Make __populate_dimms() return int. ] Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'lib/rational.c')
0 files changed, 0 insertions, 0 deletions