amdgpu_pll_reduce_ratio(9)
π amdgpu_pll_reduce_ratio(9) β like, the Kernel API Manual page your bestie actually needed
okay so bestie, gather round π this one lives in the Kernel API Manual and it's a tiny little helper that does one specific glow-up job on fractions and then dips. no drama, no cap. let's get into it β¨
β¨ NAME β¨
amdgpu_pll_reduce_ratio β fractional number reduction π§
like, it takes a fraction and makes it snatched. that's the whole vibe.
πΈ SYNOPSIS πΈ
void amdgpu_pll_reduce_ratio (unsigned *nom , unsigned *den , unsigned
nom_min , unsigned den_min );
that's it. that's the signature. she's short and she knows it π
π¦ ARGUMENTS π¦
nomβ the nominator π«Ά (yes, the manpage says "nominator", we're keeping it exactly like that, i don't make the rules)denβ the denominator, her partner in crimenom_minβ the minimum value the nominator is allowed to be, no going below bestie π«den_minβ the minimum value the denominator is allowed to be, same energy, same floor
π₯ DESCRIPTION π₯
okay so here's what's happening under the hood, and it's honestly kind of iconic:
it finds the greatest common divisor and applies it to both the nominator and the denominator β like matching outfits, but math π β but it makes sure the nominator and denominator are at least as large as their minimum values.
so: reduce the ratio, yes, slay, but never let nom drop below nom_min and never let den drop below den_min. the floor is the floor, periodt π
π SEE ALSO π
- the kernel file itself, living its best life at
./drivers/gpu/drm/amd/amdgpu/amdgpu_pll.cπ amdgpu_pll_get_fb_ref_div(9)amdgpu_pll_compute(9)amdgpu_pll_get_use_mask(9)amdgpu_pll_get_shared_dp_ppll(9)amdgpu_pll_get_shared_nondp_ppll(9)
the whole friend group fr fr π«Ά go read them too, they're all in their lane and thriving.
π reminder: every value here matters βnom,den,nom_min,den_min, all four, no skipping. the GCD does the work, the minimums keep it honest. iykyk β¨
kisses, this page came to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β and the doc girlies said "make it cute," so here we are ππ bye bestie, go reduce some ratios responsibly β
π¦ 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