diff options
author | Evan Quan <evan.quan@amd.com> | 2021-11-05 15:25:30 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-11-22 14:45:02 -0500 |
commit | 6c08e0ef87b8b4c1c243719a561c354e893c415d (patch) | |
tree | cc8e1fc95ab7168c49921d6cc000d03b7e748aad /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | ed12f3f198cedbb164129991766e1a42eecc0bac (diff) | |
download | linux-6c08e0ef87b8b4c1c243719a561c354e893c415d.tar.gz linux-6c08e0ef87b8b4c1c243719a561c354e893c415d.tar.bz2 linux-6c08e0ef87b8b4c1c243719a561c354e893c415d.zip |
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
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions