_dpu_core_perf_calc_clk(9)
β¨ _dpu_core_perf_calc_clk(9) β¨
okay so this is a page from the Kernel API Manual bestie, and it's all about _dpu_core_perf_calc_clk β the little function whose whole personality is calculating clock per crtc π no cap, that's literally the job.
π NAME π
_dpu_core_perf_calc_clk β to calculate clock per crtc π clock math but make it per-crtc, that's the vibe.
πΈ SYNOPSIS πΈ
u64 _dpu_core_perf_calc_clk (const struct dpu_perf_cfg *perf_cfg ,
struct drm_crtc *crtc , struct drm_crtc_state *state );
like, it takes three things and hands you back a u64 π«Ά that's it, that's the whole entrance.
π¦ ARGUMENTS π¦
perf_cfgβ the performance configuration π yes the performance config, she's the one holding the settings.crtcβ a pointer to a crtc β¨ a whole pointer, to a crtc.stateβ a pointer to a crtc state π again with the pointer, this time to the state of that crtc.
β RETURN β
returns max clk for all planes in crtc π₯ the maximum clock for every plane in the crtc, that's the answer it gives back. iconic behavior honestly.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c π (yes that whole path, she lives there) plus the whole friend group:
enum dpu_perf_mode(9)dpu_core_perf_adjusted_mode_clk(9)_dpu_core_perf_calc_bw(9)dpu_core_perf_crtc_check(9)dpu_core_perf_crtc_release_bw(9)dpu_core_perf_crtc_update(9)dpu_core_perf_debugfs_init(9)dpu_core_perf_init(9)
ngl bestie, the whole squad is listed up there and they all take a (9) at the end β iykyk, that's just how the kernel section suffix goes π don't come for me.
and that's the page!! πΈ source/version lives at ./drivers/gpu/drm/msm/disp/dpu1 and it's dated October 2026 β so like, future-coded of them, we stan π«Άβ¨ bye bestie, go calculate some clocks π
π¦ 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