summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2024-12-06 15:54:06 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-12-10 18:29:55 +0300
commit58893392989786eefd89aba48823dc3e27d37fd6 (patch)
tree9c8f50c52445e47616ba39311682a4ffab1addb5 /tools/perf/scripts/python/gecko.py
parent178ad3a9d1502439e750cca90dbbbf7478d29e63 (diff)
downloadlinux-58893392989786eefd89aba48823dc3e27d37fd6.tar.xz
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 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions