EDAC/i10nm: Add Intel Emerald Rapids server support

commit e4b2bc6616 upstream.

The Emerald Rapids CPU model uses similar memory controller registers
as Sapphire Rapids server. Add Emerald Rapids CPU model number ID for
EDAC support.

Intel-SIG: commit e4b2bc6616 EDAC/i10nm: Add Intel Emerald Rapids server support.
Backport to decode memory error for Intel Emerald Rapids server.

Tested-by: Li Zhang <li4.zhang@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/20230113032802.41752-1-qiuxu.zhuo@intel.com
[ Youquan Song: amend commit log ]
Signed-off-by: Youquan Song <youquan.song@intel.com>
This commit is contained in:
Qiuxu Zhuo 2023-01-13 11:28:00 +08:00 committed by Jianping Liu
parent 8d57528edd
commit c7706faa00
2 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,8 @@
#define INTEL_FAM6_SAPPHIRERAPIDS_X 0x8F
#define INTEL_FAM6_EMERALDRAPIDS_X 0xCF
/* "Small Core" Processors (Atom) */
#define INTEL_FAM6_ATOM_BONNELL 0x1C /* Diamondville, Pineview */

View File

@ -672,6 +672,7 @@ static const struct x86_cpu_id i10nm_cpuids[] = {
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_ICELAKE_X, 0, (kernel_ulong_t)&i10nm_cfg0 },
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_ICELAKE_D, 0, (kernel_ulong_t)&i10nm_cfg1 },
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_SAPPHIRERAPIDS_X, 0, (kernel_ulong_t)&spr_cfg },
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_EMERALDRAPIDS_X, 0, (kernel_ulong_t)&spr_cfg },
{ }
};
MODULE_DEVICE_TABLE(x86cpu, i10nm_cpuids);