EDAC, sb_edac: Assign EDAC memory controller per h/w controller
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Tue, 23 May 2017 00:07:31 +0000 (08:07 +0800)
committerBorislav Petkov <bp@suse.de>
Thu, 25 May 2017 12:37:21 +0000 (14:37 +0200)
commite2f747b1f42a2f6b0cf5416be1684c1b94a42f0f
tree2c9efd078b5e4041dc77a4e5a2424bbfc850ab5b
parent7fd562b75d7752ed50c61d65f27b558cd93a359b
EDAC, sb_edac: Assign EDAC memory controller per h/w controller

Tony pointed out: "currently the driver pretends there is one big
8-channel memory controller per socket instead of 2 4-channel
controllers. This is fine with all memory controller populated with
symmetrical DIMM configurations, but runs into difficulties on
asymmetrical setups".

Restructure the driver to assign an EDAC memory controller to each real
h/w memory controller to resolve the issue.

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170523000731.87793-1-qiuxu.zhuo@intel.com
[ Break some lines at convenient points. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/sb_edac.c