Re: [PATCH v6 2/4] EDAC/loongson: Encode node and MC info into mc_idx

From: Qunqin Zhao

Date: Wed Nov 11 2026 - 03:40:36 EST



在 2026/11/11 16:08, Borislav Petkov 写道:
> On November 11, 2026 6:37:39 AM UTC, Qunqin Zhao <zhaoqunqin@xxxxxxxxxxx> wrote:
>> If we encode the presence of the _DSD property into mc_idx, 
>>
>> the sysfs representation will become confusing. For example:
>>
>> loongson@loongson:~$ ls /sys/devices/system/edac/mc/
>> mc65536  power  subsystem  uevent
>> ^^^^^^
> Does it really matter which wrong numbers you have there? They are wrong no matter which ones you choose.

You’re right, it doesn’t matter which wrong numbers we choose. 

I’ll rework this in the next version following your suggestion.

Qunqin,

Thanks.

>