populate_subvp_cmd_drr_info(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… populate_subvp_cmd_drr_info(9) ๐Ÿ’…

okay so bestie, welcome to the Kernel API Manual โœจ โ€” this one's a little function from the kernel side of things, and honestly? it's giving behind-the-scenes main character energy. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

populate_subvp_cmd_drr_info โ€” the lil helper that populates the DRR pipe info for the DMCUB subvp command ๐ŸŽ€


โœจ SYNOPSIS โœจ

void populate_subvp_cmd_drr_info (struct dc *dc , struct dc_state
*context , struct pipe_ctx *subvp_pipe , struct pipe_ctx *vblank_pipe ,
struct dmub_cmd_fw_assisted_mclk_switch_pipe_data_v2 *pipe_data );

no cap, that's the whole signature ๐Ÿ’€ โ€” five args, all pointers, all business.


๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • dc [in] โ€” pointer to the dc object, iconic, we love her ๐Ÿ’–
  • context [in] โ€” the DC state, and it's here so we can get at the phantom stream ๐Ÿ‘€
  • subvp_pipe [in] โ€” the pipe_ctx for the SubVP pipe, the star of the show โญ
  • vblank_pipe [in] โ€” the pipe_ctx for the DRR pipe, also very important, don't forget her ๐Ÿ™ˆ
  • pipe_data [in] โ€” the pipe data that stores the VBLANK/DRR info, literally the whole point ๐Ÿ’…

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

so what does it actually do? bestie, it populates the DMCUB SubVP command with the DRR pipe info. every single thing you need for calculating the SubVP + DRR microschedule gets populated right here. periodt. ๐Ÿ”ฅ

the high level algorithm, laid out cute:

  1. get the timing for the SubVP pipe, the phantom pipe, and the DRR pipe ๐ŸŒˆ
  2. calculate the min and max vtotal that supports the SubVP + DRR microschedule ๐Ÿงฎ
  3. populate the drr_info with those min and max supported vtotal values โœจ

three steps, no notes, ate and left no crumbs ๐Ÿ‘‘


๐ŸŽ€ SEE ALSO ๐ŸŽ€

the whole friend group fr fr ๐Ÿ’– go say hi to all of them ๐Ÿซถ


k that's the page!! it lives over in ./drivers/gpu/drm/amd/display/dc, the date on it is October 2026, and the source/version line is literally just that same populate_subvp_cmd_drr_info(9) name again โ€” so yeah, this page is its own vibe check ๐Ÿ’…โœจ bye bestie, slay responsibly ๐Ÿฆ‹๐ŸŒธ
๐Ÿ“ฆ where this page comes from