get_prefetch_end_line(9)
๐ get_prefetch_end_line โจ
okay so bestie, we're in the Kernel API Manual today and this little function is genuinely the group chat's designated calculator ๐งฎ๐
๐ธ NAME ๐ธ
get_prefetch_end_line โ the helper bestie that calculates your prefetch end line for you ๐
โจ SYNOPSIS โจ
int32_t get_prefetch_end_line (uint32_t vtotal , uint16_t vblank_end ,
uint16_t recout_y , uint8_t prefetch_relative_vblank , uint16_t
dst_y_after_scaler );
like, that's the whole signature, no cap ๐
๐ฆ ARGUMENTS ๐ฆ
okay so the docs here are lowkey mysterious, and honestly? not me gatekeeping โ the manpage literally says -- undescribed -- for every single one of these, so I'm passing the tea along exactly as I got it ๐:
vtotalโ-- undescribed --๐vblank_endโ-- undescribed --๐recout_yโ-- undescribed --๐prefetch_relative_vblankโ-- undescribed --๐dst_y_after_scalerโ-- undescribed --๐
no fr, that's all we've got. iconic of the documentation, honestly ๐ซถ
๐ DESCRIPTION ๐
okay so here's the vibe: this one is to be used by FW to calculate and store the prefetch_end_line, so it doesn't need to be computed multiple times ๐ฅ
like, it's giving "do the math once, then chill" โ main character energy efficiency โจ
๐ RETURN ๐
it calculates prefetch end given the input timing params ๐ฏ
and then, for reasons known only to the author, there's a whole dramatic row of asterisks:
***********************************************************************************************************
slay, I guess? ๐ (yes, that's literally in the source, I'm not kidding)
๐ SEE ALSO ๐
- Kernel file โ
./drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/alternate_pstate_shared_lib.c in_circular_range(9)apply_svp1_workaround(9)calculate_start_line_and_height_from_swath(9)get_swath_deadlines(9)calculate_swath_deadline_dst(9)is_dst_in_next_frame(9)is_end_swath_in_next_frame(9)is_svp_dst_in_next_frame(9)calculate_swath_idx_from_dst(9)populate_svp_params(9)populate_start_index_num_swaths_helper(9)calculate_start_index_num_swaths(9)calculate_hubp_start_end_lines(9)get_effective_vblank_start(9)
that's the whole friend group right there, go say hi to all of them ๐ฆ๐
๐ real talk though: the doc says -- undescribed -- on all five args, so don't be out here guessing at what they do, bestie. facts only.
kisses, this page lives at ./drivers/gpu/drm/amd/display/... and it's dated October 2026 ๐ mark your calendars, stay hydrated, and remember: get_prefetch_end_line(9) loves you ๐โจ๐ธ
๐ฆ 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