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

From: Qunqin Zhao

Date: Sun Nov 29 2026 - 22:28:57 EST



在 2026/11/28 07:25, Borislav Petkov 写道:
> 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!
Will fix.
>
>> 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

As documented in  https://www.kernel.org/doc/html/latest/process/submitting-patches.html

"Any further SoBs (Signed-off-by:’s) following the author’s SoB are from people 

handling and transporting the patch, but were not involved in its development. SoB 

chains should reflect the real route a patch took as it was propagated to the maintainers 

and ultimately to Linus, with the first SoB entry signalling primary authorship of a 

single author."

Perhaps I should do it this way:

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

Qunqin,

Thanks.

>