smu_v14_0_0_find_clk_level(9)
π 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 infreqsare 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms