All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Some changes to fix performance drop on Vega10
@ 2017-10-19 19:14 Eric Huang
       [not found] ` <1508440499-19321-1-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Huang @ 2017-10-19 19:14 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Eric Huang

Eric Huang (2):
  drm/amd/powerplay: add one smc message for Vega10
  drm/amd/powerplay: fix performance drop on Vega10

 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 ++++++
 drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h   | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.7.4

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

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

* [PATCH 1/2] drm/amd/powerplay: add one smc message for Vega10
       [not found] ` <1508440499-19321-1-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-19 19:14   ` Eric Huang
  2017-10-19 19:14   ` [PATCH 2/2] drm/amd/powerplay: fix performance drop on Vega10 Eric Huang
  2017-10-20 18:10   ` [PATCH 0/2] Some changes to fix performance drop on Vega10 Eric Huang
  2 siblings, 0 replies; 6+ messages in thread
From: Eric Huang @ 2017-10-19 19:14 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Eric Huang

This is used to fix performance drop caused by updated SMU FW.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
---
 drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h b/drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h
index d06ece4..247c973 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h
@@ -131,7 +131,8 @@ typedef uint16_t PPSMC_Result;
 #define PPSMC_MSG_RunAcgInOpenLoop               0x5E
 #define PPSMC_MSG_InitializeAcg                  0x5F
 #define PPSMC_MSG_GetCurrPkgPwr                  0x61
-#define PPSMC_Message_Count                      0x62
+#define PPSMC_MSG_UpdatePkgPwrPidAlpha           0x68
+#define PPSMC_Message_Count                      0x69
 
 
 typedef int PPSMC_Msg;
-- 
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] 6+ messages in thread

* [PATCH 2/2] drm/amd/powerplay: fix performance drop on Vega10
       [not found] ` <1508440499-19321-1-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
  2017-10-19 19:14   ` [PATCH 1/2] drm/amd/powerplay: add one smc message for Vega10 Eric Huang
@ 2017-10-19 19:14   ` Eric Huang
       [not found]     ` <1508440499-19321-3-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
  2017-10-20 18:10   ` [PATCH 0/2] Some changes to fix performance drop on Vega10 Eric Huang
  2 siblings, 1 reply; 6+ messages in thread
From: Eric Huang @ 2017-10-19 19:14 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Eric Huang

Setting package power PID to 1 fixes performance drop caused by
updated SMU FW, before DPM is enabled.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 0519338..2daf234 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -2879,6 +2879,12 @@ static int vega10_enable_dpm_tasks(struct pp_hwmgr *hwmgr)
 			"DPM is already running right , skipping re-enablement!",
 			return 0);
 
+	tmp_result = smum_send_msg_to_smc_with_parameter(hwmgr,
+			PPSMC_MSG_UpdatePkgPwrPidAlpha, 1);
+	PP_ASSERT_WITH_CODE(!tmp_result,
+			"Failed to set package power PID!",
+			return tmp_result);
+
 	tmp_result = vega10_construct_voltage_tables(hwmgr);
 	PP_ASSERT_WITH_CODE(!tmp_result,
 			"Failed to contruct voltage tables!",
-- 
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] 6+ messages in thread

* [PATCH 2/2] drm/amd/powerplay: fix performance drop on Vega10 (v2)
       [not found]     ` <1508440499-19321-3-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-19 19:49       ` Eric Huang
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Huang @ 2017-10-19 19:49 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Eric Huang

Setting package power PID to 1 fixes performance drop caused by
updated SMU FW, before DPM is enabled.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 0519338..66a047f 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -2879,6 +2879,15 @@ static int vega10_enable_dpm_tasks(struct pp_hwmgr *hwmgr)
 			"DPM is already running right , skipping re-enablement!",
 			return 0);
 
+	if (data->smu_version == 0x001c2c00 ||
+			data->smu_version == 0x001c2d00) {
+		tmp_result = smum_send_msg_to_smc_with_parameter(hwmgr,
+				PPSMC_MSG_UpdatePkgPwrPidAlpha, 1);
+		PP_ASSERT_WITH_CODE(!tmp_result,
+				"Failed to set package power PID!",
+				return tmp_result);
+	}
+
 	tmp_result = vega10_construct_voltage_tables(hwmgr);
 	PP_ASSERT_WITH_CODE(!tmp_result,
 			"Failed to contruct voltage tables!",
-- 
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] 6+ messages in thread

* Re: [PATCH 0/2] Some changes to fix performance drop on Vega10
       [not found] ` <1508440499-19321-1-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
  2017-10-19 19:14   ` [PATCH 1/2] drm/amd/powerplay: add one smc message for Vega10 Eric Huang
  2017-10-19 19:14   ` [PATCH 2/2] drm/amd/powerplay: fix performance drop on Vega10 Eric Huang
@ 2017-10-20 18:10   ` Eric Huang
       [not found]     ` <18695bbf-f6c0-9d7b-4c16-20b7ba7a0c23-5C7GfCeVMHo@public.gmane.org>
  2 siblings, 1 reply; 6+ messages in thread
From: Eric Huang @ 2017-10-20 18:10 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Ping.


On 2017-10-19 03:14 PM, Eric Huang wrote:
> Eric Huang (2):
>    drm/amd/powerplay: add one smc message for Vega10
>    drm/amd/powerplay: fix performance drop on Vega10
>
>   drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 ++++++
>   drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h   | 3 ++-
>   2 files changed, 8 insertions(+), 1 deletion(-)
>

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

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

* RE: [PATCH 0/2] Some changes to fix performance drop on Vega10
       [not found]     ` <18695bbf-f6c0-9d7b-4c16-20b7ba7a0c23-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-20 19:05       ` Deucher, Alexander
  0 siblings, 0 replies; 6+ messages in thread
From: Deucher, Alexander @ 2017-10-20 19:05 UTC (permalink / raw)
  To: Huang, JinHuiEric, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Eric Huang
> Sent: Friday, October 20, 2017 2:10 PM
> To: amd-gfx@lists.freedesktop.org
> Subject: Re: [PATCH 0/2] Some changes to fix performance drop on Vega10
> 
> Ping.

Series is:
Acked-by: Alex Deucher <alexander.deucher@amd.com>

> 
> 
> On 2017-10-19 03:14 PM, Eric Huang wrote:
> > Eric Huang (2):
> >    drm/amd/powerplay: add one smc message for Vega10
> >    drm/amd/powerplay: fix performance drop on Vega10
> >
> >   drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 ++++++
> >   drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h   | 3 ++-
> >   2 files changed, 8 insertions(+), 1 deletion(-)
> >
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2017-10-20 19:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-19 19:14 [PATCH 0/2] Some changes to fix performance drop on Vega10 Eric Huang
     [not found] ` <1508440499-19321-1-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
2017-10-19 19:14   ` [PATCH 1/2] drm/amd/powerplay: add one smc message for Vega10 Eric Huang
2017-10-19 19:14   ` [PATCH 2/2] drm/amd/powerplay: fix performance drop on Vega10 Eric Huang
     [not found]     ` <1508440499-19321-3-git-send-email-JinHuiEric.Huang-5C7GfCeVMHo@public.gmane.org>
2017-10-19 19:49       ` [PATCH 2/2] drm/amd/powerplay: fix performance drop on Vega10 (v2) Eric Huang
2017-10-20 18:10   ` [PATCH 0/2] Some changes to fix performance drop on Vega10 Eric Huang
     [not found]     ` <18695bbf-f6c0-9d7b-4c16-20b7ba7a0c23-5C7GfCeVMHo@public.gmane.org>
2017-10-20 19:05       ` 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.