mod_power_calc_psr_configs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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_time
  • psr_sdp_transmit_line_num_deadline
  • line_time_in_us
  • su_y_granularity
  • su_granularity_required
  • psr_frame_capture_indication_req
  • psr_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_optimizations
  • allow_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