mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1877] [CLOSED] monitor: check the AMD board name's capacity against the memory the driver reads #3730
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3730
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
0f36394monitor: 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 16GBon a 32 GB part (PCI ID1002:66a1,mem_info_vram_total= 34,342,961,152 B = 31.98 GiB), so the Monitor shows/ 32 GBnext to a name that says 16GB._Amd.name()reads that string straight out ofproduct_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:
Radeon Pro VII) hitsnot mand is returned untouched;== wantand is returned unchanged (MI60 32GB, and a true 16 GB MI50 keep their own strings);mem_info_vram_totalmissing (not total) also returns the name as-is, so a card whose VRAM the driver does not report is unaffected;... 16GB HBM2becomes... 32GB HBM2rather than dropping it.On our MI50 this turns
Radeon Instinct MI50 16GBintoRadeon Instinct MI50 32GB, read straight off/metrics. Output-identical aside from the name; no behaviour elsewhere intelemetry.pyis 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.