populate_svp_params(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

Okay bestie, welcome to the Kernel API Manual page for populate_svp_params(9) β€” this is the helper function that calculates start_idx and number of swaths for a single svp. That's the whole name vibe, periodt. ✨


✨ SYNOPSIS ✨

void populate_svp_params (uint16_t prefetch_swaths , uint16_t
       total_swaths , uint32_t svp_start_swath_idx , uint32_t svp_end_swath_idx
       , uint32_t *svp_start_sw_idx , uint32_t *svp_num_swaths );

🌸 ARGUMENTS 🌸

Bestie, the source is giving us absolutely no description for these, so I'm keeping it 100:

  • prefetch_swaths β€” -- undescribed --
  • total_swaths β€” -- undescribed --
  • svp_start_swath_idx β€” -- undescribed --
  • svp_end_swath_idx β€” -- undescribed --
  • svp_start_sw_idx β€” -- undescribed --
  • svp_num_swaths β€” -- undescribed --

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the vibe check here is strict: this function only calculates parameters for ONE of curr or next for a single svp. Not both. Not a little mix. ONE. 😭

That means the caller of this function MUST separate the swath indices to be within the span of a single frame β€” the swath indices literally cannot span across frame boundaries. No cap, that's the rule. πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/alternate_pstate_shared_lib.c

And here's the rest of the friend group, all linked and iconic:

Byeee 🫢 β€” source/version footer says ./drivers/gpu/drm/amd/display/..., dated October 2026, page populate_svp_params(9). Mwah! πŸ’‹

πŸ“¦ where this page comes from