Skip to content

[GPUOP-1033] gpuagent: sentinel for unsupported video/data clock min/max - #90

Merged
sarat-k merged 1 commit into
ROCm:mainfrom
bhatturu:user/bhatturu/gpuop-1033-clock-sentinel
Aug 26, 2026
Merged

[GPUOP-1033] gpuagent: sentinel for unsupported video/data clock min/max#90
sarat-k merged 1 commit into
ROCm:mainfrom
bhatturu:user/bhatturu/gpuop-1033-clock-sentinel

Conversation

@bhatturu

Copy link
Copy Markdown
Contributor

amdsmi_get_clock_info returns NOT_SUPPORTED for VCLK0/DCLK0 min/max on MI210. The error branch previously left the zero-initialized clock_spec lo/hi at 0, which the exporter treats as a real value and emits. Set AMDSMI_INVALID_UINT32 on error so the exporter's IsValueApplicable gate suppresses the metric instead of exporting a misleading 0. Guard deep_sleep against the sentinel min frequency.

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

amdsmi_get_clock_info returns NOT_SUPPORTED for VCLK0/DCLK0 min/max on
MI210. The error branch previously left the zero-initialized clock_spec
lo/hi at 0, which the exporter treats as a real value and emits. Set
AMDSMI_INVALID_UINT32 on error so the exporter's IsValueApplicable gate
suppresses the metric instead of exporting a misleading 0. Guard
deep_sleep against the sentinel min frequency.

@rsrikanth86 rsrikanth86 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sarat-k
sarat-k merged commit 7081486 into ROCm:main Aug 26, 2026
1 check passed
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.

3 participants