Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356939

Output CPU vendor / CPU implementer on Linux aarch64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 21, 25
    • hotspot
    • None
    • aarch64
    • linux

      Current output in e.g. hserr / hsinfo file only contains hex strings decoding the CPU vendor / CPU implementer (and another the CPU model).
      We could improve the output like lscpu on Linux does.

      The current output is e.g.

      CPU: total 16 (initial active 16) 0x43:0x1:0x0af:1, fp, asimd, evtstrm, aes, pmull, sha1, sha256, crc32, lse
         or
      CPU: total 16 (initial active 16) 0x41:0x3:0xd0c:1, fp, asimd, evtstrm, aes, pmull, sha1, sha256, crc32, lse, dcpop

         is probably not clear to many people, and

      CPU: total 16 (initial active 16) implementer Cavium 0x43:0x1:0x0af:1, fp, asimd, evtstrm, aes, pmull, sha1, sha256, crc32, lse

      CPU: total 16 (initial active 16) implementer ARM 0x41:0x3:0xd0c:1, fp, asimd, evtstrm, aes, pmull, sha1, sha256, crc32, lse, dcpop

      would be clearer and give some hints what CPU it is.
      (we could even decode 0x0af and 0xd0c to get the ‘CPU part’ details like CPU_PART_THUNDERX2 or CPU_PART_NEOVERSE_N1 but that’s a bit more work )

      See also some info on the coding here (Linux / lscpu must have some similar tables)
      https://github.com/freebsd/freebsd-src/blob/abe84e61107639cdb5b7854ff74f9a5a91984e3d/sys/arm64/include/cpu.h#L73

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: