radeon_compute_pll_avivo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ:

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