cpufetch
cpufetch copied to clipboard
M2 Unknown microarchitecture (expected cpu part differs from kernel)
Happening on a Macbook Air M2 running nixos.
cpufetch expects cpu parts 0x030/0x031 for Avalanche/Blizzard but I get 0x032/0x33, which should be the correct values according to the linux kernel, now that they are available.
https://github.com/Dr-Noob/cpufetch/blob/b1f20cfec6ff902975919ab6f3fd18be744f16fe/src/common/sysctl.h#L7-L10
Linux Kernel
#define APPLE_CPU_PART_M2_BLIZZARD 0x032
#define APPLE_CPU_PART_M2_AVALANCHE 0x033
#define APPLE_CPU_PART_M2_BLIZZARD_PRO 0x034
#define APPLE_CPU_PART_M2_AVALANCHE_PRO 0x035
#define APPLE_CPU_PART_M2_BLIZZARD_MAX 0x038
#define APPLE_CPU_PART_M2_AVALANCHE_MAX 0x039
https://github.com/torvalds/linux/blob/0048fbb4011ec55c32d3148b2cda56433f273375/arch/arm64/include/asm/cputype.h#L147-L152
Logs
> cpufetch
[ERROR]: Unknown microarchitecture detected: IM=0x61 P=0x32 V=0x1 R=0x0
[VERSION]: cpufetch v1.07 (Linux ARM build)
Please, create a new issue with this error message, your smartphone/computer model, the output of 'cpufetch --verbose' and 'cpufetch --debug' on https://github.com/Dr-Noob/cpufetch/issues
[ERROR]: Unknown microarchitecture detected: IM=0x61 P=0x33 V=0x1 R=0x0
[VERSION]: cpufetch v1.07 (Linux ARM build)
Please, create a new issue with this error message, your smartphone/computer model, the output of 'cpufetch --verbose' and 'cpufetch --debug' on https://github.com/Dr-Noob/cpufetch/issues
cpufetch v1.07 (Linux ARM build)
> cpufetch --debug
[Core 0] 0x611F0320 2424 MHz
[Core 1] 0x611F0320 2424 MHz
[Core 2] 0x611F0320 2424 MHz
[Core 3] 0x611F0320 2424 MHz
[Core 4] 0x611F0330 3204 MHz
[Core 5] 0x611F0330 3204 MHz
[Core 6] 0x611F0330 3204 MHz
[Core 7] 0x611F0330 3204 MHz
> cpufetch --verbose
[WARNING]: SoC detection failed using /proc/cpuinfo: No string found
."c.
,xNMM.
.lMM" SoC: Apple M2
MM* Technology: 5nm
.;loddo;:. olloddol;. CPU 1:
cKMMMMMMMMMMNWMMMMMMMMMMM0: Microarchitecture: Unknown
.KMMMMMMMMMMMMMMMMMMMMMMMW* Max Frequency: 2.424 GHz
XMMMMMMMMMMMMMMMMMMMMMMMX. Cores: 4 cores
;MMMMMMMMMMMMMMMMMMMMMMMM: Features: NEON,SHA1,SHA2,AES,CRC32
:MMMMMMMMMMMMMMMMMMMMMMMM: CPU 2:
.MMMMMMMMMMMMMMMMMMMMMMMMX. Microarchitecture: Unknown
kMMMMMMMMMMMMMMMMMMMMMMMMWd. Max Frequency: 3.204 GHz
'XMMMMMMMMMMMMMMMMMMMMMMMMMMk Cores: 4 cores
'XMMMMMMMMMMMMMMMMMMMMMMMMK. Features: NEON,SHA1,SHA2,AES,CRC32
kMMMMMMMMMMMMMMMMMMMMMMd Peak Performance: 45.02 GFLOP/s
'KMMMMMMMWXXWMMMMMMMk.
"cooc"* "*coo'"