Skip to content

Fix halt:N, stride overflow, and the window's live status - #1

Open
PrimeBuild-pc wants to merge 3 commits into
jlpetz:mainfrom
PrimeBuild-pc:fix/halt-stride-and-window
Open

PrimeBuild-pc wants to merge 3 commits into
jlpetz:mainfrom
PrimeBuild-pc:fix/halt-stride-and-window

Conversation

@PrimeBuild-pc

Copy link
Copy Markdown

Summary

errors=
  parse once, including halt:N
  the monitor stops at that count

cpu-stride
  checked span
  error, not an abort

tmr-cfg.json
  a file that does not parse is not overwritten
  unknown keys survive a save

window
  Stop reaches the menu calibration
  error count stays in the header
  green badge only for Passed
  plan / memory / cycles / errors write into the same box
  sound off by default
  timings and temperatures only if ZenTimings or LibreHardwareMonitor is already running

Evidence

  • Before: tmr errors=halt:5 is accepted and the console says Error Mode: Log and continue. cpus=2 cpu-stride=18446744073709551615 wraps the span check and aborts. A bad tmr-cfg.json can be replaced by defaults on the next calibration save. A running soak stays green on every tab except Run.
    After: session tests assert errors=halt:5 is HaltAfter(5). A stride that overflows returns an error. A file that does not parse is left as it was, and an unknown key survives a save. GUI tests still pass, including the calibration progress line.

cargo +nightly test --lib on the engine modules touched, and cargo +nightly test -p test-memory-r-gui --lib.

Merge Danger

Door: two-way

The results JSON schema is unchanged. MB now means 1024×1024 on both memory=2048MB and memory=2048MB-from-available (it was decimal only on the second). A window that had no notify key stays quiet.

Blast Radius: a soak that asked to stop at N errors, and the window during a failing run.

errors=halt:N was accepted and then run as log, including as a CLI override of a config that had it. cpu-stride near usize::MAX wrapped the span check and aborted. A tmr-cfg.json that did not parse could be replaced by defaults, and unknown keys were dropped on save. WHEA corrected and total were two atomics, so one step could call a corrected event uncorrected.

The window can stop its own calibration, keeps the error count in the header on every tab, and no longer paints a running soak green. Common plan, memory, cycles and errors settings write into the same parameters box. A sound on the first error is off by default. Timings and temperatures are read only, from a ZenTimings snapshot or LibreHardwareMonitor, when those are already running.
…results

The window's Calibrate no longer passes --yes. When a calibration is already stored, a dialog asks to replace it or keep it; Esc and a closed window keep it. Nothing stored is still saved without a question.

A run records ZenTimings primaries and a DIMM temperature when those tools are already running. The field is left out of the results file otherwise, so older files and the goldens stay as they are. Compare names the primaries when two runs differ.
tmr --get-readings fetches the official releases into companions\, checks the hashes, and does not install their drivers. --launch starts them; used alone it does not start a test. The window menu does the same download and puts the instructions in the Log tab.
jlpetz added a commit that referenced this pull request Nov 25, 2026
…ers keep their names, a rounded half-rate clock lands on its JEDEC rate, and an unchanged machine keeps its memory_id

Review of 5c4bdfa (TODO 132's forum feedback):
- Slots: a board that prints its slots from 0 (EC2 m6a.metal's CPU0_DIMM_A0, c5.metal's DIMM_A0) gave A-0 labels, and A-1 meant its
  second slot where it means the first on AMD's default. parse_smbios now keeps every Type 17's Device and Bank Locator, empty sockets
  too, and a 0 printed in any of them counts the machine's printed numbers from 1. Dell PowerEdge's bare A1..A16 (the letter a CPU
  socket, the number across its channels) no longer reads as channel A slot 16: a bare letter and number keeps the board's name. A
  machine mixing the printed scheme with AMD's default takes the board's names. Each number is 1 or 2 digits, so a firmware string
  "DIMM 4294967295" no longer overflows the + 1 (a debug-build panic).
- A module SMBIOS names nothing (a VM's) keeps an empty slot again, so the console says "a module" and the window "DIMM 1", as their
  fallbacks mean, not "#1". sysinfo.rs's two doc comments follow.
- Speeds: a pre-3.1 half-rate clock's double goes to the JEDEC rate within 2 MT/s of it (rates are multiples of 200/3 MT/s), so an MSI
  B350 TOMAHAWK ARCTIC's 1067 reads 2133 MT/s, not "2134 MT/s (SMBIOS max 2133)"; DDR4-2933's 1466/1467 read 2933, DDR3-1333's 667
  1333. The Speed field (0x15, MHz before 3.1 too) takes the same rule. A clock at or above the type's slowest rate (1600, DDR4-3200's)
  can't be told from DDR4-1600 without a firmware table and stays as it reads; the doc says so.
- memory_id: the fingerprint hashes the maximum as earlier builds hashed speed_mts, and the configured speed only where it is known and
  differs, so a machine whose configured speed is 0 or the maximum keeps the memory_id its earlier results and the 2026-11-03 baselines
  recorded (this dev box: 68da59656cfb2e1c again), while an XMP/EXPO change still moves it. Where it moves, compare_identity now says
  why: a "Module speeds" line, "not recorded" for a result from before 5c4bdfa.
- Tests: parse_smbios over a built firmware table (the version reaching the speeds, the Bank Locator from 0x11, an empty socket's name
  reaching the slots, the fingerprint against the old formula); the dead MemoryModule::speed_mts() is gone; test_detect_smbios no
  longer prints "MT/sMT/s".

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant