* [PATCH 1/2] Revert "drm/amd/powerplay: avoid using pm_en before it is initialized"
@ 2020-04-27 1:57 Tiecheng Zhou
0 siblings, 0 replies; 2+ messages in thread
From: Tiecheng Zhou @ 2020-04-27 1:57 UTC (permalink / raw)
To: amd-gfx; +Cc: Tiecheng.Zhou
This reverts commit 764a21cb085b8d7d754b5d74e2ecc6adc064e3e7.
The commit being reverted changed the wrong place, it should have
changed in func get_asic_baco_capability.
Signed-off-by: Tiecheng Zhou <Tiecheng.Zhou@amd.com>
---
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
index fdff3e1c5e95..71b843f542d8 100644
--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
+++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
@@ -1455,8 +1455,7 @@ static int pp_get_asic_baco_state(void *handle, int *state)
if (!hwmgr)
return -EINVAL;
- if (!(hwmgr->not_vf && amdgpu_dpm) ||
- !hwmgr->hwmgr_func->get_asic_baco_state)
+ if (!hwmgr->pm_en || !hwmgr->hwmgr_func->get_asic_baco_state)
return 0;
mutex_lock(&hwmgr->smu_lock);
--
2.17.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/2] Revert "drm/amd/powerplay: avoid using pm_en before it is initialized"
@ 2020-04-27 3:29 Tiecheng Zhou
0 siblings, 0 replies; 2+ messages in thread
From: Tiecheng Zhou @ 2020-04-27 3:29 UTC (permalink / raw)
To: amd-gfx; +Cc: Tiecheng.Zhou
This reverts commit 764a21cb085b8d7d754b5d74e2ecc6adc064e3e7.
The commit being reverted changed the wrong place, it should have
changed in func get_asic_baco_capability.
Signed-off-by: Tiecheng Zhou <Tiecheng.Zhou@amd.com>
---
drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
index fdff3e1c5e95..71b843f542d8 100644
--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
+++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
@@ -1455,8 +1455,7 @@ static int pp_get_asic_baco_state(void *handle, int *state)
if (!hwmgr)
return -EINVAL;
- if (!(hwmgr->not_vf && amdgpu_dpm) ||
- !hwmgr->hwmgr_func->get_asic_baco_state)
+ if (!hwmgr->pm_en || !hwmgr->hwmgr_func->get_asic_baco_state)
return 0;
mutex_lock(&hwmgr->smu_lock);
--
2.17.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-27 3:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27 1:57 [PATCH 1/2] Revert "drm/amd/powerplay: avoid using pm_en before it is initialized" Tiecheng Zhou
2020-04-27 3:29 Tiecheng Zhou
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.