radeon_compute_pll_avivo(9)
π NAME π
radeon_compute_pll_avivo β okay so this one computes PLL paramaters β¨ (that's how the manpage spells it and I'm not fixing it, not my job π)
This is a Kernel API Manual situation, so likeβ¦ kernel-adjacent, iykyk π§
β¨ SYNOPSIS β¨
void radeon_compute_pll_avivo (struct radeon_pll *pll , u32 freq , u32
*dot_clock_p , u32 *fb_div_p , u32 *frac_fb_div_p , u32 *ref_div_p , u32
*post_div_p );
yes bestie it takes seven args and most of them are pointers, stay with me π«Ά
π ARGUMENTS π
pllβ the info about the PLL, like its whole little personality β¨freqβ the target frequency we're aiming for π―dot_clock_pβ where the resulting pixel clock comes out πfb_div_pβ where the resulting feedback divider comes out π₯frac_fb_div_pβ the fractional part of the feedback divider, the spicy decimal bit πΈref_div_pβ resulting reference divider πpost_div_pβ resulting reference divider (no that's not a typo on my end, that's literally what the original says β both of these say "resulting reference divider", and I'm just the messenger π«‘)
heads up: the last two arguments have identical descriptions in the source. I'm not gonna invent a difference that isn't there, that's not the vibe π
π₯ DESCRIPTION π₯
So the whole goal here? Try to calculate the PLL parameters to generate the given frequency π
And the formula it's working with is literally this:
dot_clock = (ref_freq * feedback_div) / (ref_div * post_div)
that's it, that's the math, and honestly? she ate π
no cap, the function is trying to work out those PLL parameters for the frequency you hand it β that's the assignment, that's the whole mission π
π¦ SEE ALSO π¦
Kernel file: ./drivers/gpu/drm/radeon/radeon_display.c
and the friend group π:
radeon_unpin_work_func(9)radeon_crtc_handle_flip(9)radeon_flip_work_func(9)avivo_reduce_ratio(9)avivo_get_fb_ref_div(9)
go read those too, they're all lowkey relevant, fr fr π
and that's the whole page bestie β¨ source is ./drivers/gpu/drm/radeon, dated October 2026, and it's the radeon_compute_pll_avivo(9) manual page β periodt π
ππ¦
π¦ 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