]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC/skx_common: Use driver decoder first
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Thu, 1 Sep 2022 19:43:08 +0000 (12:43 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 8 Sep 2022 18:40:00 +0000 (11:40 -0700)
commit12bdc59aebf676c5599fca55ab37d83742a4466f
treec344ae0f4860bfe62057ae67298a866a4f4740df
parent97f8010a55dec89b2b505727636ac0dcf7ed23c1
EDAC/skx_common: Use driver decoder first

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: Youquan Song <youquan.song@intel.com>
Signed-off-by: Youquan Song <youquan.song@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/all/20220901194310.115427-1-tony.luck@intel.com/
drivers/edac/skx_base.c
drivers/edac/skx_common.c
drivers/edac/skx_common.h