Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR]: Found invalid cpu_family: 0xFA33415E on M3 MacBook Air #230

Closed
singularitti opened this issue Mar 21, 2024 · 13 comments
Closed

[ERROR]: Found invalid cpu_family: 0xFA33415E on M3 MacBook Air #230

singularitti opened this issue Mar 21, 2024 · 13 comments

Comments

@singularitti
Copy link

When I was running cpufetch --debug, I got the following error message:

$ cpufetch --debug
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.05 (macOS 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 --version
cpufetch v1.05 (macOS ARM build)

macOS version: 14.4 (23E214)
Chip: Apple M3

@singularitti
Copy link
Author

Related: #225 #217

@ThomasKaiser
Copy link

ThomasKaiser commented Mar 30, 2024

In the meantime I also switched to an M3 machine:

  Model Name: MacBook Air
  Model Identifier: Mac15,13
  Model Number: MXD43D/A
  Chip: Apple M3
  Total Number of Cores: 8 (4 performance and 4 efficiency)
  Memory: 16 GB
  System Firmware Version: 10151.101.3
  OS Loader Version: 10151.101.3
  System Version: macOS 14.4.1 (23E224)
  Kernel Version: Darwin 23.4.0

And unfortunately can confirm v1.05 not working (any more):

tk@mac-tk cpufetch % ./cpufetch --verbose
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.05-6-g2976 (macOS 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

tk@mac-tk cpufetch % ./cpufetch --debug  
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.05-6-g2976 (macOS 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

@Dr-Noob
Copy link
Owner

Dr-Noob commented Aug 24, 2024

Sorry for the super late reply. Takes some time but eventually I address all issues 😅

cpufetch already has support for the M3 (ce6e6f9), but your M3 is reporting a different cpu_family for some reason. If it's the same chip, why reporting a different value? Maybe it's because yours is the one with a 10-core GPU and the one in ce6e6f9 is the one with the 8-core GPU (see here)? Do you guys have any clue?

Anyway, I have added support for your cpu_family in branch i230. Could you confirm if it works as expected?

@singularitti
Copy link
Author

I'm sorry. I don't currently possess a M3 chip MacBook Air now. The latest built of cpufetch does work on my M3 Max.

@Dr-Noob
Copy link
Owner

Dr-Noob commented Aug 25, 2024

Maybe @ThomasKaiser can provide some feedback? 👀

@ThomasKaiser
Copy link

ThomasKaiser commented Aug 26, 2024

Unfortunately not, I've only access to three identical 'little' 0xFA33415E M3 since 'fast enough':

  Model Name: MacBook Air
  Model Identifier: Mac15,13
  Model Number: MXD43D/A
  Chip: Apple M3
  Total Number of Cores: 8 (4 performance and 4 efficiency)

Sorry, trying out i230 results in this:

tk@mac-tk cpufetch % git checkout -b i230                              
Switched to a new branch 'i230'

tk@mac-tk cpufetch % make
cc -Wall -Wextra -pedantic -DARCH_ARM -Wno-unused-parameter -std=c99 -fstack-protector-all -O2 -Wfloat-equal -Wshadow -Wpointer-arith -Wstrict-prototypes -march=armv8-a+sve -c src/arm/sve.c -o sve.o
cc -Wall -Wextra -pedantic -DARCH_ARM -Wno-unused-parameter -std=c99 -fstack-protector-all -O2 -Wfloat-equal -Wshadow -Wpointer-arith -Wstrict-prototypes -DGIT_FULL_VERSION=\""v1.06-12-g9f66"\" src/common/main.c src/common/cpu.c src/common/udev.c src/common/printer.c src/common/args.c src/common/global.c src/arm/midr.c src/arm/uarch.c src/common/soc.c src/arm/soc.c src/common/pci.c src/arm/udev.c sve.o src/common/sysctl.c -o cpufetch

tk@mac-tk cpufetch % ./cpufetch 
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-12-g9f66 (macOS 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

tk@mac-tk cpufetch % ./cpufetch --verbose
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-12-g9f66 (macOS 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

tk@mac-tk cpufetch % ./cpufetch --debug  
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-12-g9f66 (macOS 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

@Dr-Noob
Copy link
Owner

Dr-Noob commented Aug 26, 2024

Unfortunately not, I've only access to three identical 'little' 0xFA33415E M3 since 'fast enough':

  Model Name: MacBook Air
  Model Identifier: Mac15,13
  Model Number: MXD43D/A
  Chip: Apple M3
  Total Number of Cores: 8 (4 performance and 4 efficiency)

Sorry, trying out i230 results in this:

tk@mac-tk cpufetch % git checkout -b i230                              
Switched to a new branch 'i230'

tk@mac-tk cpufetch % make
cc -Wall -Wextra -pedantic -DARCH_ARM -Wno-unused-parameter -std=c99 -fstack-protector-all -O2 -Wfloat-equal -Wshadow -Wpointer-arith -Wstrict-prototypes -march=armv8-a+sve -c src/arm/sve.c -o sve.o
cc -Wall -Wextra -pedantic -DARCH_ARM -Wno-unused-parameter -std=c99 -fstack-protector-all -O2 -Wfloat-equal -Wshadow -Wpointer-arith -Wstrict-prototypes -DGIT_FULL_VERSION=\""v1.06-12-g9f66"\" src/common/main.c src/common/cpu.c src/common/udev.c src/common/printer.c src/common/args.c src/common/global.c src/arm/midr.c src/arm/uarch.c src/common/soc.c src/arm/soc.c src/common/pci.c src/arm/udev.c sve.o src/common/sysctl.c -o cpufetch

tk@mac-tk cpufetch % ./cpufetch 
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-12-g9f66 (macOS 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

tk@mac-tk cpufetch % ./cpufetch --verbose
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-12-g9f66 (macOS 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

tk@mac-tk cpufetch % ./cpufetch --debug  
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-12-g9f66 (macOS 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

git checkout -b creates a new branch. To actually checkout my branch:

git fetch origin i230
git checkout i230

@ThomasKaiser
Copy link

To actually checkout my branch

Unfortunately it doesn't change the output or I'm still doing something wrong:

tk@mac-tk cpufetch % git fetch origin i230
From https://github.com/Dr-Noob/cpufetch
 * branch            i230       -> FETCH_HEAD

tk@mac-tk cpufetch % git checkout i230
Already on 'i230'

tk@mac-tk cpufetch % make clean

tk@mac-tk cpufetch % make
cc -Wall -Wextra -pedantic -DARCH_ARM -Wno-unused-parameter -std=c99 -fstack-protector-all -O2 -Wfloat-equal -Wshadow -Wpointer-arith -Wstrict-prototypes -march=armv8-a+sve -c src/arm/sve.c -o sve.o
cc -Wall -Wextra -pedantic -DARCH_ARM -Wno-unused-parameter -std=c99 -fstack-protector-all -O2 -Wfloat-equal -Wshadow -Wpointer-arith -Wstrict-prototypes -DGIT_FULL_VERSION=\""v1.06-12-g9f66"\" src/common/main.c src/common/cpu.c src/common/udev.c src/common/printer.c src/common/args.c src/common/global.c src/arm/midr.c src/arm/uarch.c src/common/soc.c src/arm/soc.c src/common/pci.c src/arm/udev.c sve.o src/common/sysctl.c -o cpufetch

tk@mac-tk cpufetch % ./cpufetch 
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-12-g9f66 (macOS 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

@Dr-Noob
Copy link
Owner

Dr-Noob commented Aug 26, 2024

You need git checkout FETCH_HEAD -B i230, or starting from scratch (remove the directory and clone, fetch, checkout again). If you are in the correct branch you should see:

$ git log --oneline | head -n1
1dd8016 [v1.06][ARM] Add support for M3 (different cpu_family) (#230)

otherwise there is something wrong.

@ThomasKaiser
Copy link

tk@mac-tk cpufetch % git log --oneline | head -n1
1dd8016 [v1.06][ARM] Add support for M3 (different cpu_family) (#230)

tk@mac-tk cpufetch % ./cpufetch --verbose
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-6-g1dd8 (macOS 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
[WARNING]: SoC detection failed using cpu_subfamily

                                                            SoC:                 Unknown
                                                            Technology:          Unknown
     ############    ##########   ####  #######  ########   CPU 1:
  ###############    #########    ########################    Microarchitecture: Sawtooth
 ####        ####    ####         #####   ########   #####    Max Frequency:     2.750 GHz
####         ####    ####         ####     ######     ####    Cores:             4 cores
####         ####    ####         ####      ####      ####    Features:          NEON,SHA1,SHA2,AES,CRC32
 ####       #####    ####         ####      ####      ####  CPU 2:
  ###############    ####         ####      ####      ####    Microarchitecture: Everest
   ########  ####    ####         ####      ####      ####    Max Frequency:     4.050 GHz
                                                              Cores:             4 cores
                                                              Features:          NEON,SHA1,SHA2,AES,CRC32
                                                            Peak Performance:    195.60 GFLOP/s

tk@mac-tk cpufetch % ./cpufetch --debug  
[ERROR]: Found invalid cpu_family: 0xFA33415E
[VERSION]: cpufetch v1.06-6-g1dd8 (macOS 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.06-6-g1dd8 (macOS ARM build)
hw.cpufamily: 0xFA33415E
hw.cpusubfamily: 0x00000002
hw.nperflevels: 2
hw.physicalcpu: 8
hw.perflevel0.physicalcpu: 4
hw.perflevel1.physicalcpu: 4

@Dr-Noob
Copy link
Owner

Dr-Noob commented Aug 26, 2024

Damn, my detection for Apple chips is so annoying! I really need to reimplement this. I forgot to update the SoC detection, it should work with the patch I have pushed recently. I have also pushed a commit to fix the peak performance 👍

@ThomasKaiser
Copy link

                   ."c.         
                 ,xNMM.         
                .lMM"           SoC:                 Apple M3
                MM*             Technology:          3nm
     .;loddo;:.   olloddol;.    CPU 1:
   cKMMMMMMMMMMNWMMMMMMMMMMM0:    Microarchitecture: Sawtooth
 .KMMMMMMMMMMMMMMMMMMMMMMMW*      Max Frequency:     2.750 GHz
 XMMMMMMMMMMMMMMMMMMMMMMMX.       Cores:             4 cores
;MMMMMMMMMMMMMMMMMMMMMMMM:        Features:          NEON,SHA1,SHA2,AES,CRC32
:MMMMMMMMMMMMMMMMMMMMMMMM:      CPU 2:
.MMMMMMMMMMMMMMMMMMMMMMMMX.       Microarchitecture: Everest
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.     Max Frequency:     4.050 GHz
 'XMMMMMMMMMMMMMMMMMMMMMMMMMMk    Cores:             4 cores
  'XMMMMMMMMMMMMMMMMMMMMMMMMK.    Features:          NEON,SHA1,SHA2,AES,CRC32
    kMMMMMMMMMMMMMMMMMMMMMMd    Peak Performance:    782.40 GFLOP/s
     'KMMMMMMMWXXWMMMMMMMk.     
       "cooc"*    "*coo'"       

@Dr-Noob
Copy link
Owner

Dr-Noob commented Aug 29, 2024

Thanks for the feedback! Merged 👍

@Dr-Noob Dr-Noob closed this as completed Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants