mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v8 0/4] EDAC/loongson: Improvements for Loongson EDAC driver
@ 2026-11-18  3:03 Qunqin Zhao
  2026-11-18  3:03 ` [PATCH v8 1/4] EDAC/loongson: Rename driver-local symbols Qunqin Zhao
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Qunqin Zhao @ 2026-11-18  3:03 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 v8:

  Patch 4 "Add CS4-7 timeout filter for cross-node access":
  - Fix Signed-off-by name format.
  - edac_mc_printk --> edac_dbg(2). Drivers under drivers/edac generally
    use edac_dbg for debug prints. Then remove Reviewed-by tag from Huacai.
    Reserve level 1 for more important debug messages.
  - Remove a duplicate semicolon.

Changes in v7:

  Patch 2 "Encode node and MC info into mc_idx":
  - Encode the presence of the _DSD property into mc_idx. Then remove
    Reviewed-by tag from Huacai

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


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 | 112 +++++++++++++++++++++++++++--------
 1 file changed, 88 insertions(+), 24 deletions(-)


base-commit: 05441d697f7f9a927264f4058cbbc6a03dfcac9d
-- 
2.47.2


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

end of thread, other threads:[~2026-11-30 18:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18  3:03 [PATCH v8 0/4] EDAC/loongson: Improvements for Loongson EDAC driver Qunqin Zhao
2026-11-18  3:03 ` [PATCH v8 1/4] EDAC/loongson: Rename driver-local symbols Qunqin Zhao
2026-11-18  3:03 ` [PATCH v8 2/4] EDAC/loongson: Encode node and MC info into mc_idx Qunqin Zhao
2026-11-18  7:45   ` Huacai Chen
2026-11-18  3:03 ` [PATCH v8 3/4] EDAC/loongson: Get DIMM size from ACPI _DSM method Qunqin Zhao
2026-11-27 23:23   ` Borislav Petkov
2026-11-30  2:47     ` Qunqin Zhao
2026-11-18  3:03 ` [PATCH v8 4/4] EDAC/loongson: Add CS4-7 timeout filter for cross-node access Qunqin Zhao
2026-11-18  7:46   ` Huacai Chen
2026-11-27 23:25   ` Borislav Petkov
2026-11-30  3:25     ` Qunqin Zhao
2026-11-30 18:42       ` Borislav Petkov
2026-11-27 23:40 ` [PATCH v8 0/4] EDAC/loongson: Improvements for Loongson EDAC driver Borislav Petkov

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®