EDAC/i10nm: Add Intel Granite Rapids server support
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Fri, 13 Jan 2023 03:28:02 +0000 (11:28 +0800)
committerTony Luck <tony.luck@intel.com>
Wed, 25 Jan 2023 16:17:30 +0000 (08:17 -0800)
commitba987eaaabf99b462cdfed86274e3455d5126349
tree6201fe86e50a8e41bdbbd84b0e588c2e5ccb4c16
parentdd7814b78539416c6e561eeaa0951b3e88ac799e
EDAC/i10nm: Add Intel Granite Rapids server support

The Granite Rapids CPU model uses similar memory controller registers
as Sapphire Rapids server but with some different configurations:

- Various memory controller numbers for different Granite Rapids CPUs.
  So detect the number of present memory controllers at run time.

- Different MMIO offsets of memory controllers.

- Different triples of bus/dev/fun of some PCI devices used in i10nm_edac.

Add above configurations and Granite Rapids CPU model ID for EDAC support.

[Tony: Fixed 2 typos s/strcture/structure/]

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
drivers/edac/i10nm_base.c
drivers/edac/skx_common.h