diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-14 08:37:18 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-14 08:37:18 +0000 |
commit | 6f298c15dd3f1a6fa59fffc50e1851a4c43571a1 (patch) | |
tree | 004b0a9dc8621ce347e8eb8ded565e46f0f00619 /sys | |
parent | e0c58c335ffba505ff030d67ac18364626286fc7 (diff) |
drm/amd/display: Use PSR version selected during set_psr_caps
From Nicholas Kazlauskas
6040c99cb1a18c8da3f84e5051db12b6353a2576 in linux 5.15.y/5.15.34
b80ddeb29d9df449f875f0b6f5de08d7537c02b8 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c index 70a554f1e72..7072fb2ec07 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c @@ -74,10 +74,8 @@ bool amdgpu_dm_link_setup_psr(struct dc_stream_state *stream) link = stream->link; - psr_config.psr_version = link->dpcd_caps.psr_caps.psr_version; - - if (psr_config.psr_version > 0) { - psr_config.psr_exit_link_training_required = 0x1; + if (link->psr_settings.psr_version != DC_PSR_VERSION_UNSUPPORTED) { + psr_config.psr_version = link->psr_settings.psr_version; psr_config.psr_frame_capture_indication_req = 0; psr_config.psr_rfb_setup_time = 0x37; psr_config.psr_sdp_transmit_line_num_deadline = 0x20; |