lkml.org 
[lkml]   [2019]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 0/3] sysfs: add sysfs based cpuinfo
Hi Thomas,

On Fri, Dec 06, 2019 at 05:24:18PM +0100, Thomas Renninger wrote:
> I picked up Felix Schnizlein's work from 2017.
>
> It was already reviewed by Greg-KH at this time and even
> pushed into linux-next tree, when it came out that the mails
> never reached lkml, even the list was added to CC.
>
> ARM people then correctly complained that this needs more review
> by ARCH people. It got reverted, Felix had no time anymore and this
> nice patcheset was hanging around nowhere...

Can you please provide a rationale for this?

It's not entirely clear to me what information people need or want, and
there's some data in /proc/cpuinfo that I think makes no sense to try to
export export in a structured way (e.g. bogomips).

>
> Tested on aarch64:
>
> /sys/devices/system/cpu/cpu1/info/:[0]# ls
> architecture bogomips flags implementer part revision variant
>
> ------------------------------------------------------------
>
> for file in *;do echo $file; cat $file;echo;done
> architecture
> 8
>
> bogomips
> 40.00
>
> flags
> fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid asimdrdm
>
> implementer
> 0x51
>
> part
> 0xc00
>
> revision
> 1
>
> variant
> 0x0

For arm64 we already expose the MIDR and REVIDR register values under
/sys/devices/system/cpu/cpu*/regs/identification, and that's the bulk of
the useful information above (aside from the flags/hwcaps).

Thanks,
Mark.

\
 
 \ /
  Last update: 2019-12-06 17:58    [W:0.091 / U:8.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site