linux/drivers/gpu/drm/amd/display/modules
David Zhang 65e7a17499 drm/amd/display: add shared helpers to update psr config fields to power module
[why]
Currently the amdgpu DM psr configuration parameters are hardcoded
before feeding into the DC helper to setup PSR. We would define a
helper which is to calculate parts of the psr config fields to
avoid hard-coding.

[how]
To make helper shareable, declare and define the helper in the
module_helper, to set/update below fields:
- psr remote buffer setup time
- sdp tx line number deadline
- line time in us
- su_y_granularity
- su_granularity_required
- psr_frame_capture_indication_req
- psr_exit_link_training_required

add another helper to check given the stream context, if there is
only one stream and the output is eDP panel connected.

changes in v2:
------------------
- add detailed comment for how psr setup time is calculated as per
  eDP 1.5 spec

Cc: Chandan Vurdigerenataraj <chandan.vurdigerenataraj@amd.com>

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-06-06 14:42:33 -04:00
..
color drm/amd/display: Revert adding degamma coefficients 2021-09-14 15:57:10 -04:00
freesync drm/amd/display: Fix inconsistent timestamp type 2022-04-12 14:19:51 -04:00
hdcp drm-misc-next for 5.19: 2022-04-29 11:33:00 +10:00
inc drm/amd/display: Add flip interval workaround 2022-04-05 10:29:47 -04:00
info_packet drm/amd/display: revise Start/End SDP data 2022-06-06 14:40:57 -04:00
power drm/amd/display: add shared helpers to update psr config fields to power module 2022-06-06 14:42:33 -04:00
vmid drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00