mod_power_calc_psr_configs(9)
β¨ mod_power_calc_psr_configs(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's about mod_power_calc_psr_configs, and it's literally the glow-up pass for your PSR config fields β¨
πΈ NAME πΈ
mod_power_calc_psr_configs β calculate/update generic psr configuration fields π
π¦ SYNOPSIS π¦
void mod_power_calc_psr_configs (struct psr_config *psr_config , struct
dc_link *link , const struct dc_stream_state *stream );
that's the whole vibe, no cap π«Ά
π ARGUMENTS π
psr_configβ [output] the psr configuration structure that's getting updated, bestie. it goes in and comes out all fresh β¨linkβ [input] the dc link pointer πstreamβ [input] the dc stream state pointer π
π DESCRIPTION π
so what it does is calculate and update the psr configuration fields that are not DM specific, i.e. the ones that are based on DPCD caps or timing information. think of it as the fields that don't need DM's whole personality to figure out π
to setup PSR in DMUB FW, this helper is assumed to be called before the call of the DC helper dc_link_setup_psr. order matters, periodt π
β PSR config fields to be updated within the helper
these ones get the makeover, fr fr:
psr_rfb_setup_timepsr_sdp_transmit_line_num_deadlineline_time_in_ussu_y_granularitysu_granularity_requiredpsr_frame_capture_indication_reqpsr_exit_link_training_required
π PSR config fields that are DM specific and NOT updated within the helper
and these ones? not invited to this specific party π they're DM specific, so this helper leaves them exactly where it found them:
allow_smu_optimizationsallow_multi_disp_optimizations
ngl, if you're expecting those two to change after calling this, you're gonna be disappointed β they are not touched here π
π SEE ALSO π
the kernel file that's carrying this whole thing on its back:
./drivers/gpu/drm/amd/display/modules/power/power_psr.c
go read it, iykyk πβ¨
and that's the tea, bestie π§π this page is from the Kernel API Manual, source/version ./drivers/gpu/drm/amd/display/..., dated October 2026 β iconic of her honestly ππβ
π¦ 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