Re: [PATCH v8 4/4] EDAC/loongson: Add CS4-7 timeout filter for cross-node access

From: Borislav Petkov

Date: Fri Nov 27 2026 - 18:26:06 EST


On Wed, Nov 18, 2026 at 11:03:30AM +0800, Qunqin Zhao wrote:
> From: Qunqin Zhao <zhaoqunqin@xxxxxxxxxxx>
>
> On Loongson 3C6000 multi-node systems, when the EDAC driver running
> on one node accesses the memory controller registers of another node,
> the read operation may timeout and return random values. This causes
> false CE error reports because the random values in CS0-3 (low 32 bits)
> are misinterpreted as valid ECC error counts.
>
> For cross-node accesses, check CS4-7 (high 32 bits) of the ECC
> count register. If the valid-cs-bits firmware property is set and
> the high bits are non-zero, it indicates a timeout or random value,
> so skip the report and return the previous count.
>
> To avoid undefined behavior on 8-CS systems where valid_cs_bits=64,
> guard the shift with a bounds check (valid_cs_bits < 64).

Do NOT explain the diff in the commit message!

>
> Signed-off-by: Wu sheng <wusheng@xxxxxxxxxxx>
> Signed-off-by: Wang Jinwei <wangjinwei@xxxxxxxxxxx>
> Signed-off-by: Qunqin Zhao <zhaoqunqin@xxxxxxxxxxx>

Do you know how SOB chains work?

Please refresh on the documentation:

https://docs.kernel.org/process/development-process.html
https://www.kernel.org/doc/html/latest/process/submitting-patches.html

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette