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

Errors on SpacemiT X60 (K1/M1) on Kernel 6.6 #312

Open
cwt opened this issue Dec 2, 2024 · 0 comments
Open

Errors on SpacemiT X60 (K1/M1) on Kernel 6.6 #312

cwt opened this issue Dec 2, 2024 · 0 comments

Comments

@cwt
Copy link

cwt commented Dec 2, 2024

As the issue previously reported in #286 has been resolved and cpufetch now works correctly on the vendor kernel 6.1.15, I'd like to provide an update regarding kernel compatibility.

The Bianbu project, the primary kernel provider for this CPU, has announced their focus on Bianbu 2.x, which uses kernel 6.6. However, when running cpufetch on kernel 6.6, numerous errors have been encountered, which I will detail below:

$ ./cpufetch --verbose
[ERROR]: parse_multi_letter_extension: Unknown multi-letter extension: zicond
[VERSION]: cpufetch v1.06-39-ga0c0 (Linux RISC-V build)
[WARNING]: parse_cpuinfo_field: Unable to find field uarch              :
[WARNING]: get_uarch_from_cpuinfo: Unable to detect microarchitecture using uarch: cpuinfo_str is NULL

                      :#:  Hypervisor:
                   :####:  Max Freq:
                :#######:  Technology:
              :#########:  Cores (Total):
              :#########:  Sockets:
              :#######:    L1i Size:
              :####:        - (I) Integer Instruction Set
              :#:           - (M) Integer Multiplication and Division
:##:             :#:        - (A) Atomic Instructions
:####:         :###:        - (F) Single-Precision Floating-Point
:#######:     :####:        - (D) Double-Precision Floating-Point
:##########:  :###:         - (C) Compressed Instructions
:###########: :#:           - (V) Vector Operations
:###########:               - (Zicbom) Cache Block Management Operations
 :##########:               - (Zicboz) Cache Block Zero Operations
    :#######:               - (Zicntr) Base Counters and Timers
       :####:              $C1                  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM  $C1                  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM  $C1                .::   'MMMMMMMMMM
         :##:

The output from /proc/cpuinfo on kernel 6.6 contains a lot more informations than 6.1:

$ cat /proc/cpuinfo
processor       : 0
hart            : 0
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

processor       : 1
hart            : 1
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

processor       : 2
hart            : 2
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

processor       : 3
hart            : 3
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

processor       : 4
hart            : 4
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

processor       : 5
hart            : 5
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

processor       : 6
hart            : 6
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

processor       : 7
hart            : 7
model name      : Spacemit(R) X60
isa             : rv64imafdcv_zicbom_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvfhmin_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt
mmu             : sv39
mvendorid       : 0x710
marchid         : 0x8000000058000001
mimpid          : 0x1000000049772200

Hexdump /proc/device-tree/compatible on 6.6 showing the same as 6.1:

$ hexdump -C /proc/device-tree/compatible
00000000  73 70 61 63 65 6d 69 74  2c 6b 31 2d 78 00        |spacemit,k1-x.|
0000000e

Please let me know if you need any more information.

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

1 participant