_dpu_plane_calc_clk(9)
π _dpu_plane_calc_clk(9) π
ok so this is a page from the Kernel API Manual, section 9 β yes bestie, section 9, we're in the Big Kid driver zone π«Ά and this one is all about figuring out how much clock a plane needs. literally calculating clocks. main character math energy. β¨
πΈ NAME πΈ
_dpu_plane_calc_clk β calculate the clock required for a plane π
like, that's the whole vibe. it takes a plane and figures out the clock it needs. no cap.
π¦ SYNOPSIS π¦
u64 _dpu_plane_calc_clk (const struct drm_display_mode *mode , struct
dpu_sw_pipe_cfg *pipe_cfg );
it returns a u64, it takes two pointers, and it does not want to hear your opinions. periodt. π
π ARGUMENTS π
modeβ a pointer to thedrm_display_mode. that's the display mode, babe. the whole timing situation. she's the blueprint πpipe_cfgβ a pointer to the pipe configuration. this is our pipe setup bestie π§
ok and this part is important so listen up π«Ά β Result: it updates the calculated clock in the plane state. it doesn't just hand you a number and walk away, it sets it in the state. iykyk.
and here's the equation it's working with, iconically:
dst_w * v_total * fps * (src_h / dst_h)
that's the clock equation, exactly as written, don't come for me π that's how the page gives it.dst_wtimesv_totaltimesfpstimes(src_h / dst_h). eat your heart out, algebra. π₯
β SEE ALSO β
ok so the whole squad shows up here β first the crib, then the friends:
- The kernel file it lives in:
./drivers/gpu/drm/msm/disp/dpu1/dpu_plane.cπ _dpu_plane_calc_bw(9)_dpu_plane_calc_fill_level(9)_dpu_plane_set_qos_lut(9)_dpu_plane_set_qos_ctrl(9)_dpu_plane_set_ot_limit(9)_dpu_plane_set_qos_remap(9)_dpu_plane_color_fill(9)dpu_plane_flush(9)dpu_plane_set_error(9)dpu_plane_init(9)dpu_plane_init_virtual(9)
like, that's the entire group chat right there π€ go read them too, they're all linked in ./drivers/gpu/drm/msm/disp/dpu1 and honestly? iconic. β¨
π anyway bestie that's the whole page β clock math, a display mode, a pipe config, and a state update. slay.
and that's a wrap!! π¬ this one came at you from ./drivers/gpu/drm/msm/disp/dpu1, dated October 2026 β so like, very much a future vibe, we love that for us π¦π« mwah!! π
π¦ 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