Commit 0f0c5ca
drm/amd/display: Disable replay and psr while VRR is enabled
commit 67edb81 upstream.
[Why]
Replay and PSR will cause some video corruption while VRR is enabled.
[How]
1. Disable the Replay and PSR while VRR is enabled.
2. Change the amdgpu_dm_crtc_vrr_active() parameter to const.
Because the function will only read data from dm_crtc_state.
Reviewed-by: Sun peng Li <[email protected]>
Signed-off-by: Tom Chung <[email protected]>
Signed-off-by: Roman Li <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit d787934)
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 583d3a4 commit 0f0c5ca
3 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8889 | 8889 | | |
8890 | 8890 | | |
8891 | 8891 | | |
| 8892 | + | |
8892 | 8893 | | |
8893 | 8894 | | |
8894 | 8895 | | |
| |||
8915 | 8916 | | |
8916 | 8917 | | |
8917 | 8918 | | |
8918 | | - | |
| 8919 | + | |
| 8920 | + | |
8919 | 8921 | | |
8920 | 8922 | | |
8921 | 8923 | | |
| |||
9259 | 9261 | | |
9260 | 9262 | | |
9261 | 9263 | | |
9262 | | - | |
| 9264 | + | |
9263 | 9265 | | |
9264 | 9266 | | |
9265 | 9267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments