EDAC, {skx,i10nm}: Make some configurations CPU model specific
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Fri, 24 Apr 2020 12:18:14 +0000 (20:18 +0800)
committerTony Luck <tony.luck@intel.com>
Mon, 27 Apr 2020 16:29:41 +0000 (09:29 -0700)
commitee5340abab3babb91c1807cea47de4468b2dfc91
tree864f8e50536e95dd999aaddcc2fdc382c40ade36
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
EDAC, {skx,i10nm}: Make some configurations CPU model specific

The device ID for configuration agent PCI device and the offset for
bus number configuration register can be CPU model specific. So add
a new structure res_config to make them configurable and pass res_config
to {skx,i10nm}_init() and skx_get_all_bus_mappings() for use.

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20200427083246.GB11036@zn.tnic
drivers/edac/i10nm_base.c
drivers/edac/skx_base.c
drivers/edac/skx_common.c
drivers/edac/skx_common.h