All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/20] drm/amdgpu:fix powerplay logic
@ 2017-02-07  6:10 Monk Liu
       [not found] ` <1486447878-20521-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 51+ messages in thread
From: Monk Liu @ 2017-02-07  6:10 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Monk Liu

1,like pp_hw_init, we shouldn't report error if PP disabled
2,disable pp_en if sriov

Change-Id: I6d259f9609f223998bea236f64676b9c22133e4e
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 +-
 drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
index 8856ecc..d56d200 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
@@ -43,7 +43,7 @@ static int amdgpu_create_pp_handle(struct amdgpu_device *adev)
 	amd_pp = &(adev->powerplay);
 	pp_init.chip_family = adev->family;
 	pp_init.chip_id = adev->asic_type;
-	pp_init.pm_en = amdgpu_dpm != 0 ? true : false;
+	pp_init.pm_en = (amdgpu_dpm != 0 && !amdgpu_sriov_vf(adev)) ? true : false;
 	pp_init.feature_mask = amdgpu_pp_feature_mask;
 	pp_init.device = amdgpu_cgs_create_device(adev);
 	ret = amd_powerplay_create(&pp_init, &(amd_pp->pp_handle));
diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
index 429f18b..e9cf207 100644
--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
+++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
@@ -286,7 +286,7 @@ static int pp_resume(void *handle)
 	}
 
 	if (ret1 == PP_DPM_DISABLED)
-		return ret1;
+		return 0;
 
 	eventmgr = pp_handle->eventmgr;
 
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2017-02-08 15:45 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-07  6:10 [PATCH 01/20] drm/amdgpu:fix powerplay logic Monk Liu
     [not found] ` <1486447878-20521-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07  6:11   ` [PATCH 02/20] drm/amdgpu:cg & pg are not applied on VF Monk Liu
     [not found]     ` <1486447878-20521-2-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:27       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 03/20] drm/damdgpu:add new mqd member in ring Monk Liu
     [not found]     ` <1486447878-20521-3-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:29       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 04/20] drm/amdgpu:imple mqd soft ini/fini Monk Liu
     [not found]     ` <1486447878-20521-4-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:30       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 05/20] drm/amdgpu:bo_free_kernel will set ptr to NULL if freed Monk Liu
     [not found]     ` <1486447878-20521-5-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:31       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 06/20] drm/amdgpu:no need use sriov judge Monk Liu
     [not found]     ` <1486447878-20521-6-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:33       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 07/20] drm/amdgpu:minor cleanup Monk Liu
     [not found]     ` <1486447878-20521-7-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:34       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 08/20] drm/amdgpu:divide KCQ mqd init to sw and hw Monk Liu
     [not found]     ` <1486447878-20521-8-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:36       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 09/20] drm/amdgpu:implement SRIOV gpu_reset Monk Liu
     [not found]     ` <1486447878-20521-9-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07  6:26       ` 答复: " Liu, Monk
     [not found]         ` <DM5PR12MB16109EC5F03088C1CFB58FE484430-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-08 10:49           ` SPAM //答复: " Christian König
     [not found]             ` <5dfe222d-9564-0835-f749-3ea5ef78c701-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-02-08 14:57               ` 答复: " Liu, Monk
     [not found]                 ` <DM5PR12MB1610E1ADF3A9172B1A418C7184420-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-08 15:13                   ` Christian König
     [not found]                     ` <afe8b046-c0ba-586e-99c3-adef380cfd3f-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-02-08 15:17                       ` 答复: " Liu, Monk
     [not found]                         ` <DM5PR12MB161095B3EBE0DCC3CEFCBB8A84420-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-08 15:27                           ` Christian König
     [not found]                             ` <aea90712-dc2f-5bd5-ea8b-52b8688a44c9-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-02-08 15:40                               ` 答复: " Liu, Monk
     [not found]                                 ` <DM5PR12MB1610E5F6359C78E0740F428384420-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-08 15:45                                   ` Liu, Monk
2017-02-07 15:45       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 10/20] drm/amdgpu:change kiq lock name Monk Liu
     [not found]     ` <1486447878-20521-10-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:38       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 11/20] drm/amdgpu:add lock_reset for SRIOV Monk Liu
     [not found]     ` <1486447878-20521-11-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:47       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 12/20] drm/amdgpu:impl mm_r/weg_nokiq Monk Liu
     [not found]     ` <1486447878-20521-12-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:52       ` Deucher, Alexander
     [not found]         ` <BN6PR12MB1652FE39574BA6067AB64578F7430-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-08  7:30           ` Yu, Xiangliang
2017-02-07  6:11   ` [PATCH 13/20] Refine handshake between guest and host by mailbox Monk Liu
     [not found]     ` <1486447878-20521-13-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:40       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 14/20] drm/amdgpu:use nokiq version mm access Monk Liu
     [not found]     ` <1486447878-20521-14-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:54       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 15/20] drm/amdgpu:use work instead of delay-work Monk Liu
     [not found]     ` <1486447878-20521-15-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 16:10       ` Deucher, Alexander
     [not found]         ` <BN6PR12MB1652AA568136314BD28303BFF7430-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-08  6:28           ` Yu, Xiangliang
2017-02-08  7:45           ` Liu, Monk
2017-02-07  6:11   ` [PATCH 16/20] drm/amdgpu:RUNTIME flag should clr later Monk Liu
     [not found]     ` <1486447878-20521-16-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 15:56       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 17/20] drm/amdgpu:new field is_load_stage introduced Monk Liu
     [not found]     ` <1486447878-20521-17-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 16:08       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 18/20] drm/amdgpu:alloc mqd backup Monk Liu
     [not found]     ` <1486447878-20521-18-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 16:11       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 19/20] drm/amdgpu:use nop to clear ring buffer Monk Liu
     [not found]     ` <1486447878-20521-19-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 16:10       ` Deucher, Alexander
2017-02-07  6:11   ` [PATCH 20/20] drm/amdgpu:fix kiq_resume routine Monk Liu
     [not found]     ` <1486447878-20521-20-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-07 16:09       ` Deucher, Alexander
2017-02-07 15:27   ` [PATCH 01/20] drm/amdgpu:fix powerplay logic Deucher, Alexander

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.