diff options
author | 2024-12-06 18:24:06 +0530 | |
---|---|---|
committer | 2024-12-10 10:29:55 -0500 | |
commit | 58893392989786eefd89aba48823dc3e27d37fd6 (patch) | |
tree | 9c8f50c52445e47616ba39311682a4ffab1addb5 /drivers/gpu/drm/amd/display/modules/power/power_helpers.c | |
parent | drm/amdgpu: Enable VCN_5_0_1 IP block (diff) | |
download | linux-rng-58893392989786eefd89aba48823dc3e27d37fd6.tar.xz linux-rng-58893392989786eefd89aba48823dc3e27d37fd6.zip |
drm/amd/pm: Revert state if force level fails
Before forcing level, CG/PG is disabled or enabled depending on the new
level. However if the force level operation fails, CG/PG state remains
modified. Revert the state change on failure. Also, move invalid
operation checks to the beginning before any logic that could change SOC
state.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/power/power_helpers.c')
0 files changed, 0 insertions, 0 deletions