Re: [PATCH 3/3] MIPS: Loongson64: Add /proc/boardinfo
From: Tiezhu Yang <yangtiezhu@loongson.cn>
Date: 2020-10-10 23:40:22
Also in:
lkml
On 10/10/2020 04:01 PM, Jiaxun Yang wrote:
在 2020/10/9 下午6:57, Tiezhu Yang 写道:quoted
Add /proc/boardinfo to get mainboard and BIOS info easily on the Loongson platform, this is useful to point out the current used mainboard type and BIOS version when there exists problems related with hardware or firmware.Hi Tiezhu, You're touching Kernel userspace API and I believe it should be documented. Also linux-api list should be informed.
[RESEND due to the following reason: Can not connect to recipient's server because of unstable network or firewall filter. rcpt handle timeout,last handle info: Host vger.kernel.org(23.128.96.18) command RCPT TO respond timeout or disconnected] Hi Jiaxun, Thanks for your suggestion. I will do it as soon as possible and then send v2.
Also I'd like to know if it's really useful for mainline kernel. For user who wants to check board information, dmidecode is already useful enough.
There is no SMBIOS and dmidecode can see nothing on some machines, like this: [root@linux loongson]# dmidecode # dmidecode 2.12 # No SMBIOS nor DMI entry point found, sorry. So I think it is useful. Thanks, Tiezhu Yang
Thanks. - Jiaxunquoted
E.g. with this patch: [loongson@linux ~]$ cat /proc/boardinfo Board Info Manufacturer : LEMOTE Board Name : LEMOTE-LS3A4000-7A1000-1w-V01-pc Family : LOONGSON3 BIOS Info Vendor : Kunlun Version : Kunlun-A1901-V4.1.3-20200414093938 ROM Size : 4 KB Release Date : 2020-04-14 Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> ---