Skip to content

[AMD-SMI] Fix incorrect unit in amdsmi_frequencies_t documentation#6625

Open
marifamd wants to merge 1 commit into
developfrom
users/marifamd/fix_clock_freq_docs
Open

[AMD-SMI] Fix incorrect unit in amdsmi_frequencies_t documentation#6625
marifamd wants to merge 1 commit into
developfrom
users/marifamd/fix_clock_freq_docs

Conversation

@marifamd
Copy link
Copy Markdown
Contributor

Summary

The amdsmi_frequencies_t::frequency field is documented as being in MHz, but amdsmi_get_clk_freq() actually returns frequencies in Hz.

Verified live on an MI350X (ROCm 7.0.1, AMD SMI 26.4.0): the top GFX DPM level reports 2200000000, i.e. 2.2 GHz expressed in Hz, not 2200 MHz.

Changes

  • include/amd_smi/amdsmi.h: correct the frequency array comment from MHz to Hz, and remove the bogus "in MHz" note from current, which is a frequency index, not a frequency value.
  • CHANGELOG.md: add a Fixed entry under ROCm 7.14.0.

Documentation-only change; no functional impact.

@marifamd marifamd requested a review from a team May 31, 2026 13:36
@marifamd marifamd force-pushed the users/marifamd/fix_clock_freq_docs branch from fdbcd68 to 4eaca71 Compare May 31, 2026 13:40
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 31, 2026
@marifamd marifamd force-pushed the users/marifamd/fix_clock_freq_docs branch 2 times, most recently from c03a97a to 8454a6b Compare May 31, 2026 14:02
@marifamd marifamd changed the title Fix incorrect unit in amdsmi_frequencies_t documentation [AMD-SMI] Fix incorrect unit in amdsmi_frequencies_t documentation May 31, 2026
@marifamd marifamd force-pushed the users/marifamd/fix_clock_freq_docs branch from 8454a6b to 7a441cc Compare May 31, 2026 14:03
amdsmi_get_clk_freq() returns frequencies in Hz, but the
amdsmi_frequencies_t::frequency comment claimed MHz. Correct the
comment to Hz and remove the bogus 'in MHz' note from the 'current'
field, which is a frequency index rather than a frequency value.

Also align the Python API reference (docs/reference/amdsmi-py-api.md)
and the underlying rsmi_frequencies_t documentation, both of which
left the unit unspecified, to state Hz.

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
@marifamd marifamd force-pushed the users/marifamd/fix_clock_freq_docs branch from 7a441cc to 9e0b7c2 Compare May 31, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation organization: ROCm project: amdsmi

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant