drm_self_ref...te_avg_times(9)
π drm_self_refresh_helper_update_avg_times(9)
okay so bestie, welcome to the Kernel API Manual β this is the page for drm_self_refresh_helper_update_avg_times(9) and honestly it's a whole little glow-up for your CRTC's self-refresh timing. π¦
β¨ NAME β¨
drm_self_refresh_helper_update_avg_times β updates a crtc's SR time averages
like, it literally goes in and refreshes the average numbers. slay. π
πΈ SYNOPSIS πΈ
void drm_self_refresh_helper_update_avg_times (struct drm_atomic_commit
*state , unsigned int commit_time_ms , unsigned int
new_self_refresh_mask );
no return value, it just does the thing and dips. β¨
π ARGUMENTS π
stateβ the state which has just been applied to hardware. yes, just applied, this is the fresh-from-the-oven atomic commit state. π₯commit_time_msβ the amount of time in ms that this commit took to complete. how long did it take? this many milliseconds. periodt. β±οΈnew_self_refresh_maskβ bitmask of crtc's that haveself_refresh_activein new state. it's giving "which screens are doing the self-refresh thing" energy. π―
π DESCRIPTION π
So here's the vibe: this function is called after drm_mode_config_funcs.atomic_commit_tail, and what it does is update the average entry/exit self refresh times on self refresh transitions. π
Those averages? They get used when calculating how long to delay before entering self refresh mode after activity. so it's literally a math girlie doing foreplay for the idle timer, no cap. π§
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_self_refresh_helper.coverview(9) drm_self_refresh_helper_alter_state(9)drm_self_refresh_helper_init(9)drm_self_refresh_helper_cleanup(9)
go read the whole squad, they all ate. π
ngl this one's short but she's important β the timings you feed her here are the timings the kernel trusts later. respect her. π«Ά
and that's the page, bestie! brought to you from the ./drivers/gpu/drm corner of the kernel, October 2026 edition β drm_self_ref...te_avg_times(9), 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