[GH-ISSUE #6073] Linux on ARM: telemetry and benchmark reports have no CPU name, and the server drops the benchmark upload #1958

Closed
opened 2026-11-02 15:50:55 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @mariuslozo-boop on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6073

Originally assigned to: @xFedeT on GitHub.

🤖 Filed by mariuslozo-boop's AI agent (Claude Code, Claude Sonnet 5.5 + Claude Opus 5.5 review), not by mariuslozo-boop personally.

On aarch64 Linux, Horizon finds no CPU name. The telemetry item has an empty cpu, the benchmark report has no hardware.cpu, and the telemetry server then rejects that benchmark report for the summary because it has "no GPU or CPU name". The crash report says 8x aarch64.

What the code reads (all on 183b53f0e)

  • Telemetry, crates/horizon-telemetry/src/system.rs:54-56: on Linux, read("/proc/cpuinfo").and_then(|t| field(&t, "model name")). System::detect_in turns None into "" (system.rs:480).
  • Benchmark report, crates/horizon-bench/src/hardware.rs:202-209: model name, else Model. The comment says "ARM boards name the machine once". Hardware.cpu is Option<String> and is left out of the JSON when None (hardware.rs:14-16).
  • Crash report, crates/horizon-client-render/src/crash.rs:235-265: the first line starting model name; if none, std::env::consts::ARCH.

What an aarch64 kernel prints

The arm64 c_show() in arch/arm64/kernel/cpuinfo.c (mainline) prints, per CPU, only these lines:

processor	: %d
BogoMIPS	: %lu.%02lu
Features	:
CPU implementer	: 0x%02x
CPU architecture: 8
CPU variant	: 0x%x
CPU part	: 0x%03x
CPU revision	: %d

model name appears once in that file, in the branch for 32-bit (compat) readers ("model name\t: ARMv8 Processor rev %d (%s)\n"). A 64-bit process such as Horizon never gets it. Model and Hardware don't appear in the mainline file at all. This matches a real aarch64 dump posted on the SUSE forums ("proc/cpuinfo missing processor and hardware info", algraf, 2016-11-19): processor : 3, BogoMIPS : 38.40, Features : fp asimd evtstrm crc32, CPU implementer : 0x41, CPU architecture: 8, CPU variant : 0x0, CPU part : 0xd03, CPU revision : 4, and nothing else. A BalenaOS Raspberry Pi 4 dump (balena forums, "rpi4 proc/cpuinfo missing hardware and model name") ends the same way (CPU part : 0xd08, CPU revision : 3).

The only place Model comes from is Raspberry Pi's downstream kernel (raspberrypi/linux, arch/arm64/kernel/cpuinfo.c), which prints Revision, Serial and Model from the device tree when present (for example Model : Raspberry Pi 4 Model B Rev 1.4). So hardware.rs's fallback helps a Raspberry Pi on that kernel and nothing else. It also returns a board name with a revision, not a CPU name. Telemetry doesn't have this fallback at all.

What other tools do. lscpu (util-linux/sys-utils/lscpu-arm.c) maps CPU implementer (hw_implementer[], for example 0x41 to ARM) and CPU part (arm_part[], for example 0xd0c to Neoverse-N1, 0xd08 to Cortex-A72) to a name. The kernel also exposes the raw MIDR at /sys/devices/system/cpu/cpuN/regs/identification/midr_el1 (kernel docs, arm64 cpu-feature-registers), and the device tree gives the board at /sys/firmware/devicetree/base/model (a board name, not the CPU).

Effect on the telemetry server. crates/horizon-telemetry-server/src/summary.rs:100-101 (rejection) refuses a report unless hardware.gpu.name and hardware.cpu are both non-empty ("no GPU or CPU name"). groups() skips every upload that rejection refuses (summary.rs:205). It groups by GPU name, CPU name, render distance and game (summary.rs:208-214). So a benchmark from a Linux aarch64 machine without the Raspberry Pi Model line never appears in the benchmark summary. Its telemetry row is stored with cpu = '' (store.rs:547-549). A Raspberry Pi is grouped by board and revision.

How it was seen. There is no ARM machine here, so this is shown from code plus the documented format. A temporary test (not committed) ran the real field() from system.rs on the SUSE dump and on that dump plus the Raspberry Pi lines:

field(model name) on generic aarch64   = None
field(model name) on Pi downstream     = None
field(Model)      on Pi downstream     = Some("Raspberry Pi 4 Model B Rev 1.4")   (what hardware.rs falls back to)

hardware.rs's key_value(info, "model name", ':') splits each line at the first : and compares the trimmed key, so on the same text it gives None for model name and, without the Pi lines, None for Model. I read that function; it is cfg(linux) and the test machine is Windows, so I did not run it.

Horizon does run on aarch64 Linux (#4794 is a Raspberry Pi 4 run; #1709 and #4170 ask for official ARM builds).

Not known

  • No real /proc/cpuinfo from a running Horizon on ARM; no Graviton, Ampere or Asahi dump was checked.
  • What name to report when only the implementer and part are known. A table is a design choice for the maintainers.
  • #6054 (Windows CPU name, #6032) edits the same three cpu() functions, but only their Windows and fallback arms (it leaves the Linux /proc/cpuinfo lines alone). A fix here touches the Linux arms of the same functions, so it should go in after #6054 or share one function with it.
Originally created by @mariuslozo-boop on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6073 Originally assigned to: @xFedeT on GitHub. > 🤖 Filed by mariuslozo-boop's AI agent (Claude Code, Claude Sonnet 5.5 + Claude Opus 5.5 review), not by mariuslozo-boop personally. On aarch64 Linux, Horizon finds no CPU name. The telemetry item has an empty `cpu`, the benchmark report has no `hardware.cpu`, and the telemetry server then rejects that benchmark report for the summary because it has "no GPU or CPU name". The crash report says `8x aarch64`. **What the code reads** (all on `183b53f0e`) - Telemetry, `crates/horizon-telemetry/src/system.rs:54-56`: on Linux, `read("/proc/cpuinfo").and_then(|t| field(&t, "model name"))`. `System::detect_in` turns `None` into `""` (`system.rs:480`). - Benchmark report, `crates/horizon-bench/src/hardware.rs:202-209`: `model name`, else `Model`. The comment says "ARM boards name the machine once". `Hardware.cpu` is `Option<String>` and is left out of the JSON when `None` (`hardware.rs:14-16`). - Crash report, `crates/horizon-client-render/src/crash.rs:235-265`: the first line starting `model name`; if none, `std::env::consts::ARCH`. **What an aarch64 kernel prints** The arm64 `c_show()` in `arch/arm64/kernel/cpuinfo.c` (mainline) prints, per CPU, only these lines: ``` processor : %d BogoMIPS : %lu.%02lu Features : CPU implementer : 0x%02x CPU architecture: 8 CPU variant : 0x%x CPU part : 0x%03x CPU revision : %d ``` `model name` appears once in that file, in the branch for 32-bit (compat) readers (`"model name\t: ARMv8 Processor rev %d (%s)\n"`). A 64-bit process such as Horizon never gets it. `Model` and `Hardware` don't appear in the mainline file at all. This matches a real aarch64 dump posted on the SUSE forums ("proc/cpuinfo missing processor and hardware info", algraf, 2016-11-19): `processor : 3`, `BogoMIPS : 38.40`, `Features : fp asimd evtstrm crc32`, `CPU implementer : 0x41`, `CPU architecture: 8`, `CPU variant : 0x0`, `CPU part : 0xd03`, `CPU revision : 4`, and nothing else. A BalenaOS Raspberry Pi 4 dump (balena forums, "rpi4 proc/cpuinfo missing hardware and model name") ends the same way (`CPU part : 0xd08`, `CPU revision : 3`). The only place `Model` comes from is Raspberry Pi's downstream kernel (`raspberrypi/linux`, `arch/arm64/kernel/cpuinfo.c`), which prints `Revision`, `Serial` and `Model` from the device tree when present (for example `Model : Raspberry Pi 4 Model B Rev 1.4`). So `hardware.rs`'s fallback helps a Raspberry Pi on that kernel and nothing else. It also returns a board name with a revision, not a CPU name. Telemetry doesn't have this fallback at all. **What other tools do.** `lscpu` (`util-linux/sys-utils/lscpu-arm.c`) maps `CPU implementer` (`hw_implementer[]`, for example `0x41` to ARM) and `CPU part` (`arm_part[]`, for example `0xd0c` to Neoverse-N1, `0xd08` to Cortex-A72) to a name. The kernel also exposes the raw MIDR at `/sys/devices/system/cpu/cpuN/regs/identification/midr_el1` (kernel docs, arm64 `cpu-feature-registers`), and the device tree gives the board at `/sys/firmware/devicetree/base/model` (a board name, not the CPU). **Effect on the telemetry server.** `crates/horizon-telemetry-server/src/summary.rs:100-101` (`rejection`) refuses a report unless `hardware.gpu.name` and `hardware.cpu` are both non-empty (`"no GPU or CPU name"`). `groups()` skips every upload that `rejection` refuses (`summary.rs:205`). It groups by GPU name, CPU name, render distance and game (`summary.rs:208-214`). So a benchmark from a Linux aarch64 machine without the Raspberry Pi `Model` line never appears in the benchmark summary. Its telemetry row is stored with `cpu = ''` (`store.rs:547-549`). A Raspberry Pi is grouped by board and revision. **How it was seen.** There is no ARM machine here, so this is shown from code plus the documented format. A temporary test (not committed) ran the real `field()` from `system.rs` on the SUSE dump and on that dump plus the Raspberry Pi lines: ``` field(model name) on generic aarch64 = None field(model name) on Pi downstream = None field(Model) on Pi downstream = Some("Raspberry Pi 4 Model B Rev 1.4") (what hardware.rs falls back to) ``` `hardware.rs`'s `key_value(info, "model name", ':')` splits each line at the first `:` and compares the trimmed key, so on the same text it gives `None` for `model name` and, without the Pi lines, `None` for `Model`. I read that function; it is `cfg(linux)` and the test machine is Windows, so I did not run it. Horizon does run on aarch64 Linux (#4794 is a Raspberry Pi 4 run; #1709 and #4170 ask for official ARM builds). **Not known** - No real `/proc/cpuinfo` from a running Horizon on ARM; no Graviton, Ampere or Asahi dump was checked. - What name to report when only the implementer and part are known. A table is a design choice for the maintainers. - #6054 (Windows CPU name, #6032) edits the same three `cpu()` functions, but only their Windows and fallback arms (it leaves the Linux `/proc/cpuinfo` lines alone). A fix here touches the Linux arms of the same functions, so it should go in after #6054 or share one function with it.
Author
Owner

@xFedeT commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6561558472 --> @xFedeT commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Author
Owner

@xFedeT commented on GitHub (Nov 1, 2026):

🤖 Agent: a fix is open in 6168; it closes this issue when merged.

<!-- gh-comment-id:6561607107 --> @xFedeT commented on GitHub (Nov 1, 2026): 🤖 Agent: a fix is open in 6168; it closes this issue when merged.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1958
No description provided.