diff options
author | Qiuxu Zhuo <qiuxu.zhuo@intel.com> | 2021-08-18 10:57:00 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2021-08-23 10:35:36 -0700 |
commit | 2294a7299f5e51667b841f63c6d69474491753fb (patch) | |
tree | 34ecbb048f624a6eb78ca8cb8912a5f85ad331a7 /lib/kfifo.c | |
parent | fd07a4a0d30b5468a1f4a0739e34f5f014df7d44 (diff) | |
download | linux-stable-2294a7299f5e51667b841f63c6d69474491753fb.tar.gz linux-stable-2294a7299f5e51667b841f63c6d69474491753fb.tar.bz2 linux-stable-2294a7299f5e51667b841f63c6d69474491753fb.zip |
EDAC/i10nm: Fix NVDIMM detection
MCDDRCFG is a per-channel register and uses bit{0,1} to indicate
the NVDIMM presence on DIMM slot{0,1}. Current i10nm_edac driver
wrongly uses MCDDRCFG as per-DIMM register and fails to detect
the NVDIMM.
Fix it by reading MCDDRCFG as per-channel register and using its
bit{0,1} to check whether the NVDIMM is populated on DIMM slot{0,1}.
Fixes: d4dc89d069aa ("EDAC, i10nm: Add a driver for Intel 10nm server processors")
Reported-by: Fan Du <fan.du@intel.com>
Tested-by: Wen Jin <wen.jin@intel.com>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20210818175701.1611513-2-tony.luck@intel.com
Diffstat (limited to 'lib/kfifo.c')
0 files changed, 0 insertions, 0 deletions