aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorTom Chung <[email protected]>2024-12-05 15:08:28 +0000
committerAlex Deucher <[email protected]>2025-01-13 19:21:03 +0000
commitb0a3e840ad287c33a86b5515d606451b7df86ad4 (patch)
treed3422d20e60d39869418cc1b4d977ae51c9b9a8a /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentdrm/amd/display: Initialize denominator defaults to 1 (diff)
downloadkernel-b0a3e840ad287c33a86b5515d606451b7df86ad4.tar.gz
kernel-b0a3e840ad287c33a86b5515d606451b7df86ad4.zip
drm/amd/display: Fix PSR-SU not support but still call the amdgpu_dm_psr_enable
[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 f765e7ce0417f8dc38479b4b495047c397c16902) Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions