smu_v14_0_0_find_clk_level(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– smu_v14_0_0_find_clk_level(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for smu_v14_0_0_find_clk_level(9) β€” yes that's the whole name, yes it's a mouthful, no we are not abbreviating it, it's iconic as-is πŸŽ€


✨ NAME ✨

smu_v14_0_0_find_clk_level β€” finds the closest DPM level for a given frequency, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

uint8_t smu_v14_0_0_find_clk_level (const uint32_t *freqs , uint8_t
count , uint32_t target );

like literally that's the whole signature, she's compact and she knows it ✨


🌸 ARGUMENTS 🌸

  • freqs β€” an array of frequencies, one per DPM level. think of it as the roster of every level's clock speed πŸ“‹
  • count β€” how many entries in freqs are actually valid (the rest are not giving anything, so don't count them) πŸ”’
  • target β€” the frequency you're trying to match. this is the main character of the whole function, periodt πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

So here's the tea πŸ“: this function returns the index</> of the DPM level whose frequency is closest to target.

If an exact match exists β€” like, an actual perfect match β€” that one is preferred. slay. otherwise it falls back to the nearest level by absolute difference, which is lowkey just "whoever's closest wins" πŸ’€

ngl it's giving "close enough is good enough" but in a mathematically rigorous way, and honestly? we respect it 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c β€” go read it, iykyk πŸ“–βœ¨


and that's the whole page bestie πŸŽ€ this one's from ./drivers/gpu/drm/amd/pm/swsmu..., dated October 2026, filed under smu_v14_0_0_find_clk_level(9) in the Kernel API Manual. mwah, go find those clock levels πŸ’‹πŸ’–

πŸ“¦ where this page comes from