dcn32_determ...det_override(9)
π dcn32_determine_det_override β nope, full name: dcn32_determine_det_override π
okay bestie so this is a page from the Kernel API Manual, and the function is dcn32_determine_det_override β say that five times fast, I dare you π«Ά it lives in the AMD display driver and it's literally about figuring out DET allocation for each pipe. Let's get into it β¨
β¨ NAME β¨
dcn32_determine_det_override β Determine DET allocation for each pipe π
πΈ SYNOPSIS πΈ
void dcn32_determine_det_override (struct dc *dc , struct dc_state
*context , display_e2e_pipe_params_st *pipes );
like, it takes three things and gives back nothing, and honestly? iconic π
π¦ ARGUMENTS π¦
dcβ the Current DC state, as in the one you've already got goin' oncontextβ the New DC state to be programmed, the fresh one, the main character πpipesβ Array of DML pipes, yep, all of 'em
π DESCRIPTION π
So this function determines how much DET to allocate for each pipe. That's the whole vibe check. π§
Here's how the math goes down: the total number of DET segments gets split equally among each of the streams. Then, after that, the DET segments per stream get split equally among the planes for the given stream. Equal split, no favoritism, we love to see it β
But wait β if there's a plane that's driven by more than 1 pipe (i.e. pipe split), then the number of DET for that given plane gets split among the pipes driving that plane. so it just keeps dividing, lowkey fractal energy π
π High level algorithm π
- Split total DET among number of streams
- For each stream, split DET among the planes
- For each plane, check if there is a pipe split. If yes, split the DET allocation among those pipes.
- Assign the DET override to the DML pipes.
periodt. four steps, no notes. π₯
π RETURN π
void β that's it, that's the return. it returns nothing, bestie, it just does the thing and dips π
β SEE ALSO β
- Kernel file
./drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.cβ yeah, that's where this lives, go read the source iykyk dcn32_helper_calculate_num_ways_for_subvp(9)dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch(9)disallow_subvp_in_active_plus_blank(9)dcn32_subvp_drr_admissable(9)dcn32_subvp_vblank_admissable(9)
all the subvp girlies in one place, we stan a linked list of friends π
and that's the whole page!! mwah π this one's from ./drivers/gpu/drm/amd/display/..., dated October 2026 β so go forth and split your DET segments equally, you absolute DET-allocating legend, ily, bye πβ¨π
π¦ 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