[pr-fix][memory] Recognize 3333 and 3733 MT/s DDR4 profiles in the F2 advisor #455

Manually merged
TrustNo1 merged 2 commits from superhero-520/Darner:fix-f2-ddr4-profile-rates into main 2026-12-05 04:51:39 +00:00
Contributor

Contributor role (optional)

superhero-520

What it changes

On d91d8e4d, F2 missed two DDR4 XMP ratings when firmware reported the sticks' 2133 MT/s SPD speed. The parser now recognizes 3333 and 3733 MT/s in the Corsair DDR4 and G.Skill DDR4 part-number fields. The 200 MT/s threshold and laptop exclusion are unchanged. No setting or BIOS configuration is written.

Both manufacturers list 2133 MT/s as the SPD speed. The XMP speeds are 3333 and 3733 MT/s respectively. Corsair CMK16GX4M2B3333C16 and G.Skill F4-3733C17D-16GTZA.

How it was tested

Tested 36003566d061d9d4cf23b2174280c735775b93bb on Windows 11. The same regression failed on d91d8e4d. On the final commit, cargo test -p darner-gpu --lib --locked host::specs passed 6 tests, with 1 existing hardware test ignored.

Using the production parser and advisor, simulated desktop firmware records now return (2133, 3333) and (2133, 3733). Both profiles at their rated speeds remain quiet. A DDR5-like Corsair identifier and an unrelated OEM number are rejected. A separate, in-memory firmware check on this laptop found two 3200 MT/s SO-DIMMs and no advisor warning. I did not test the physical desktop kits or make a gameplay performance measurement.

Workspace checks on that commit:

  • Both cargo clippy --workspace --all-targets --locked -- -D warnings and its --all-features variant passed. cargo xtask policy passed for 564 files.
  • cargo test --workspace --locked did not pass on this Windows host. In the two-thread run, two shader compiler tests and host::refresh_tests::chunked_nothing_new_with_matches_individual failed. Both compiler tests also failed on clean d91d8e4d in the same environment. With the matching DXC and DXIL DLLs selected explicitly, all three tests passed individually on both revisions. Issue #389 previously recorded the same refresh test failing intermittently in parallel.
  • With the DLLs pinned and RUST_TEST_THREADS=1, the full gate stopped at warm::tests::stderr_capture_preserves_exit_classification. This separate test failed 3/3 times on both revisions in isolation. It passed 3/3 times on this head with the top-level runner serial and its nested test process using the default parallel output format.

A complete serial cargo test --workspace --locked --no-fail-fast run with the matching DLLs finished in 41 min 56 s. Across the top-level Cargo test targets, 3,411 tests passed, 2 failed and 121 were ignored. The GPU target passed all 1,794 active tests (81 ignored). Both failing tests also failed on clean d91d8e4d: the warm fixture is fixed in #463, and the early-depth shader fixture reports an unwritten SV_Depth output and is addressed by #227.

In the same full run, the darner-game and darner-hle documentation test targets also failed to compile with E0463. When the documentation tests were rerun separately with cargo test --workspace --locked --doc --no-fail-fast, all 10 documentation targets completed on both this head and clean d91d8e4d (0 runnable examples). Both reruns used the existing build cache, one revision at a time. The cause of the earlier E0463 errors was not established. The full run still exited with code 101.

Checklist

  • The advisor was exercised directly with synthetic desktop records and real laptop firmware. No game run is claimed for this change.
  • One change based on main.
  • The diff contains one text source file and its regression test, in line with the asset policy.
  • Depends on: none.

Checked for overlap

  • Checked open and closed issues and PRs and the files changed by all 216 PRs open at the time. No matching issue, claim, or PR touching crates/darner-gpu/src/host/specs.rs was found.

AI-assisted contribution.

## Contributor role (optional) superhero-520 ## What it changes On `d91d8e4d`, F2 missed two DDR4 XMP ratings when firmware reported the sticks' 2133 MT/s SPD speed. The parser now recognizes 3333 and 3733 MT/s in the Corsair DDR4 and G.Skill DDR4 part-number fields. The 200 MT/s threshold and laptop exclusion are unchanged. No setting or BIOS configuration is written. Both manufacturers list 2133 MT/s as the SPD speed. The XMP speeds are 3333 and 3733 MT/s respectively. [Corsair CMK16GX4M2B3333C16](https://www.corsair.com/ww/en/p/memory/cmk16gx4m2b3333c16/vengeancea-lpx-16gb-2-x-8gb-ddr4-dram-3333mhz-c16-memory-kit-black-cmk16gx4m2b3333c16) and [G.Skill F4-3733C17D-16GTZA](https://www.gskill.com/specification/165/168/1536204426/F4-3733C17D-16GTZA-EOL-Specification). ## How it was tested Tested `36003566d061d9d4cf23b2174280c735775b93bb` on Windows 11. The same regression failed on `d91d8e4d`. On the final commit, `cargo test -p darner-gpu --lib --locked host::specs` passed 6 tests, with 1 existing hardware test ignored. Using the production parser and advisor, simulated desktop firmware records now return `(2133, 3333)` and `(2133, 3733)`. Both profiles at their rated speeds remain quiet. A DDR5-like Corsair identifier and an unrelated OEM number are rejected. A separate, in-memory firmware check on this laptop found two 3200 MT/s SO-DIMMs and no advisor warning. I did not test the physical desktop kits or make a gameplay performance measurement. Workspace checks on that commit: - Both `cargo clippy --workspace --all-targets --locked -- -D warnings` and its `--all-features` variant passed. `cargo xtask policy` passed for 564 files. - `cargo test --workspace --locked` did not pass on this Windows host. In the two-thread run, two shader compiler tests and `host::refresh_tests::chunked_nothing_new_with_matches_individual` failed. Both compiler tests also failed on clean `d91d8e4d` in the same environment. With the matching DXC and DXIL DLLs selected explicitly, all three tests passed individually on both revisions. [Issue #389](https://git.gtahub.st/TrustNo1/Darner/issues/389) previously recorded the same refresh test failing intermittently in parallel. - With the DLLs pinned and `RUST_TEST_THREADS=1`, the full gate stopped at `warm::tests::stderr_capture_preserves_exit_classification`. This separate test failed 3/3 times on both revisions in isolation. It passed 3/3 times on this head with the top-level runner serial and its nested test process using the default parallel output format. A complete serial `cargo test --workspace --locked --no-fail-fast` run with the matching DLLs finished in 41 min 56 s. Across the top-level Cargo test targets, 3,411 tests passed, 2 failed and 121 were ignored. The GPU target passed all 1,794 active tests (81 ignored). Both failing tests also failed on clean `d91d8e4d`: the warm fixture is fixed in [#463](https://git.gtahub.st/TrustNo1/Darner/pulls/463), and the early-depth shader fixture reports an unwritten `SV_Depth` output and is addressed by [#227](https://git.gtahub.st/TrustNo1/Darner/pulls/227). In the same full run, the `darner-game` and `darner-hle` documentation test targets also failed to compile with `E0463`. When the documentation tests were rerun separately with `cargo test --workspace --locked --doc --no-fail-fast`, all 10 documentation targets completed on both this head and clean `d91d8e4d` (0 runnable examples). Both reruns used the existing build cache, one revision at a time. The cause of the earlier `E0463` errors was not established. The full run still exited with code 101. ## Checklist - [x] The advisor was exercised directly with synthetic desktop records and real laptop firmware. No game run is claimed for this change. - [x] One change based on `main`. - [x] The diff contains one text source file and its regression test, in line with the asset policy. - [x] Depends on: none. ## Checked for overlap - [x] Checked open and closed issues and PRs and the files changed by all 216 PRs open at the time. No matching issue, claim, or PR touching `crates/darner-gpu/src/host/specs.rs` was found. AI-assisted contribution.
Recognise the documented non-hundred DDR4 XMP rates 3333 and 3733 MT/s in Corsair (CM...G...3333C16...) and G.Skill (F4-3733C17...) part-number rate fields inside part_speed, so slow_sticks still reports an XMP-off shortfall when SMBIOS reports only the 2133 MT/s SPD default.

Guarded by vendor prefix, rate allowlist, and 2-digit CAS marker so unrelated OEM or numeric SKU digits continue to return None, leaving existing generic/OEM parsing, rate bounds, and the 200 MT/s slack unchanged.
Replace the generic <digit>G prefix heuristic in ddr4_vendor_rate with an ASCII-byte GX4M prefix check so DDR5-shaped Corsair part numbers such as CMK16GX5M2B3333C16 are rejected, and add the GX5 negative case to the regression test.
superhero-520 changed title from WIP: [pr-fix][memory] Recognize 3333 and 3733 MT/s DDR4 profiles in the F2 advisor to [pr-fix][memory] Recognize 3333 and 3733 MT/s DDR4 profiles in the F2 advisor 2026-12-05 00:24:19 +00:00
TrustNo1 manually merged commit 5371520b41 into main 2026-12-05 04:51:39 +00:00
Sign in to join this conversation.
No reviewers
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
TrustNo1/Darner!455
No description provided.