diff options
author | Qiuxu Zhuo <qiuxu.zhuo@intel.com> | 2025-07-31 22:55:33 +0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2025-08-19 16:24:57 -0700 |
commit | f7a29a37373baa0bd0823a5d55e97dc7f75a4dab (patch) | |
tree | e95c25f18393fec08caade737c3e54e55e809af6 /scripts/gdb/linux/timerlist.py | |
parent | 91ded20fa2fefe2620b0abb998838312ea8bbfd2 (diff) |
EDAC/i10nm: Reallocate skx_dev list if preconfigured cnt != runtime cnt
Ideally, read the present DDR memory controller count first and then
allocate the skx_dev list using this count. However, this approach
requires adding a significant amount of code similar to
skx_get_all_bus_mappings() to obtain the PCI bus mappings for the first
socket and use these mappings along with the related PCI register offset
to read the memory controller count.
Given that the Granite Rapids CPU is the only one that can detect the
count of memory controllers at runtime (other CPUs use the count in the
configuration data), to reduce code complexity, reallocate the skx_dev
list only if the preconfigured count of DDR memory controllers differs
from the count read at runtime for Granite Rapids CPU.
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20250731145534.2759334-7-qiuxu.zhuo@intel.com
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions