Re: [PATCH] MIPS: Loongson: Add model name to /proc/cpuinfo

From: Jiaxun Yang
Date: Wed Mar 11 2020 - 06:28:17 EST




ä 2020å3æ11æ GMT+08:00 äå5:58:48, Manuel Lauss <manuel.lauss@xxxxxxxxx> åå:
>Hello,
>
>> Model name: Loongson-3A R3 (Loongson-3A3000) @ 1449MHz
>
>How is this different from the __cpu_name[] array? Doesn't it serve
>the same purpose?
>E.g. on Alchemy, it lists the correct Model name. (I.e. "Au1000",
>"Au1250", ...)

Hi,

__cpu_name[] will be displayed as "cpu model" in cpuinfo, however
in x86 world, the name line is started with "model name".
Most user applications like lscpu, hwinfo is following x86's rule, we don't have superpower to move all of them.

Also rename "cpu model" will break current ABI, so just create a new array
for it would be a better option.

For why Loongson is doing this, I guess they need a chance to show
their business processor name instead of revision.

Thanks

>
>Manuel

--
Jiaxun Yang