CPU type is not detected in log.
Box64 with Dynarec v0.3.1 9eaaaaa
In my game launching log, the cpu is not detected/recognized correctly, eg,
rico [ /opt/games/keeperrl ]$ ./box64-start.sh
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on - - - - - - - - - - - - - - - - with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
Params database has 89 entries
Box64 with Dynarec v0.3.1 9eaaaaa built on Sep 4 2024 06:35:23
BOX64: Detected 48bits at least of address space
However, lscpu can show cpu correctly,
rico [ ~/rk3588-sdk ]$ lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: ARM
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
Caches (sum of all):
L1d: 384 KiB (8 instances)
L1i: 384 KiB (8 instances)
L2: 2.5 MiB (8 instances)
L3: 3 MiB (1 instance)
Vulnerabilities:
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Mitigation; CSV2, BHB
Srbds: Not affected
Tsx async abort: Not affected
This should now be resolved via: https://github.com/ptitSeb/box64/commit/b7c5adae3d0a5567e71ae4ecd5da71721fd71227
hmmm, I'm afraid not.
The out put is now like -
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on - with 8 cores
as in recent test, https://github.com/ptitSeb/box86-compatibility-list/issues/558
Should be cpu name? like Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on Neoverse-N1 with 4 cores
as in https://github.com/ptitSeb/box86-compatibility-list/issues/554#issuecomment-2560868655
PS. my uname -m
rico [ ~ ]$ uname -m
aarch64
Ah... I see the issue. The cpu name actually is in model field.
rico [ ~ ]$ lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: ARM
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x2
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 1800.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 18%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 18%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm lrcpc dcpop asimddp
Model name: -
Model: Rockchip RK3588
Thread(s) per core: 0
Core(s) per socket: 0
Socket(s): 0
Stepping: 0x4
Model name: -
Model: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
CPU(s) scaling MHz: 100%
CPU max MHz: 2256.0000
CPU min MHz: 408.0000
Caches (sum of all):
L1d: 384 KiB (8 instances)
L1i: 384 KiB (8 instances)
L2: 2.5 MiB (8 instances)
L3: 3 MiB (1 instance)
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Mitigation; CSV2, BHB
Srbds: Not affected
Tsx async abort: Not affected
You're right, that was a related but separate issue that was fixed. We probably need some logic to account for cases where the "Model name" field is incomplete or just always use "Model" instead.
rico [ ~ ]$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x2
CPU part : 0xd05
CPU revision : 0
processor : 1
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x2
CPU part : 0xd05
CPU revision : 0
processor : 2
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x2
CPU part : 0xd05
CPU revision : 0
processor : 3
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x2
CPU part : 0xd05
CPU revision : 0
processor : 4
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 0
processor : 5
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 0
processor : 6
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 0
processor : 7
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
cpu model : Rockchip RK3588
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 0
FYI.
Maybe add if here. I wish I could code.
https://github.com/ptitSeb/box64/blob/ebf03f88786fe43b23dd2cb9d5ba753d660b3ce2/src/tools/my_cpuid.c#L137