commit | 6ee27ee27ba8b2e725886951ba2d2d87f113bece | [log] [tgz] |
---|---|---|
author | Evan Quan <evan.quan@amd.com> | Fri Nov 05 15:25:30 2021 +0800 |
committer | Alex Deucher <alexander.deucher@amd.com> | Wed Nov 17 17:41:20 2021 -0500 |
tree | c0c7095dda37b859fd5457bc089f09aa5cd3ad98 | |
parent | 69650a879b93e7e445e7a833287701ea7f32bd3a [diff] |
drm/amd/pm: avoid duplicate powergate/ungate setting Just bail out if the target IP block is already in the desired powergate/ungate state. This can avoid some duplicate settings which sometimes may cause unexpected issues. Link: https://lore.kernel.org/all/YV81vidWQLWvATMM@zn.tnic/ Bug: https://bugzilla.kernel.org/show_bug.cgi?id=214921 Bug: https://bugzilla.kernel.org/show_bug.cgi?id=215025 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1789 Fixes: bf756fb833cb ("drm/amdgpu: add missing cleanups for Polaris12 UVD/VCE on suspend") Signed-off-by: Evan Quan <evan.quan@amd.com> Tested-by: Borislav Petkov <bp@suse.de> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org