lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250731145534.2759334-1-qiuxu.zhuo@intel.com>
Date: Thu, 31 Jul 2025 22:55:27 +0800
From: Qiuxu Zhuo <qiuxu.zhuo@...el.com>
To: Tony Luck <tony.luck@...el.com>,
	Borislav Petkov <bp@...en8.de>
Cc: Qiuxu Zhuo <qiuxu.zhuo@...el.com>,
	James Morse <james.morse@....com>,
	Mauro Carvalho Chehab <mchehab@...nel.org>,
	Robert Richter <rric@...nel.org>,
	Lai Yi <yi1.lai@...ux.intel.com>,
	linux-edac@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH 0/7] EDAC/Intel: Make memory controller instances into a flexible array

Problem
=======
The current array of memory controller instances for Intel server EDAC
driver is sized using the macro NUM_IMC. Each time EDAC support is added
for a new CPU, NUM_IMC needs to be updated to ensure it is greater than
or equal to the number of memory controllers for the new CPU. This approach
is inconvenient and also results in memory waste for older CPUs with fewer
memory controllers.

Solution
========
Make the array of memory controller instances a flexible array and
determine its size from configuration data or at runtime.

Patches
=======
Patch 1~3: Refactor code to be independent of *NUM*_IMC macros.
Patch   4: Make the array of memory controller instances a flexible array.
Patch 5~7: Clean up and remove unused *NUM*_IMC macros.

Testing
=======
Pass basic testing on Cascade Lake, {Sapphire, Granite} Rapids server CPUs.
- Load and unload the {skx,i10nm_}edac driver.
- Receive events for memory correctable errors.
- Decode memory errors.

This patch series is on top of v6.16.

Qiuxu Zhuo (7):
  EDAC/{skx_common,skx}: Use configuration data, not global macros
  EDAC/skx_common: Move mc_mapping to be a field inside struct skx_imc
  EDAC/skx_common: Swap memory controller index mapping
  EDAC/skx_common: Make skx_dev->imc[] a flexible array
  EDAC/skx_common: Remove redundant upper bound check for res->imc
  EDAC/i10nm: Reallocate skx_dev list if preconfigured cnt != runtime cnt
  EDAC/skx_common: Remove unused *NUM*_IMC macros

 drivers/edac/i10nm_base.c | 13 +++++-----
 drivers/edac/skx_base.c   | 33 +++++++++++++++----------
 drivers/edac/skx_common.c | 51 +++++++++++++++++++++++++--------------
 drivers/edac/skx_common.h | 28 +++++++++------------
 4 files changed, 72 insertions(+), 53 deletions(-)


base-commit: 038d61fd642278bab63ee8ef722c50d10ab01e8f
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ