mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 0/4] EDAC/loongson: Improvements for Loongson EDAC driver
@ 2026-11-05  2:55 Qunqin Zhao
  2026-11-05  2:55 ` [PATCH v6 1/4] EDAC/loongson: Rename driver-local symbols Qunqin Zhao
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Qunqin Zhao @ 2026-11-05  2:55 UTC (permalink / raw)
  To: bp; +Cc: tony.luck, linux-edac, chenhuacai, zhaoqunqin, linux-kernel

From: Qunqin Zhao <zhaoqunqin@loongson.cn>

This series contains four patches for the Loongson EDAC driver:

Patch 1: Rename driver-local symbols to remove the "edac_" prefix.

Patch 2: Encode node and MC info into mc_idx so that on multi-node
systems, sysfs entries uniquely identify each controller.

Patch 3: Get DIMM size from ACPI _DSM method instead of using hardcoded
values, enabling correct display of memory size in sysfs.

Patch 4: Add CS4-7 timeout filter for cross-node access on 3C6000
multi-node systems to prevent false CE error reports.

Changes in v6:

- Rename check(), probe() and remove() to loongson_check(),
  loongson_probe() and loongson_remove() respectively.

Changes in v5:

- Add a new preparatory patch (Patch 1) that removes the "edac_" prefix
  from driver-local definitions: rename edac_check(), edac_probe() and
  edac_remove() to check(), probe() and remove(), respectively, and
  rename struct loongson_edac_pvt, loongson_edac_driver and
  loongson_edac_acpi_match to loongson_pvt, loongson_driver and
  loongson_acpi_match, respectively (Boris)
- Reorder the variable declarations in probe() so that int ret is
  declared last, following the EDAC tree reverse-fir-tree convention
  (Boris)

Changes in v4:

- int mcs_per_node; -> u32 mcs_per_node;
- int valid_cs_bits; -> u32 valid_cs_bits;

Changes in v3:
Patch 2 "Encode node and MC info into mc_idx":
- Drop mc_idx_u32 temporary variable; pass &mci->mc_idx directly
- Rename device property mc-per-node -> mcs-per-node

Patch 3 "Get DIMM size from ACPI _DSM method":
- Fix subject: get -> Get
- No code changes

Patch 4 "Add CS4-7 timeout filter for cross-node access":
- No changes

Changes in v2:

Patch 2 "Encode node and MC info into mc_idx":
- Use char other_detail[64] = {0} and drop the else branch
- Put snprintf() on one line
- Initialize mc_idx_valid = true and drop the else branch
- Validate mc-per-node firmware property is non-zero to prevent
  division by zero
- Wrap pvt_init() function definition to satisfy 100-column limit

Patch 3 "get DIMM size from ACPI _DSM method":
- No changes; rebased on top of updated patch 2.

Patch 4 "Add CS4-7 timeout filter for cross-node access":
- Assign valid_cs_bits before calling read_ecc() in pvt_init() to
  prevent using uninitialized data when establishing the baseline
  error count
- Add bounds check for valid_cs_bits < 64 to guard against undefined
  behavior when shifting a 64-bit value by 64 bits
- Rename device property valid_cs_bits -> valid-cs-bits to match
  standard DT/ACPI _DSD hyphen convention

v4: https://lore.kernel.org/all/20260902084827.2652-1-zhaoqunqin@loongson.cn/
v3: https://lore.kernel.org/all/20260812064139.1231-1-zhaoqunqin@loongson.cn/
v2: https://lore.kernel.org/all/20260805085414.1482-1-zhaoqunqin@loongson.cn/
v1: https://lore.kernel.org/all/20260730063035.230686-1-zhaoqunqin@loongson.cn/

Qunqin Zhao (2):
  EDAC/loongson: Rename driver-local symbols
  EDAC/loongson: Add CS4-7 timeout filter for cross-node access

Wang Jinwei (2):
  EDAC/loongson: Encode node and MC info into mc_idx
  EDAC/loongson: Get DIMM size from ACPI _DSM method

 drivers/edac/loongson_edac.c | 114 +++++++++++++++++++++++++++--------
 1 file changed, 90 insertions(+), 24 deletions(-)


base-commit: 05441d697f7f9a927264f4058cbbc6a03dfcac9d
-- 
2.47.2


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-11  8:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05  2:55 [PATCH v6 0/4] EDAC/loongson: Improvements for Loongson EDAC driver Qunqin Zhao
2026-11-05  2:55 ` [PATCH v6 1/4] EDAC/loongson: Rename driver-local symbols Qunqin Zhao
2026-11-05  7:10   ` Huacai Chen
2026-11-05  2:55 ` [PATCH v6 2/4] EDAC/loongson: Encode node and MC info into mc_idx Qunqin Zhao
2026-11-10  6:41   ` Borislav Petkov
2026-11-10  7:47     ` Qunqin Zhao
2026-11-10  8:03       ` Borislav Petkov
2026-11-10  8:23         ` Qunqin Zhao
2026-11-10 18:31           ` Borislav Petkov
2026-11-11  6:37             ` Qunqin Zhao
2026-11-11  8:08               ` Borislav Petkov
2026-11-11  8:33                 ` Qunqin Zhao
2026-11-05  2:55 ` [PATCH v6 3/4] EDAC/loongson: Get DIMM size from ACPI _DSM method Qunqin Zhao
2026-11-05  2:55 ` [PATCH v6 4/4] EDAC/loongson: Add CS4-7 timeout filter for cross-node access Qunqin Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®