• T
    EDAC, skx: Retrieve and print retry_rd_err_log registers · a20889d9
    Tony Luck 提交于
    commit e80634a75aba90e7485cd1fdb463fcac5d45f14d upstream
    
    Skylake logs some additional useful information in per-channel
    registers in addition the the architectural status/addr/misc
    logged in the machine check bank.
    
    Pick up this information and add it to the EDAC log:
    
    	retry_rd_err_[five 32-bit register values]
    
    Sorry, no definitions for these registers. OEMs and DIMM vendors
    will be able to use them to isolate which cells in the DIMM are
    causing problems.
    
    	correrrcnt[per rank corrected error counts]
    
    Note that if additional errors are logged while these registers are
    being read, you may see a jumble of values some from earlier errors,
    others from later errors (since the registers report the most recent
    logged error). The correrrcnt registers provide error counts per possible
    rank. If these counts only change by one since the previous error logged
    for this channel, then it is safe to assume that the registers logged
    provide a coherent view of one error.
    
    With this change EDAC logs look like this:
    
    EDAC MC4: 1 CE memory read error on CPU_SrcID#2_MC#0_Chan#1_DIMM#0 (channel:1 slot:0 page:0x8f26018 offset:0x0 grain:32 syndrome:0x0 -  err_code:0x0101:0x0091 socket:2 imc:0 rank:0 bg:0 ba:0 row:0x1f880 col:0x200 retry_rd_err_log[0001a209 00000000 00000001 04800001 0001f880] correrrcnt[0001 0000 0000 0000 0000 0000 0000 0000])
    Acked-by: NAristeu Rozanski <aris@redhat.com>
    Signed-off-by: NTony Luck <tony.luck@intel.com>
    Signed-off-by: Nzhaobing <zhaobing@linux.alibaba.com>
    Reviewed-by: Nluanshi <zhangliguang@linux.alibaba.com>
    a20889d9
skx_common.c 16.1 KB