fix(pcie): verify GPU links under real bandwidth load
This commit is contained in:
@@ -353,7 +353,7 @@ func normalizePCILinkSpeed(raw string) string {
|
||||
|
||||
// NormalizePCILinkSpeed maps a raw sysfs current_link_speed/max_link_speed
|
||||
// string (e.g. "16.0 GT/s PCIe") to a "GenN" label. Exported for reuse by
|
||||
// the platform package's PCIe link-retrain SAT, which needs the same
|
||||
// the platform package's NVIDIA link-under-load check, which needs the same
|
||||
// mapping outside the idle collector path.
|
||||
func NormalizePCILinkSpeed(raw string) string {
|
||||
raw = strings.TrimSpace(strings.ToLower(raw))
|
||||
|
||||
Reference in New Issue
Block a user