[PR #1877] [CLOSED] monitor: check the AMD board name's capacity against the memory the driver reads #3730

Closed
opened 2026-11-07 15:30:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1877
Author: @phoenixclyde
Created: 10/10/2026
Status: ❌ Closed

Base: main ← Head: amd-monitor-name-consistency


📝 Commits (1)

  • 0f36394 monitor: check the AMD board name's capacity against the memory the driver reads

📊 Changes

1 file changed (+16 additions, -1 deletions)

View changed files

📝 serve/telemetry.py (+16 -1)

📄 Description

Our MI50's FRU string is Radeon Instinct MI50 16GB on a 32 GB part (PCI ID 1002:66a1, mem_info_vram_total = 34,342,961,152 B = 31.98 GiB), so the Monitor shows / 32 GB next to a name that says 16GB.

_Amd.name() reads that string straight out of product_name, which the kernel documents as the board's FRU EEPROM contents ("as returned from the FRU"), and a FRU can disagree with what is fitted - a re-badged card or a FRU left at the wrong SKU, both common on second-hand Instinct parts. The memory size, by contrast, comes from the card's own configuration.

This makes the capacity in the name agree with the driver's figure. It is deliberately a consistency check and not a table of known cards:

  • a name with no capacity (Radeon Pro VII) hits not m and is returned untouched;
  • a name whose capacity already agrees hits == want and is returned unchanged (MI60 32GB, and a true 16 GB MI50 keep their own strings);
  • mem_info_vram_total missing (not total) also returns the name as-is, so a card whose VRAM the driver does not report is unaffected;
  • the substitution keeps any suffix after the number, so ... 16GB HBM2 becomes ... 32GB HBM2 rather than dropping it.

On our MI50 this turns Radeon Instinct MI50 16GB into Radeon Instinct MI50 32GB, read straight off /metrics. Output-identical aside from the name; no behaviour elsewhere in telemetry.py is touched.

Verified on gfx906 (MI50 32 GB) against the current main: _Amd._int() is the existing helper for reading a single integer out of sysfs, and the change adds one stdlib import (import re) which the module did not previously need.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1877 **Author:** [@phoenixclyde](https://github.com/phoenixclyde) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `amd-monitor-name-consistency` --- ### 📝 Commits (1) - [`0f36394`](https://github.com/Niko1221/Strata/commit/0f3639456f0488881e06f7874da0db7a3257238e) monitor: check the AMD board name's capacity against the memory the driver reads ### 📊 Changes **1 file changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `serve/telemetry.py` (+16 -1) </details> ### 📄 Description Our MI50's FRU string is `Radeon Instinct MI50 16GB` on a 32 GB part (PCI ID `1002:66a1`, `mem_info_vram_total` = 34,342,961,152 B = 31.98 GiB), so the Monitor shows `/ 32 GB` next to a name that says 16GB. `_Amd.name()` reads that string straight out of `product_name`, which the kernel documents as the board's FRU EEPROM contents ("as returned from the FRU"), and a FRU can disagree with what is fitted - a re-badged card or a FRU left at the wrong SKU, both common on second-hand Instinct parts. The memory size, by contrast, comes from the card's own configuration. This makes the capacity in the name agree with the driver's figure. It is deliberately a consistency check and not a table of known cards: - a name with **no** capacity (`Radeon Pro VII`) hits `not m` and is returned untouched; - a name whose capacity **already agrees** hits `== want` and is returned unchanged (`MI60 32GB`, and a true 16 GB MI50 keep their own strings); - `mem_info_vram_total` missing (`not total`) also returns the name as-is, so a card whose VRAM the driver does not report is unaffected; - the substitution keeps any suffix after the number, so `... 16GB HBM2` becomes `... 32GB HBM2` rather than dropping it. On our MI50 this turns `Radeon Instinct MI50 16GB` into `Radeon Instinct MI50 32GB`, read straight off `/metrics`. Output-identical aside from the name; no behaviour elsewhere in `telemetry.py` is touched. Verified on gfx906 (MI50 32 GB) against the current `main`: `_Amd._int()` is the existing helper for reading a single integer out of sysfs, and the change adds one stdlib import (`import re`) which the module did not previously need. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:22 +07:00
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
Niko1221/Strata#3730
No description provided.