si_calc_upll_dividers(9)
π
si_calc_upll_dividers(9) π
okay so welcome to the Kernel API Manual, bestie!! this is the page for si_calc_upll_dividers(9), and it's giving "math but make it clock dividers" β¨. no cap, we're keeping every single detail.
πΈ NAME πΈ
si_calc_upll_dividers β calc UPLL clock dividers π
π SYNOPSIS π
int si_calc_upll_dividers (struct amdgpu_device *adev , unsigned vclk ,
unsigned dclk , unsigned vco_min , unsigned vco_max , unsigned fb_factor
, unsigned fb_mask , unsigned pd_min , unsigned pd_max , unsigned
pd_even , unsigned *optimal_fb_div , unsigned *optimal_vclk_div ,
unsigned *optimal_dclk_div );
β¨ ARGUMENTS β¨
okay bestie, here's the whole cast β every single one matters π«Ά
adevβ amdgpu_device pointervclkβ wanted VCLKdclkβ wanted DCLKvco_minβ minimum VCO frequencyvco_maxβ maximum VCO frequencyfb_factorβ factor to multiply vco freq withfb_maskβ limit and bitmask for feedback dividerpd_minβ post divider minimumpd_maxβ post divider maximumpd_evenβ post divider must be even above this valueoptimal_fb_divβ resulting feedback divideroptimal_vclk_divβ resulting vclk post divideroptimal_dclk_divβ resulting dclk post divider
π¦ DESCRIPTION π¦
So like, this function calculates dividers for UVDs UPLL (except APUs) π
. It returns zero on success; -EINVAL on error. That's the whole vibe check, no cap.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/amd/amdgpu/si.c β go peek if you're nosy, iykyk π
source/version: ./drivers/gpu/drm/amd/amdgpu β’ date: October 2026 β’ si_calc_upll_dividers(9) β byeee bestie!! π
π¦ 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