Commit a82872eb authored by Qiuxu Zhuo's avatar Qiuxu Zhuo Committed by Song, Youquan
Browse files

EDAC/skx_common: Use driver decoder first

mainline inclusion
from mainline-v6.1-rc1
commit fe32f366
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5V3IO


CVE: NA

Intel-SIG: commit fe32f366 EDAC/skx_common: Use driver decoder first.
Backport to decode DDR error by MCA bank registers in replace of firmware.

--------------------------------

The performance of driver decoder[1] is better than the performance
of firmware decoder[2], especially on frequent correctable errors.

So use the driver decoder first, fall back to firmware decoder if
the driver decoder is unavailable. Also rename the function pointer
skx_decode to driver_decode (better name to contrast with adxl_decode).

[1] Decode errors by extracting error information from registers of
    memory controllers and/or MCA bank registers.

[2] Decode errors by calling ACPI DSM methods.

Co-developed-by: default avatarYouquan Song <youquan.song@intel.com>
Signed-off-by: default avatarYouquan Song <youquan.song@intel.com>
Signed-off-by: default avatarQiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/all/20220901194310.115427-1-tony.luck@intel.com/


Signed-off-by: default avatarYouquan Song <youquan.song@intel.com>
parent 5898671f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment