Commit 583d3a4
drm/amd/display: Fix PSR-SU not support but still call the amdgpu_dm_psr_enable
commit b0a3e84 upstream.
[Why]
The enum DC_PSR_VERSION_SU_1 of psr_version is 1 and
DC_PSR_VERSION_UNSUPPORTED is 0xFFFFFFFF.
The original code may has chance trigger the amdgpu_dm_psr_enable()
while psr version is set to DC_PSR_VERSION_UNSUPPORTED.
[How]
Modify the condition to psr->psr_version == DC_PSR_VERSION_SU_1
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 f765e7c)
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 1366b0e commit 583d3a4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8922 | 8922 | | |
8923 | 8923 | | |
8924 | 8924 | | |
8925 | | - | |
| 8925 | + | |
8926 | 8926 | | |
8927 | 8927 | | |
8928 | 8928 | | |
| |||
0 commit comments