[PATCH] drm/amdgpu/swSMU: drop pm_enabled check in set mp1 state
Alex Deucher
alexdeucher at gmail.com
Mon Jul 6 19:16:29 UTC 2020
We need to set the mp1 state in PCI shutdown and certain
reset cases which happens after we've already suspended
the SMU. SMU suspend sets pm_enabled to false which
prevents this code from being run.
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index fe4948aa662f..0ed75a9897eb 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -1924,9 +1924,6 @@ int smu_set_mp1_state(struct smu_context *smu,
uint16_t msg;
int ret;
- if (!smu->pm_enabled)
- return -EOPNOTSUPP;
-
mutex_lock(&smu->mutex);
switch (mp1_state) {
--
2.25.4
More information about the amd-gfx
mailing list