summaryrefslogtreecommitdiffstats
path: root/lib/percpu_ida.c
diff options
context:
space:
mode:
authorLuis Felipe Sandoval Castro2017-09-28 15:54:42 +0200
committerBorislav Petkov2017-10-11 15:57:25 +0200
commit24281a2f4ca569d44e44e4cbc500cf08e7bb4c36 (patch)
tree391b0dea571a87a61870917f1501572524fffdeb /lib/percpu_ida.c
parentEDAC, skx_edac: Handle systems with segmented PCI busses (diff)
downloadkernel-qcow2-linux-24281a2f4ca569d44e44e4cbc500cf08e7bb4c36.tar.gz
kernel-qcow2-linux-24281a2f4ca569d44e44e4cbc500cf08e7bb4c36.tar.xz
kernel-qcow2-linux-24281a2f4ca569d44e44e4cbc500cf08e7bb4c36.zip
EDAC, sb_edac: Fix missing DIMM sysfs entries with KNL SNC2/SNC4 mode
When figuring out the size of the DIMMs and the cluster mode is SNC2 or SNC4 the current algorithm ignores the contribution of some of the channels resulting in EDAC never knowing of the existence of some DIMMs attached to such channels (thus sysfs is not populated). Instead of selectively iterating from 0 to interlv_ways when looking for all the participants in the interleave, do an exhaustive search and iterate from 0 to KNL_MAX_CHANNELS. The algorithm is already smart enough to consider participants only one time. This works fine in all KNL cluster modes and even when there are missing DIMMs as the contribution of those channels is 0. Signed-off-by: Luis Felipe Sandoval Castro <luis.felipe.sandoval.castro@intel.com> Acked-by: Tony Luck <tony.luck@intel.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: arozansk@redhat.com Cc: linux-edac <linux-edac@vger.kernel.org> Cc: qiuxu.zhuo@intel.com Link: http://lkml.kernel.org/r/1506606882-90521-1-git-send-email-luis.felipe.sandoval.castro@intel.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'lib/percpu_ida.c')
0 files changed, 0 insertions, 0 deletions