public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
@ 2019-09-10 20:44 Michał Górny
  2019-09-11  5:24 ` Michał Górny
                   ` (8 more replies)
  0 siblings, 9 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-10 20:44 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

Hi, everyone.

I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
are based on mocked syscalls that return arch-specific data read from
text files.  So far I've got x86 and ppc covered, and now I'd like to
add tests for various arm hardware.  Since ARM covers a pretty broad
range of hardware, I'd use as much data as possible, especially from
different ARM generations.

If you have an ARM board and would like to help, please:

wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
tar -xf cpuid2cpuflags-7-dev.tar.bz2
cd cpuid2cpuflags-7-dev
./configure
make hwcap-dump
./hwcap-dump

and send me the output along with 'uname -m'.  TIA!

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
@ 2019-09-11  5:24 ` Michał Górny
  2019-09-11  6:42   ` Nick Howell
                     ` (2 more replies)
  2019-09-11 17:09 ` Georgy Yakovlev
                   ` (7 subsequent siblings)
  8 siblings, 3 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-11  5:24 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]

On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
> Hi, everyone.
> 
> I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> are based on mocked syscalls that return arch-specific data read from
> text files.  So far I've got x86 and ppc covered, and now I'd like to
> add tests for various arm hardware.  Since ARM covers a pretty broad
> range of hardware, I'd use as much data as possible, especially from
> different ARM generations.
> 
> If you have an ARM board and would like to help, please:
> 
> wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> tar -xf cpuid2cpuflags-7-dev.tar.bz2
> cd cpuid2cpuflags-7-dev
> ./configure
> make hwcap-dump
> ./hwcap-dump
> 
> and send me the output along with 'uname -m'.  TIA!
> 

I'm sorry but sending it this late, I forgot two more important things:

1. Name of the CPU or the board (i.e. something I can use to name
the test).

2. Output of cpuid2cpuflags, preferably verified against cpuinfo.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-11  5:24 ` Michał Górny
@ 2019-09-11  6:42   ` Nick Howell
  2019-09-11  6:52     ` Michał Górny
  2019-09-12 11:29   ` Rolf Eike Beer
  2019-09-13  3:17   ` A Schenck
  2 siblings, 1 reply; 22+ messages in thread
From: Nick Howell @ 2019-09-11  6:42 UTC (permalink / raw
  To: gentoo-dev, Michał Górny; +Cc: arm

Michał Górny wrote:
> On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
> > If you have an ARM board and would like to help, please:
> > 
> > ./hwcap-dump
> > 
> > and send me the output along with 'uname -m'.  TIA!
> 
> I'm sorry but sending it this late, I forgot two more important things:
> 
> 1. Name of the CPU or the board (i.e. something I can use to name
> the test).
> 
> 2. Output of cpuid2cpuflags, preferably verified against cpuinfo.

name: rk3288

$ uname -m
armv7l

$ ./hwcap-dump
hwcap:00000000003fb8d7
hwcap2:0000000000000000

$ ./cpuid2cpuflags
CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 v4 v5 v6 v7 thumb2

$ grep -m1 Features /proc/cpuinfo
Features	: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 

$ diff -U0 <(./cpuid2cpuflags | tr ' ' '\n' | sed 1d |sort) <(grep -m1 Features /proc/cpuinfo | tr ' ' '\n' | sed 1d | grep '.' |sort)
--- /dev/fd/63	2019-09-11 09:38:40.710312547 +0300
+++ /dev/fd/62	2019-09-11 09:38:40.710312547 +0300
@@ -1,0 +2,6 @@
+evtstrm
+fastmult
+half
+idiva
+idivt
+lpae
@@ -2,0 +9 @@
+swp
@@ -4,5 +11,2 @@
-thumb2
-v4
-v5
-v6
-v7
+thumbee
+tls
@@ -10 +14 @@
-vfp-d32
+vfpd32

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-11  6:42   ` Nick Howell
@ 2019-09-11  6:52     ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-11  6:52 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

On Wed, 2019-09-11 at 09:42 +0300, Nick Howell wrote:
> Michał Górny wrote:
> > On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
> > > If you have an ARM board and would like to help, please:
> > > 
> > > ./hwcap-dump
> > > 
> > > and send me the output along with 'uname -m'.  TIA!
> > 
> > I'm sorry but sending it this late, I forgot two more important things:
> > 
> > 1. Name of the CPU or the board (i.e. something I can use to name
> > the test).
> > 
> > 2. Output of cpuid2cpuflags, preferably verified against cpuinfo.
> 
> name: rk3288
> 
> $ uname -m
> armv7l
> 
> $ ./hwcap-dump
> hwcap:00000000003fb8d7
> hwcap2:0000000000000000
> 
> $ ./cpuid2cpuflags
> CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 v4 v5 v6 v7 thumb2
> 
> $ grep -m1 Features /proc/cpuinfo
> Features	: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 

Thanks, included.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
  2019-09-11  5:24 ` Michał Górny
@ 2019-09-11 17:09 ` Georgy Yakovlev
  2019-09-11 17:33   ` Michał Górny
  2019-09-11 18:02 ` Matt Turner
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 22+ messages in thread
From: Georgy Yakovlev @ 2019-09-11 17:09 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 2761 bytes --]

On 9/10/19 12:44 PM, Michał Górny wrote:
> Hi, everyone.
> 
> I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> are based on mocked syscalls that return arch-specific data read from
> text files.  So far I've got x86 and ppc covered, and now I'd like to
> add tests for various arm hardware.  Since ARM covers a pretty broad
> range of hardware, I'd use as much data as possible, especially from
> different ARM generations.
> 
> If you have an ARM board and would like to help, please:
> 
> wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> tar -xf cpuid2cpuflags-7-dev.tar.bz2
> cd cpuid2cpuflags-7-dev
> ./configure
> make hwcap-dump
> ./hwcap-dump
> 
> and send me the output along with 'uname -m'.  TIA!
> 


couple of boards here


========== rockpro64
Rockchip RK3399 Hexa-Core (dual ARM Cortex A72 and quad ARM Cortex A53)

$ uname -m
aarch64

$ ./hwcap-dump
hwcap:00000000000008ff
hwcap2:0000000000000000

./cpuid2cpuflags
CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2
crc32 v4 v5 v6 v7 v8 thumb2


cpuinfo
processor	: 0
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4


diff -U0 <(./cpuid2cpuflags | tr ' ' '\n' | sed 1d |sort) <(grep -m1
Features /proc/cpuinfo | tr ' ' '\n' | sed 1d | grep '.' |sort)
--- /dev/fd/63	2019-09-11 09:57:36.360796732 -0700
+++ /dev/fd/62	2019-09-11 09:57:36.364130054 -0700
@@ -1,0 +2,2 @@
+asimd
+cpuid
@@ -3,2 +5,3 @@
-edsp
-neon
+evtstrm
+fp
+pmull
@@ -7,11 +9,0 @@
-thumb
-thumb2
-v4
-v5
-v6
-v7
-v8
-vfp
-vfp-d32
-vfpv3
-vfpv4





========== Odroid N2
Amlogic S922X (4x Cortex-A73 @ 1.8GHz, 2x Cortex-A53 @ 1.9GHz)

$ uname -m
aarch64

$ ./hwcap-dump
hwcap:00000000000000ff
hwcap2:0000000000000000

CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2
crc32 v4 v5 v6 v7 v8 thumb2

cpuinfo
processor	: 0
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

CPU info	: 290a400001200e000001313254524d50
Serial		: .....
Hardware	: Hardkernel ODROID-N2
Revision	: 0400


diff -U0 <(./cpuid2cpuflags | tr ' ' '\n' | sed 1d |sort) <(grep -m1
Features /proc/cpuinfo | tr ' ' '\n' | sed 1d | grep '.' |sort)
--- /dev/fd/63	2019-09-11 09:59:59.616633443 -0700
+++ /dev/fd/62	2019-09-11 09:59:59.616633443 -0700
@@ -1,0 +2 @@
+asimd
@@ -3,2 +4,3 @@
-edsp
-neon
+evtstrm
+fp
+pmull
@@ -7,11 +8,0 @@
-thumb
-thumb2
-v4
-v5
-v6
-v7
-v8
-vfp
-vfp-d32
-vfpv3
-vfpv4



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-11 17:09 ` Georgy Yakovlev
@ 2019-09-11 17:33   ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-11 17:33 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 3182 bytes --]

On Wed, 2019-09-11 at 10:09 -0700, Georgy Yakovlev wrote:
> On 9/10/19 12:44 PM, Michał Górny wrote:
> > Hi, everyone.
> > 
> > I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> > are based on mocked syscalls that return arch-specific data read from
> > text files.  So far I've got x86 and ppc covered, and now I'd like to
> > add tests for various arm hardware.  Since ARM covers a pretty broad
> > range of hardware, I'd use as much data as possible, especially from
> > different ARM generations.
> > 
> > If you have an ARM board and would like to help, please:
> > 
> > wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> > tar -xf cpuid2cpuflags-7-dev.tar.bz2
> > cd cpuid2cpuflags-7-dev
> > ./configure
> > make hwcap-dump
> > ./hwcap-dump
> > 
> > and send me the output along with 'uname -m'.  TIA!
> > 
> 
> couple of boards here
> 
> 
> ========== rockpro64
> Rockchip RK3399 Hexa-Core (dual ARM Cortex A72 and quad ARM Cortex A53)
> 
> $ uname -m
> aarch64
> 
> $ ./hwcap-dump
> hwcap:00000000000008ff
> hwcap2:0000000000000000

This one's same as aws a1.

> 
> ./cpuid2cpuflags
> CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2
> crc32 v4 v5 v6 v7 v8 thumb2
> 
> 
> cpuinfo
> processor	: 0
> BogoMIPS	: 48.00
> Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
> CPU implementer	: 0x41
> CPU architecture: 8
> CPU variant	: 0x0
> CPU part	: 0xd03
> CPU revision	: 4
> 
> 
> diff -U0 <(./cpuid2cpuflags | tr ' ' '\n' | sed 1d |sort) <(grep -m1
> Features /proc/cpuinfo | tr ' ' '\n' | sed 1d | grep '.' |sort)
> --- /dev/fd/63	2019-09-11 09:57:36.360796732 -0700
> +++ /dev/fd/62	2019-09-11 09:57:36.364130054 -0700
> @@ -1,0 +2,2 @@
> +asimd
> +cpuid
> @@ -3,2 +5,3 @@
> -edsp
> -neon
> +evtstrm
> +fp
> +pmull
> @@ -7,11 +9,0 @@
> -thumb
> -thumb2
> -v4
> -v5
> -v6
> -v7
> -v8
> -vfp
> -vfp-d32
> -vfpv3
> -vfpv4
> 
> 
> 
> 
> 
> ========== Odroid N2
> Amlogic S922X (4x Cortex-A73 @ 1.8GHz, 2x Cortex-A53 @ 1.9GHz)
> 
> $ uname -m
> aarch64
> 
> $ ./hwcap-dump
> hwcap:00000000000000ff
> hwcap2:0000000000000000
> 
> CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2
> crc32 v4 v5 v6 v7 v8 thumb2

Thanks, added.

> 
> cpuinfo
> processor	: 0
> BogoMIPS	: 48.00
> Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
> CPU implementer	: 0x41
> CPU architecture: 8
> CPU variant	: 0x0
> CPU part	: 0xd03
> CPU revision	: 4
> 
> CPU info	: 290a400001200e000001313254524d50
> Serial		: .....
> Hardware	: Hardkernel ODROID-N2
> Revision	: 0400
> 
> 
> diff -U0 <(./cpuid2cpuflags | tr ' ' '\n' | sed 1d |sort) <(grep -m1
> Features /proc/cpuinfo | tr ' ' '\n' | sed 1d | grep '.' |sort)
> --- /dev/fd/63	2019-09-11 09:59:59.616633443 -0700
> +++ /dev/fd/62	2019-09-11 09:59:59.616633443 -0700
> @@ -1,0 +2 @@
> +asimd
> @@ -3,2 +4,3 @@
> -edsp
> -neon
> +evtstrm
> +fp
> +pmull
> @@ -7,11 +8,0 @@
> -thumb
> -thumb2
> -v4
> -v5
> -v6
> -v7
> -v8
> -vfp
> -vfp-d32
> -vfpv3
> -vfpv4
> 
> 

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
  2019-09-11  5:24 ` Michał Górny
  2019-09-11 17:09 ` Georgy Yakovlev
@ 2019-09-11 18:02 ` Matt Turner
  2019-09-11 18:15   ` Michał Górny
  2019-09-11 20:19 ` James Le Cuirot
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 22+ messages in thread
From: Matt Turner @ 2019-09-11 18:02 UTC (permalink / raw
  To: gentoo development; +Cc: arm

From my original generation SolidRun Cubox:

$ ./hwcap-dump
hwcap:000000000004ead6
hwcap2:0000000000000000
mattst88@cubox ~/cpuid2cpuflags-7-dev $ uname -a
Linux cubox 5.2.7 #11 Wed Aug 7 17:50:03 PDT 2019 armv7l ARMv7
Processor rev 5 (v7l) Marvell Dove GNU/Linux

cpuid2cflags says
CPU_FLAGS_ARM: edsp iwmmxt thumb vfp vfpv3 v4 v5 v6 v7 thumb2

/proc/cpuinfo:

processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 333.33
Features        : half thumb fastmult vfp edsp iwmmxt thumbee vfpv3
vfpv3d16 tls idivt
CPU implementer : 0x56
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0x581
CPU revision    : 5

Hardware        : Marvell Dove
Revision        : 0000
Serial          : 0000000000000000

I've got an "iwmmxt2" flag on x11-libs/pixman, but I don't think
there's a hwcap bit for it. At least not that I see in
arch/arm/include/uapi/asm/hwcap.h

That's just as well. It's only a very small optimization over iwmmxt.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-11 18:02 ` Matt Turner
@ 2019-09-11 18:15   ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-11 18:15 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]

On Wed, 2019-09-11 at 11:02 -0700, Matt Turner wrote:
> From my original generation SolidRun Cubox:
> 
> $ ./hwcap-dump
> hwcap:000000000004ead6
> hwcap2:0000000000000000
> mattst88@cubox ~/cpuid2cpuflags-7-dev $ uname -a
> Linux cubox 5.2.7 #11 Wed Aug 7 17:50:03 PDT 2019 armv7l ARMv7
> Processor rev 5 (v7l) Marvell Dove GNU/Linux
> 
> cpuid2cflags says
> CPU_FLAGS_ARM: edsp iwmmxt thumb vfp vfpv3 v4 v5 v6 v7 thumb2
> 
> /proc/cpuinfo:
> 
> processor       : 0
> model name      : ARMv7 Processor rev 5 (v7l)
> BogoMIPS        : 333.33
> Features        : half thumb fastmult vfp edsp iwmmxt thumbee vfpv3
> vfpv3d16 tls idivt
> CPU implementer : 0x56
> CPU architecture: 7
> CPU variant     : 0x0
> CPU part        : 0x581
> CPU revision    : 5
> 
> Hardware        : Marvell Dove
> Revision        : 0000
> Serial          : 0000000000000000

Thanks.

> 
> I've got an "iwmmxt2" flag on x11-libs/pixman, but I don't think
> there's a hwcap bit for it. At least not that I see in
> arch/arm/include/uapi/asm/hwcap.h

Maybe there's some other way of inferring it.  For example, 'thumb2'
we're basing on ARM version.

> 
> That's just as well. It's only a very small optimization over iwmmxt.
> 

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
                   ` (2 preceding siblings ...)
  2019-09-11 18:02 ` Matt Turner
@ 2019-09-11 20:19 ` James Le Cuirot
  2019-09-11 20:37   ` Michał Górny
  2019-09-12 13:13 ` James Cloos
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 22+ messages in thread
From: James Le Cuirot @ 2019-09-11 20:19 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]

On Tue, 10 Sep 2019 22:44:54 +0200
Michał Górny <mgorny@gentoo.org> wrote:

> Hi, everyone.
> 
> I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> are based on mocked syscalls that return arch-specific data read from
> text files.  So far I've got x86 and ppc covered, and now I'd like to
> add tests for various arm hardware.  Since ARM covers a pretty broad
> range of hardware, I'd use as much data as possible, especially from
> different ARM generations.
> 
> If you have an ARM board and would like to help, please:

From my CompuLab Utilite Pro:

$ ./hwcap-dump
hwcap:000000000008b0d6
hwcap2:0000000000000000

$ ./cpuid2cpuflags 
CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfp-d32 v4 v5 v6 v7 thumb2

$ uname -a
Linux utilite 5.2.7-00007-g4559111aee7b #100 SMP PREEMPT Wed Aug 7 23:24:36 BST 2019 armv7l ARMv7 Processor rev 10 (v7l) Freescale i.MX6 Quad/DualLite (Device Tree) GNU/Linux

$ cat /proc/cpuinfo
...

processor	: 3
model name	: ARMv7 Processor rev 10 (v7l)
BogoMIPS	: 6.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc09
CPU revision	: 10

Hardware	: Freescale i.MX6 Quad/DualLite (Device Tree)
Revision	: 0000
Serial		: 0000000000000000

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-11 20:19 ` James Le Cuirot
@ 2019-09-11 20:37   ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-11 20:37 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

On Wed, 2019-09-11 at 21:19 +0100, James Le Cuirot wrote:
> On Tue, 10 Sep 2019 22:44:54 +0200
> Michał Górny <mgorny@gentoo.org> wrote:
> 
> > Hi, everyone.
> > 
> > I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> > are based on mocked syscalls that return arch-specific data read from
> > text files.  So far I've got x86 and ppc covered, and now I'd like to
> > add tests for various arm hardware.  Since ARM covers a pretty broad
> > range of hardware, I'd use as much data as possible, especially from
> > different ARM generations.
> > 
> > If you have an ARM board and would like to help, please:
> 
> From my CompuLab Utilite Pro:
> 
> $ ./hwcap-dump
> hwcap:000000000008b0d6
> hwcap2:0000000000000000
> 
> $ ./cpuid2cpuflags 
> CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfp-d32 v4 v5 v6 v7 thumb2
> 
> $ uname -a
> Linux utilite 5.2.7-00007-g4559111aee7b #100 SMP PREEMPT Wed Aug 7 23:24:36 BST 2019 armv7l ARMv7 Processor rev 10 (v7l) Freescale i.MX6 Quad/DualLite (Device Tree) GNU/Linux

Thanks, added.

> 
> $ cat /proc/cpuinfo
> ...
> 
> processor	: 3
> model name	: ARMv7 Processor rev 10 (v7l)
> BogoMIPS	: 6.00
> Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
> CPU implementer	: 0x41
> CPU architecture: 7
> CPU variant	: 0x2
> CPU part	: 0xc09
> CPU revision	: 10
> 
> Hardware	: Freescale i.MX6 Quad/DualLite (Device Tree)
> Revision	: 0000
> Serial		: 0000000000000000
> 

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-11  5:24 ` Michał Górny
  2019-09-11  6:42   ` Nick Howell
@ 2019-09-12 11:29   ` Rolf Eike Beer
  2019-09-12 13:38     ` Michał Górny
  2019-09-13  3:17   ` A Schenck
  2 siblings, 1 reply; 22+ messages in thread
From: Rolf Eike Beer @ 2019-09-12 11:29 UTC (permalink / raw
  To: gentoo-dev

Am 2019-09-11 07:24, schrieb Michał Górny:
> On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
>> Hi, everyone.
>> 
>> I've recently (finally!) started adding tests to cpuid2cpuflags.  
>> Tests
>> are based on mocked syscalls that return arch-specific data read from
>> text files.  So far I've got x86 and ppc covered, and now I'd like to
>> add tests for various arm hardware.  Since ARM covers a pretty broad
>> range of hardware, I'd use as much data as possible, especially from
>> different ARM generations.
>> 
>> If you have an ARM board and would like to help, please:
>> 
>> wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
>> tar -xf cpuid2cpuflags-7-dev.tar.bz2
>> cd cpuid2cpuflags-7-dev
>> ./configure
>> make hwcap-dump
>> ./hwcap-dump
>> 
>> and send me the output along with 'uname -m'.  TIA!
>> 
> 
> I'm sorry but sending it this late, I forgot two more important things:
> 
> 1. Name of the CPU or the board (i.e. something I can use to name
> the test).
> 
> 2. Output of cpuid2cpuflags, preferably verified against cpuinfo.

Wandboard:

# uname -m
armv7l
# hwcap-dump
hwcap:000000000008b8d6
hwcap2:0000000000000000
# ./cpuid2cpuflags
CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfp-d32 v4 v5 v6 v7 thumb2
# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 7.54
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls 
vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

Hardware        : Freescale i.MX6 Quad/DualLite (Device Tree)
Revision        : 0000
Serial          : 0000000000000000

Eike


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
                   ` (3 preceding siblings ...)
  2019-09-11 20:19 ` James Le Cuirot
@ 2019-09-12 13:13 ` James Cloos
  2019-09-12 13:47   ` Michał Górny
  2019-09-17 20:56 ` Michał Górny
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 22+ messages in thread
From: James Cloos @ 2019-09-12 13:13 UTC (permalink / raw
  To: gentoo-dev

On an odroidc1, I get:

# ./hwcap-dump
hwcap:000000000009b0d7
hwcap2:0000000000000000

# uname -m
armv7l

On an original dragonboard, I get:

# ./hwcap-dump
hwcap:0000000000000087
hwcap2:0000000000000000

# uname -m
aarch64

(Both run gentoo.)

The pi3 says:

hwcap:00000000003fb0d6
hwcap2:0000000000000010
armv7l

I have a couple of cheap arm32 (don't recall manuf) which report:

hwcap:00000000000fb8d7
hwcap2:0000000000000000
armv7l

A c.h.i.p. says:

hwcap:000000000008b0d6
hwcap2:0000000000000000
armv7l

All of my other arm boards are offline.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-12 11:29   ` Rolf Eike Beer
@ 2019-09-12 13:38     ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-12 13:38 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

On Thu, 2019-09-12 at 13:29 +0200, Rolf Eike Beer wrote:
> Am 2019-09-11 07:24, schrieb Michał Górny:
> > On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
> > > Hi, everyone.
> > > 
> > > I've recently (finally!) started adding tests to cpuid2cpuflags.  
> > > Tests
> > > are based on mocked syscalls that return arch-specific data read from
> > > text files.  So far I've got x86 and ppc covered, and now I'd like to
> > > add tests for various arm hardware.  Since ARM covers a pretty broad
> > > range of hardware, I'd use as much data as possible, especially from
> > > different ARM generations.
> > > 
> > > If you have an ARM board and would like to help, please:
> > > 
> > > wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> > > tar -xf cpuid2cpuflags-7-dev.tar.bz2
> > > cd cpuid2cpuflags-7-dev
> > > ./configure
> > > make hwcap-dump
> > > ./hwcap-dump
> > > 
> > > and send me the output along with 'uname -m'.  TIA!
> > > 
> > 
> > I'm sorry but sending it this late, I forgot two more important things:
> > 
> > 1. Name of the CPU or the board (i.e. something I can use to name
> > the test).
> > 
> > 2. Output of cpuid2cpuflags, preferably verified against cpuinfo.
> 
> Wandboard:
> 
> # uname -m
> armv7l
> # hwcap-dump
> hwcap:000000000008b8d6
> hwcap2:0000000000000000
> 

Thanks.  This is identical to Beaglebone, so I'm gonna skip it.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-12 13:13 ` James Cloos
@ 2019-09-12 13:47   ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-12 13:47 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

On Thu, 2019-09-12 at 09:13 -0400, James Cloos wrote:
> On an odroidc1, I get:
> 
> # ./hwcap-dump
> hwcap:000000000009b0d7
> hwcap2:0000000000000000
> 
> # uname -m
> armv7l

Thanks.  Added.

> 
> On an original dragonboard, I get:
> 
> # ./hwcap-dump
> hwcap:0000000000000087
> hwcap2:0000000000000000
> 
> # uname -m
> aarch64
> 
> (Both run gentoo.)

Added.

> 
> The pi3 says:
> 
> hwcap:00000000003fb0d6
> hwcap2:0000000000000010
> armv7l

Added.

> 
> I have a couple of cheap arm32 (don't recall manuf) which report:
> 
> hwcap:00000000000fb8d7
> hwcap2:0000000000000000
> armv7l

Added.

> 
> A c.h.i.p. says:
> 
> hwcap:000000000008b0d6
> hwcap2:0000000000000000
> armv7l

This one's identical to Compulab Utilite Pro.

> 
> All of my other arm boards are offline.
> 
> -JimC

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-11  5:24 ` Michał Górny
  2019-09-11  6:42   ` Nick Howell
  2019-09-12 11:29   ` Rolf Eike Beer
@ 2019-09-13  3:17   ` A Schenck
  2019-09-13  5:03     ` Michał Górny
  2 siblings, 1 reply; 22+ messages in thread
From: A Schenck @ 2019-09-13  3:17 UTC (permalink / raw
  To: gentoo-dev@lists.gentoo.org

On 9/10/19 10:24 PM, Michał Górny wrote:
> On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
>> Hi, everyone.
>>
>> I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
>> are based on mocked syscalls that return arch-specific data read from
>> text files.  So far I've got x86 and ppc covered, and now I'd like to
>> add tests for various arm hardware.  Since ARM covers a pretty broad
>> range of hardware, I'd use as much data as possible, especially from
>> different ARM generations.
>>
>> If you have an ARM board and would like to help, please:
>>
>> wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
>> tar -xf cpuid2cpuflags-7-dev.tar.bz2
>> cd cpuid2cpuflags-7-dev
>> ./configure
>> make hwcap-dump
>> ./hwcap-dump
>>
>> and send me the output along with 'uname -m'.  TIA!
>>
> I'm sorry but sending it this late, I forgot two more important things:
>
> 1. Name of the CPU or the board (i.e. something I can use to name
> the test).
>
> 2. Output of cpuid2cpuflags, preferably verified against cpuinfo.
>
Don't laugh, it actually still works as a NAS and nextcloud server:

amphisbœna ~/cpuid2cpuflags-7-dev # ./hwcap-dump
uhwcap:0000000000000097
hwcap2:0000000000000000

namphisbœna ~/cpuid2cpuflags-7-dev # uname -m
armv5tel

amphisbœna ~/cpuid2cpuflags-7-dev # ./cpuid2cpuflags
CPU_FLAGS_ARM: edsp thumb v4 v5

amphisbœna ~/cpuid2cpuflags-7-dev # dog /proc/cpuinfo
processor       : 0
model name      : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 400.00
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : Marvell Kirkwood (Flattened Device Tree)
Revision        : 0000
Serial          : 0000000000000000

amphisbœna ~/cpuid2cpuflags-7-dev # dog /proc/device-tree/model
Globalscale Technologies Dreamplug



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-13  3:17   ` A Schenck
@ 2019-09-13  5:03     ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-13  5:03 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1728 bytes --]

On Fri, 2019-09-13 at 03:17 +0000, A Schenck wrote:
> On 9/10/19 10:24 PM, Michał Górny wrote:
> > On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
> > > Hi, everyone.
> > > 
> > > I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> > > are based on mocked syscalls that return arch-specific data read from
> > > text files.  So far I've got x86 and ppc covered, and now I'd like to
> > > add tests for various arm hardware.  Since ARM covers a pretty broad
> > > range of hardware, I'd use as much data as possible, especially from
> > > different ARM generations.
> > > 
> > > If you have an ARM board and would like to help, please:
> > > 
> > > wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> > > tar -xf cpuid2cpuflags-7-dev.tar.bz2
> > > cd cpuid2cpuflags-7-dev
> > > ./configure
> > > make hwcap-dump
> > > ./hwcap-dump
> > > 
> > > and send me the output along with 'uname -m'.  TIA!
> > > 
> > I'm sorry but sending it this late, I forgot two more important things:
> > 
> > 1. Name of the CPU or the board (i.e. something I can use to name
> > the test).
> > 
> > 2. Output of cpuid2cpuflags, preferably verified against cpuinfo.
> > 
> Don't laugh, it actually still works as a NAS and nextcloud server:
> 
> amphisbœna ~/cpuid2cpuflags-7-dev # ./hwcap-dump
> uhwcap:0000000000000097
> hwcap2:0000000000000000
> 
> namphisbœna ~/cpuid2cpuflags-7-dev # uname -m
> armv5tel
> 
> amphisbœna ~/cpuid2cpuflags-7-dev # ./cpuid2cpuflags
> CPU_FLAGS_ARM: edsp thumb v4 v5
> 

Thank you!  Finally something older than v7 ;-).  All old hardware
appreciated to improve test coverage.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
                   ` (4 preceding siblings ...)
  2019-09-12 13:13 ` James Cloos
@ 2019-09-17 20:56 ` Michał Górny
  2019-09-18 12:56   ` Alfredo Tupone
  2019-09-25 15:22 ` Guilherme Amadio
                   ` (2 subsequent siblings)
  8 siblings, 1 reply; 22+ messages in thread
From: Michał Górny @ 2019-09-17 20:56 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
> Hi, everyone.
> 
> I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> are based on mocked syscalls that return arch-specific data read from
> text files.  So far I've got x86 and ppc covered, and now I'd like to
> add tests for various arm hardware.  Since ARM covers a pretty broad
> range of hardware, I'd use as much data as possible, especially from
> different ARM generations.
> 
> If you have an ARM board and would like to help, please:
> 
> wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> tar -xf cpuid2cpuflags-7-dev.tar.bz2
> cd cpuid2cpuflags-7-dev
> ./configure
> make hwcap-dump
> ./hwcap-dump
> 
> and send me the output along with 'uname -m'.  TIA!
> 

Thanks for all the data so far.  I've released v8 with the lot of ARM
tests just now.

If someone's got older hardware (<ARMv7), then I'd really use such
results.  After all, we technically do support ARMv4.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-17 20:56 ` Michał Górny
@ 2019-09-18 12:56   ` Alfredo Tupone
  0 siblings, 0 replies; 22+ messages in thread
From: Alfredo Tupone @ 2019-09-18 12:56 UTC (permalink / raw
  To: gentoo-dev

On 22:56 Tue 17 Sep     , Michał Górny wrote:
> On Tue, 2019-09-10 at 22:44 +0200, Michał Górny wrote:
> > Hi, everyone.
> > 
> > I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> > are based on mocked syscalls that return arch-specific data read from
> > text files.  So far I've got x86 and ppc covered, and now I'd like to
> > add tests for various arm hardware.  Since ARM covers a pretty broad
> > range of hardware, I'd use as much data as possible, especially from
> > different ARM generations.
> > 
> > If you have an ARM board and would like to help, please:
> > 
> > wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> > tar -xf cpuid2cpuflags-7-dev.tar.bz2
> > cd cpuid2cpuflags-7-dev
> > ./configure
> > make hwcap-dump
> > ./hwcap-dump
> > 
> > and send me the output along with 'uname -m'.  TIA!
> > 
> 
> Thanks for all the data so far.  I've released v8 with the lot of ARM
> tests just now.
> 
> If someone's got older hardware (<ARMv7), then I'd really use such
> results.  After all, we technically do support ARMv4.
> 
> -- 
> Best regards,
> Michał Górny
> 
Something from my RaspberryPI 1B+

Raspberry Pi 1 Model B+
./hwcap-dump
hwcap:00000000000081d6 hwcap2:0000000000000000
/proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2835
Revision        : 0010
Serial          : 00000000e598822e
./cpuid2cpuflags
CPU_FLAGS_ARM: edsp thumb vfp v4 v5 v6
uname -m
armv6l

Regards


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
                   ` (5 preceding siblings ...)
  2019-09-17 20:56 ` Michał Górny
@ 2019-09-25 15:22 ` Guilherme Amadio
  2019-09-25 16:03   ` Michał Górny
  2019-10-01 11:48 ` Roy Bamford
  2019-10-02 15:30 ` Piotr Szymaniak
  8 siblings, 1 reply; 22+ messages in thread
From: Guilherme Amadio @ 2019-09-25 15:22 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

Hi Michał,

On Tue, Sep 10, 2019 at 10:44:54PM +0200, Michał Górny wrote:
> Hi, everyone.
>
> I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> are based on mocked syscalls that return arch-specific data read from
> text files.  So far I've got x86 and ppc covered, and now I'd like to
> add tests for various arm hardware.  Since ARM covers a pretty broad
> range of hardware, I'd use as much data as possible, especially from
> different ARM generations.
>
> If you have an ARM board and would like to help, please:
>
> wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> tar -xf cpuid2cpuflags-7-dev.tar.bz2
> cd cpuid2cpuflags-7-dev
> ./configure
> make hwcap-dump
> ./hwcap-dump
>
> and send me the output along with 'uname -m'.  TIA!

Sorry for the late reply, I was on vacations in the last couple of
weeks. Here is some data on hardware not yet submitted:

## Raspberry Pi Zero W:
More info at: https://www.raspberrypi.org/products/raspberry-pi-zero-w

$ uname -m
armv6l

$ ./hwcap-dump
hwcap:00000000000081d6
hwcap2:0000000000000000

$ lscpu
Architecture:        armv6l
Byte Order:          Little Endian
CPU(s):              1
On-line CPU(s) list: 0
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           1
Vendor ID:           ARM
Model:               7
Model name:          ARM1176
Stepping:            r0p7
CPU max MHz:         1000.0000
CPU min MHz:         700.0000
BogoMIPS:            697.95
Flags:               half thumb fastmult vfp edsp java tls

/proc/cpuinfo:
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 997.08
Features	: half thumb fastmult vfp edsp java tls
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2835
Revision	: 9000c1
Serial		: 0000000081342439

## Raspberry Pi 4 Model B:
More info at: https://www.raspberrypi.org/products/raspberry-pi-4-model-b

$ uname -m
armv7l

$ ./hwcap-dump
hwcap:00000000003fb0d6
hwcap2:0000000000000010

$ lscpu
Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               3
Model name:          Cortex-A72
Stepping:            r0p3
CPU max MHz:         1500.0000
CPU min MHz:         600.0000
BogoMIPS:            270.00
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

/proc/cpuinfo
processor	: 0-3
model name	: ARMv7 Processor rev 3 (v7l)
BogoMIPS	: 270.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

Hardware	: BCM2835
Revision	: c03111
Serial		: 00000000299a8a34

## HP Moonshot XGene 1:
More info at: https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c04500662

$ uname -m
aarch64

$ ./hwcap-dump
hwcap:0000000000000007
hwcap2:0000000000000000

$ lscpu
Architecture:          aarch64
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    1
Core(s) per socket:    8
Socket(s):             1
NUMA node(s):          1
Model:                 1
BogoMIPS:              100.00
NUMA node0 CPU(s):     0-7
Flags:                 fp asimd evtstrm

/proc/cpuinfo:
processor	: 0-7
BogoMIPS	: 100.00
Features	: fp asimd evtstrm
CPU implementer	: 0x50
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0x000
CPU revision	: 1

## Cavium ThunderX:
More info at: https://en.wikichip.org/wiki/cavium/thunderx

$ uname -m
aarch64

$ ./hwcap-dump
hwcap:00000000000001ff
hwcap2:0000000000000000

$ lscpu
Architecture:          aarch64
Byte Order:            Little Endian
CPU(s):                96
On-line CPU(s) list:   0-95
Thread(s) per core:    1
Core(s) per socket:    48
Socket(s):             2
NUMA node(s):          2
Model:                 0
BogoMIPS:              200.00
L1d cache:             32K
L1i cache:             78K
L2 cache:              16384K
NUMA node0 CPU(s):     0-47
NUMA node1 CPU(s):     48-95
Flags:                 fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics

/proc/cpuinfo:
processor	: 0-95
BogoMIPS	: 200.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics
CPU implementer	: 0x43
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0x0a1
CPU revision	: 0

## Cavium ThunderX2:
More info at: https://en.wikichip.org/wiki/cavium/thunderx2

$ uname -m
aarch64

$ ./hwcap-dump
hwcap:00000000000019ff
hwcap2:0000000000000000

$ lscpu
Architecture:          aarch64
Byte Order:            Little Endian
CPU(s):                256
On-line CPU(s) list:   0-255
Thread(s) per core:    4
Core(s) per socket:    32
Socket(s):             2
NUMA node(s):          2
Model:                 1
BogoMIPS:              400.00
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              32768K
NUMA node0 CPU(s):     0-127
NUMA node1 CPU(s):     128-255
Flags:                 fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm

/proc/cpuinfo:
processor	: 0-255
BogoMIPS	: 400.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
CPU implementer	: 0x43
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0x0af
CPU revision	: 1


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-25 15:22 ` Guilherme Amadio
@ 2019-09-25 16:03   ` Michał Górny
  0 siblings, 0 replies; 22+ messages in thread
From: Michał Górny @ 2019-09-25 16:03 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

On Wed, 2019-09-25 at 17:22 +0200, Guilherme Amadio wrote:
> Hi Michał,
> 
> On Tue, Sep 10, 2019 at 10:44:54PM +0200, Michał Górny wrote:
> > Hi, everyone.
> > 
> > I've recently (finally!) started adding tests to cpuid2cpuflags.  Tests
> > are based on mocked syscalls that return arch-specific data read from
> > text files.  So far I've got x86 and ppc covered, and now I'd like to
> > add tests for various arm hardware.  Since ARM covers a pretty broad
> > range of hardware, I'd use as much data as possible, especially from
> > different ARM generations.
> > 
> > If you have an ARM board and would like to help, please:
> > 
> > wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> > tar -xf cpuid2cpuflags-7-dev.tar.bz2
> > cd cpuid2cpuflags-7-dev
> > ./configure
> > make hwcap-dump
> > ./hwcap-dump
> > 
> > and send me the output along with 'uname -m'.  TIA!
> 
> Sorry for the late reply, I was on vacations in the last couple of
> weeks. Here is some data on hardware not yet submitted:
> 

No problem.  Thanks.  I've added the aarch64 boards, the rest are
duplicates of what we have already.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
                   ` (6 preceding siblings ...)
  2019-09-25 15:22 ` Guilherme Amadio
@ 2019-10-01 11:48 ` Roy Bamford
  2019-10-02 15:30 ` Piotr Szymaniak
  8 siblings, 0 replies; 22+ messages in thread
From: Roy Bamford @ 2019-10-01 11:48 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 2911 bytes --]

On 2019.09.10 21:44, Michał Górny wrote:
> Hi, everyone.
> 
> I've recently (finally!) started adding tests to cpuid2cpuflags. 
> Tests
> are based on mocked syscalls that return arch-specific data read from
> text files.  So far I've got x86 and ppc covered, and now I'd like to
> add tests for various arm hardware.  Since ARM covers a pretty broad
> range of hardware, I'd use as much data as possible, especially from
> different ARM generations.
> 
> If you have an ARM board and would like to help, please:
> 
> wget https://dev.gentoo.org/~mgorny/dist/cpuid2cpuflags-7-dev.tar.bz2
> tar -xf cpuid2cpuflags-7-dev.tar.bz2
> cd cpuid2cpuflags-7-dev
> ./configure
> make hwcap-dump
> ./hwcap-dump
> 
> and send me the output along with 'uname -m'.  TIA!
> 
> -- 
> Best regards,
> Michał Górny
> 
> 

Team, this is going to be a long rambling tale of woe. Sorry in advance.
On arm64 cpuid2cpuflags-8 tells me
  
Pi4_~arm64 /usr/portage # cpuid2cpuflags 
CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2

but by chance I hit 
[Bug 695854] net-misc/freerdp-2.0.0_rc4 on arm64 - aarch64-unknown-linux-gnu-gcc: error: unrecognized command line option ‘-mfpu=neon’

The 32 bit arm instruction set is optional on arm64.
The 64 bit Raspberry Pis all have it
The Cavium Thunder does not.

It is unlikely that there will ever be a multilib arm64. Only a subset
of arm64 could ever support it, so should we be using CPU_FLAGS_ARM
to cover arm64 too?

There is nothing in the name. Its the content that matters.

On a Pi4 in 64 bit mode, cpuinfo shows
Pi4_~arm64 /usr/portage # cat /proc/cpuinfo 
processor       : 0
BogoMIPS        : 108.00
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

In 32 bit mode, the same CPU shows
$ cat pi4_32.txt 
processor	: 0
model name	: ARMv7 Processor rev 3 (v7l)
BogoMIPS	: 108.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3


Cavium (64 bit)
arm64-build / # cat /proc/cpuinfo 
processor	: 0
BogoMIPS	: 200.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x43
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0x0a1
CPU revision	: 1

The Cavium does not have any 32 bit instructions.

From bug 695854, CPU_FLAGS_ARM: neon is not correct on the Cavium.
I suspect that the other 32 bit flags will fail there, as it does not have them
but they might work on the Pi, as it does.

Other than pointing out the problem, I don't know how to test further. 
Guidance welcome.

-- 
Regards,

Roy Bamford
(Neddyseagoon) a member of
elections
gentoo-ops
forum-mods
arm64

[-- Attachment #2: Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags
  2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
                   ` (7 preceding siblings ...)
  2019-10-01 11:48 ` Roy Bamford
@ 2019-10-02 15:30 ` Piotr Szymaniak
  8 siblings, 0 replies; 22+ messages in thread
From: Piotr Szymaniak @ 2019-10-02 15:30 UTC (permalink / raw
  To: gentoo-dev; +Cc: arm

On Tue, Sep 10, 2019 at 10:44:54PM +0200, Michał Górny wrote:
> If you have an ARM board and would like to help, please:

## NanoPi NEO2
~ ./hwcap-dump
hwcap:00000000000008ff
hwcap2:0000000000000000
~ uname -m
aarch64
~ grep -m1 Features /proc/cpuinfo
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

## BananaPi M1
~ ./hwcap-dump
hwcap:00000000003fb0d6
hwcap2:0000000000000000
~ uname -m
armv7l
~ grep -m1 Features /proc/cpuinfo
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm


Best regards,
Piotr Szymaniak.
-- 
Czasem mysle o tych galonach piwa, ktore w siebie wlalem i jest mi
wstyd. Patrze na kufel i mysle o tych wszystkich pracownikach browaru,
ich nadziejach i marzeniach. Gdybym nie wypil tego piwa, moglbym ich
pozbawic marzen. I wtedy mowie do siebie: lepiej wypic to piwo i
spelnic ich marzenia, niz martwic sie egoistycznie swoja watroba.
  -- R. Dangerfield


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-10-02 15:31 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-10 20:44 [gentoo-dev] Need ARM/AArch64 test data for cpuid2cpuflags Michał Górny
2019-09-11  5:24 ` Michał Górny
2019-09-11  6:42   ` Nick Howell
2019-09-11  6:52     ` Michał Górny
2019-09-12 11:29   ` Rolf Eike Beer
2019-09-12 13:38     ` Michał Górny
2019-09-13  3:17   ` A Schenck
2019-09-13  5:03     ` Michał Górny
2019-09-11 17:09 ` Georgy Yakovlev
2019-09-11 17:33   ` Michał Górny
2019-09-11 18:02 ` Matt Turner
2019-09-11 18:15   ` Michał Górny
2019-09-11 20:19 ` James Le Cuirot
2019-09-11 20:37   ` Michał Górny
2019-09-12 13:13 ` James Cloos
2019-09-12 13:47   ` Michał Górny
2019-09-17 20:56 ` Michał Górny
2019-09-18 12:56   ` Alfredo Tupone
2019-09-25 15:22 ` Guilherme Amadio
2019-09-25 16:03   ` Michał Górny
2019-10-01 11:48 ` Roy Bamford
2019-10-02 15:30 ` Piotr Szymaniak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox