All of lore.kernel.org
 help / color / mirror / Atom feed
* Simple cleanups for cz_hwmgr.c
@ 2017-10-16 17:54 Tom St Denis
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:54 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Small set of simple cleanups with no functional changes.

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

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

* [PATCH 1/7] drm/amd/powerplay: Tidy up cz_start_dpm()
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-16 17:54   ` Tom St Denis
  2017-10-16 17:54   ` [PATCH 2/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_uvd() Tom St Denis
                     ` (6 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:54 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index 96da4fc9c998..75af4d94f902 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -961,18 +961,13 @@ static void cz_clear_voting_clients(struct pp_hwmgr *hwmgr)
 
 static int cz_start_dpm(struct pp_hwmgr *hwmgr)
 {
-	int ret = 0;
 	struct cz_hwmgr *cz_hwmgr = (struct cz_hwmgr *)(hwmgr->backend);
-	unsigned long dpm_features = 0;
 
 	cz_hwmgr->dpm_flags |= DPMFlags_SCLK_Enabled;
-	dpm_features |= SCLK_DPM_MASK;
 
-	ret = smum_send_msg_to_smc_with_parameter(hwmgr,
+	return smum_send_msg_to_smc_with_parameter(hwmgr,
 				PPSMC_MSG_EnableAllSmuFeatures,
-				dpm_features);
-
-	return ret;
+				SCLK_DPM_MASK);
 }
 
 static int cz_stop_dpm(struct pp_hwmgr *hwmgr)
-- 
2.12.0

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

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

* [PATCH 2/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_uvd()
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
  2017-10-16 17:54   ` [PATCH 1/7] drm/amd/powerplay: Tidy up cz_start_dpm() Tom St Denis
@ 2017-10-16 17:54   ` Tom St Denis
  2017-10-16 17:54   ` [PATCH 3/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_uvd() Tom St Denis
                     ` (5 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:54 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index 75af4d94f902..6ba41d7401b6 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -1276,8 +1276,7 @@ int cz_dpm_powerdown_uvd(struct pp_hwmgr *hwmgr)
 {
 	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
 					 PHM_PlatformCaps_UVDPowerGating))
-		return smum_send_msg_to_smc(hwmgr,
-						     PPSMC_MSG_UVDPowerOFF);
+		return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_UVDPowerOFF);
 	return 0;
 }
 
-- 
2.12.0

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

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

* [PATCH 3/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_uvd()
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
  2017-10-16 17:54   ` [PATCH 1/7] drm/amd/powerplay: Tidy up cz_start_dpm() Tom St Denis
  2017-10-16 17:54   ` [PATCH 2/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_uvd() Tom St Denis
@ 2017-10-16 17:54   ` Tom St Denis
  2017-10-16 17:55   ` [PATCH 4/7] drm/amd/powerplay: Tidy up cz_dpm_update_uvd_dpm() Tom St Denis
                     ` (4 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:54 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index 6ba41d7401b6..e7ce123db942 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -1282,18 +1282,11 @@ int cz_dpm_powerdown_uvd(struct pp_hwmgr *hwmgr)
 
 int cz_dpm_powerup_uvd(struct pp_hwmgr *hwmgr)
 {
-	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
-					 PHM_PlatformCaps_UVDPowerGating)) {
-		if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
-				  PHM_PlatformCaps_UVDDynamicPowerGating)) {
-			return smum_send_msg_to_smc_with_parameter(
-								hwmgr,
-						   PPSMC_MSG_UVDPowerON, 1);
-		} else {
-			return smum_send_msg_to_smc_with_parameter(
-								hwmgr,
-						   PPSMC_MSG_UVDPowerON, 0);
-		}
+	if (PP_CAP(PHM_PlatformCaps_UVDPowerGating)) {
+		return smum_send_msg_to_smc_with_parameter(
+			hwmgr,
+			PPSMC_MSG_UVDPowerON,
+			PP_CAP(PHM_PlatformCaps_UVDDynamicPowerGating) ? 1 : 0);
 	}
 
 	return 0;
-- 
2.12.0

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

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

* [PATCH 4/7] drm/amd/powerplay: Tidy up cz_dpm_update_uvd_dpm()
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
                     ` (2 preceding siblings ...)
  2017-10-16 17:54   ` [PATCH 3/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_uvd() Tom St Denis
@ 2017-10-16 17:55   ` Tom St Denis
  2017-10-16 17:55   ` [PATCH 5/7] drm/amd/powerplay: Tidy up cz_dpm_update_vce_dpm() Tom St Denis
                     ` (3 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:55 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index e7ce123db942..3abd6b2988e5 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -1300,17 +1300,16 @@ int cz_dpm_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate)
 
 	if (!bgate) {
 		/* Stable Pstate is enabled and we need to set the UVD DPM to highest level */
-		if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
-					 PHM_PlatformCaps_StablePState)
-			|| hwmgr->en_umd_pstate) {
+		if (PP_CAP(PHM_PlatformCaps_StablePState) ||
+		    hwmgr->en_umd_pstate) {
 			cz_hwmgr->uvd_dpm.hard_min_clk =
 				   ptable->entries[ptable->count - 1].vclk;
 
 			smum_send_msg_to_smc_with_parameter(hwmgr,
-						     PPSMC_MSG_SetUvdHardMin,
-						      cz_get_uvd_level(hwmgr,
-					     cz_hwmgr->uvd_dpm.hard_min_clk,
-						   PPSMC_MSG_SetUvdHardMin));
+				PPSMC_MSG_SetUvdHardMin,
+				cz_get_uvd_level(hwmgr,
+					cz_hwmgr->uvd_dpm.hard_min_clk,
+					PPSMC_MSG_SetUvdHardMin));
 
 			cz_enable_disable_uvd_dpm(hwmgr, true);
 		} else {
-- 
2.12.0

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

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

* [PATCH 5/7] drm/amd/powerplay: Tidy up cz_dpm_update_vce_dpm()
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
                     ` (3 preceding siblings ...)
  2017-10-16 17:55   ` [PATCH 4/7] drm/amd/powerplay: Tidy up cz_dpm_update_uvd_dpm() Tom St Denis
@ 2017-10-16 17:55   ` Tom St Denis
  2017-10-16 17:55   ` [PATCH 6/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_vce() Tom St Denis
                     ` (2 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:55 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index 3abd6b2988e5..36d975dde65f 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -1329,17 +1329,16 @@ int  cz_dpm_update_vce_dpm(struct pp_hwmgr *hwmgr)
 		hwmgr->dyn_state.vce_clock_voltage_dependency_table;
 
 	/* Stable Pstate is enabled and we need to set the VCE DPM to highest level */
-	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
-					PHM_PlatformCaps_StablePState)
-					|| hwmgr->en_umd_pstate) {
+	if (PP_CAP(PHM_PlatformCaps_StablePState) ||
+	    hwmgr->en_umd_pstate) {
 		cz_hwmgr->vce_dpm.hard_min_clk =
 				  ptable->entries[ptable->count - 1].ecclk;
 
 		smum_send_msg_to_smc_with_parameter(hwmgr,
-					PPSMC_MSG_SetEclkHardMin,
-					cz_get_eclk_level(hwmgr,
-					     cz_hwmgr->vce_dpm.hard_min_clk,
-						PPSMC_MSG_SetEclkHardMin));
+			PPSMC_MSG_SetEclkHardMin,
+			cz_get_eclk_level(hwmgr,
+				cz_hwmgr->vce_dpm.hard_min_clk,
+				PPSMC_MSG_SetEclkHardMin));
 	} else {
 		/*Program HardMin based on the vce_arbiter.ecclk */
 		if (hwmgr->vce_arbiter.ecclk == 0) {
@@ -1352,10 +1351,10 @@ int  cz_dpm_update_vce_dpm(struct pp_hwmgr *hwmgr)
 		} else {
 			cz_hwmgr->vce_dpm.hard_min_clk = hwmgr->vce_arbiter.ecclk;
 			smum_send_msg_to_smc_with_parameter(hwmgr,
-						PPSMC_MSG_SetEclkHardMin,
-						cz_get_eclk_level(hwmgr,
-						cz_hwmgr->vce_dpm.hard_min_clk,
-						PPSMC_MSG_SetEclkHardMin));
+				PPSMC_MSG_SetEclkHardMin,
+				cz_get_eclk_level(hwmgr,
+					cz_hwmgr->vce_dpm.hard_min_clk,
+					PPSMC_MSG_SetEclkHardMin));
 		}
 	}
 	return 0;
-- 
2.12.0

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

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

* [PATCH 6/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_vce()
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
                     ` (4 preceding siblings ...)
  2017-10-16 17:55   ` [PATCH 5/7] drm/amd/powerplay: Tidy up cz_dpm_update_vce_dpm() Tom St Denis
@ 2017-10-16 17:55   ` Tom St Denis
       [not found]     ` <20171016175503.18367-7-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
  2017-10-16 17:55   ` [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce() Tom St Denis
  2017-10-16 18:25   ` Simple cleanups for cz_hwmgr.c Deucher, Alexander
  7 siblings, 1 reply; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:55 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index 36d975dde65f..23df056a034b 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -1362,10 +1362,9 @@ int  cz_dpm_update_vce_dpm(struct pp_hwmgr *hwmgr)
 
 int cz_dpm_powerdown_vce(struct pp_hwmgr *hwmgr)
 {
-	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
-					 PHM_PlatformCaps_VCEPowerGating))
+	if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
 		return smum_send_msg_to_smc(hwmgr,
-						     PPSMC_MSG_VCEPowerOFF);
+				PPSMC_MSG_VCEPowerOFF);
 	return 0;
 }
 
-- 
2.12.0

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

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

* [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce()
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
                     ` (5 preceding siblings ...)
  2017-10-16 17:55   ` [PATCH 6/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_vce() Tom St Denis
@ 2017-10-16 17:55   ` Tom St Denis
       [not found]     ` <20171016175503.18367-8-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
  2017-10-16 18:25   ` Simple cleanups for cz_hwmgr.c Deucher, Alexander
  7 siblings, 1 reply; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 17:55 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index 23df056a034b..ca06033cd155 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -1370,10 +1370,9 @@ int cz_dpm_powerdown_vce(struct pp_hwmgr *hwmgr)
 
 int cz_dpm_powerup_vce(struct pp_hwmgr *hwmgr)
 {
-	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
-					 PHM_PlatformCaps_VCEPowerGating))
+	if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
 		return smum_send_msg_to_smc(hwmgr,
-						     PPSMC_MSG_VCEPowerON);
+				PPSMC_MSG_VCEPowerON);
 	return 0;
 }
 
-- 
2.12.0

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

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

* RE: [PATCH 6/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_vce()
       [not found]     ` <20171016175503.18367-7-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-16 18:22       ` Deucher, Alexander
  0 siblings, 0 replies; 13+ messages in thread
From: Deucher, Alexander @ 2017-10-16 18:22 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: StDenis, Tom

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Monday, October 16, 2017 1:55 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH 6/7] drm/amd/powerplay: Tidy up
> cz_dpm_powerdown_vce()
> 
> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> index 36d975dde65f..23df056a034b 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> @@ -1362,10 +1362,9 @@ int  cz_dpm_update_vce_dpm(struct pp_hwmgr
> *hwmgr)
> 
>  int cz_dpm_powerdown_vce(struct pp_hwmgr *hwmgr)
>  {
> -	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
> -
> PHM_PlatformCaps_VCEPowerGating))
> +	if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
>  		return smum_send_msg_to_smc(hwmgr,
> -
> PPSMC_MSG_VCEPowerOFF);
> +				PPSMC_MSG_VCEPowerOFF);

The indentation looked correct before.

Alex

>  	return 0;
>  }
> 
> --
> 2.12.0
> 
> _______________________________________________
> 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] 13+ messages in thread

* RE: [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce()
       [not found]     ` <20171016175503.18367-8-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-16 18:23       ` Deucher, Alexander
       [not found]         ` <BN6PR12MB1652818229E93890BA988F6BF74F0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Deucher, Alexander @ 2017-10-16 18:23 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: StDenis, Tom

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Monday, October 16, 2017 1:55 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce()
> 
> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> index 23df056a034b..ca06033cd155 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> @@ -1370,10 +1370,9 @@ int cz_dpm_powerdown_vce(struct pp_hwmgr
> *hwmgr)
> 
>  int cz_dpm_powerup_vce(struct pp_hwmgr *hwmgr)
>  {
> -	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
> -
> PHM_PlatformCaps_VCEPowerGating))
> +	if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
>  		return smum_send_msg_to_smc(hwmgr,
> -
> PPSMC_MSG_VCEPowerON);
> +				PPSMC_MSG_VCEPowerON);

Same here (indentation looked correct before).

Alex

>  	return 0;
>  }
> 
> --
> 2.12.0
> 
> _______________________________________________
> 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] 13+ messages in thread

* Re: [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce()
       [not found]         ` <BN6PR12MB1652818229E93890BA988F6BF74F0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2017-10-16 18:24           ` Tom St Denis
       [not found]             ` <e18b6bdf-a2da-73d9-2c72-acce94d7671f-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Tom St Denis @ 2017-10-16 18:24 UTC (permalink / raw)
  To: Deucher, Alexander, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 16/10/17 02:23 PM, Deucher, Alexander wrote:
>> -----Original Message-----
>> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
>> Of Tom St Denis
>> Sent: Monday, October 16, 2017 1:55 PM
>> To: amd-gfx@lists.freedesktop.org
>> Cc: StDenis, Tom
>> Subject: [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce()
>>
>> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
>> ---
>>   drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 5 ++---
>>   1 file changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
>> b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
>> index 23df056a034b..ca06033cd155 100644
>> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
>> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
>> @@ -1370,10 +1370,9 @@ int cz_dpm_powerdown_vce(struct pp_hwmgr
>> *hwmgr)
>>
>>   int cz_dpm_powerup_vce(struct pp_hwmgr *hwmgr)
>>   {
>> -	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
>> -
>> PHM_PlatformCaps_VCEPowerGating))
>> +	if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
>>   		return smum_send_msg_to_smc(hwmgr,
>> -
>> PPSMC_MSG_VCEPowerON);
>> +				PPSMC_MSG_VCEPowerON);
> 
> Same here (indentation looked correct before).

I was simply trying to make the lines a bit narrower.  (while using the 
PP_CAP macro).

I can drop that part of the commits if you want.

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

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

* RE: Simple cleanups for cz_hwmgr.c
       [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
                     ` (6 preceding siblings ...)
  2017-10-16 17:55   ` [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce() Tom St Denis
@ 2017-10-16 18:25   ` Deucher, Alexander
  7 siblings, 0 replies; 13+ messages in thread
From: Deucher, Alexander @ 2017-10-16 18:25 UTC (permalink / raw)
  To: StDenis, Tom, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Please provide a commit message for each patch.  E.g., something like:

Fix up whitespace and use new PP_CAP macro.  No function change intended.

With that fixed, patches 1-5 are:
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

The new indentation looks wrong on patches 6 and 7.

Alex

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Monday, October 16, 2017 1:55 PM
> To: amd-gfx@lists.freedesktop.org
> Subject: Simple cleanups for cz_hwmgr.c
> 
> Small set of simple cleanups with no functional changes.
> 
> _______________________________________________
> 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] 13+ messages in thread

* RE: [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce()
       [not found]             ` <e18b6bdf-a2da-73d9-2c72-acce94d7671f-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-16 18:30               ` Deucher, Alexander
  0 siblings, 0 replies; 13+ messages in thread
From: Deucher, Alexander @ 2017-10-16 18:30 UTC (permalink / raw)
  To: StDenis, Tom, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

> -----Original Message-----
> From: StDenis, Tom
> Sent: Monday, October 16, 2017 2:25 PM
> To: Deucher, Alexander; amd-gfx@lists.freedesktop.org
> Subject: Re: [PATCH 7/7] drm/amd/powerplay: Tidy up
> cz_dpm_powerup_vce()
> 
> On 16/10/17 02:23 PM, Deucher, Alexander wrote:
> >> -----Original Message-----
> >> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On
> Behalf
> >> Of Tom St Denis
> >> Sent: Monday, October 16, 2017 1:55 PM
> >> To: amd-gfx@lists.freedesktop.org
> >> Cc: StDenis, Tom
> >> Subject: [PATCH 7/7] drm/amd/powerplay: Tidy up
> cz_dpm_powerup_vce()
> >>
> >> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
> >> ---
> >>   drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 5 ++---
> >>   1 file changed, 2 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> >> b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> >> index 23df056a034b..ca06033cd155 100644
> >> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> >> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> >> @@ -1370,10 +1370,9 @@ int cz_dpm_powerdown_vce(struct pp_hwmgr
> >> *hwmgr)
> >>
> >>   int cz_dpm_powerup_vce(struct pp_hwmgr *hwmgr)
> >>   {
> >> -	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
> >> -
> >> PHM_PlatformCaps_VCEPowerGating))
> >> +	if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
> >>   		return smum_send_msg_to_smc(hwmgr,
> >> -
> >> PPSMC_MSG_VCEPowerON);
> >> +				PPSMC_MSG_VCEPowerON);
> >
> > Same here (indentation looked correct before).
> 
> I was simply trying to make the lines a bit narrower.  (while using the
> PP_CAP macro).
> 
> I can drop that part of the commits if you want.

Please.  Thanks!  With that fixed and the commit messages updates, patches 6 and 7 are:
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

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

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

end of thread, other threads:[~2017-10-16 18:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-16 17:54 Simple cleanups for cz_hwmgr.c Tom St Denis
     [not found] ` <20171016175503.18367-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-10-16 17:54   ` [PATCH 1/7] drm/amd/powerplay: Tidy up cz_start_dpm() Tom St Denis
2017-10-16 17:54   ` [PATCH 2/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_uvd() Tom St Denis
2017-10-16 17:54   ` [PATCH 3/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_uvd() Tom St Denis
2017-10-16 17:55   ` [PATCH 4/7] drm/amd/powerplay: Tidy up cz_dpm_update_uvd_dpm() Tom St Denis
2017-10-16 17:55   ` [PATCH 5/7] drm/amd/powerplay: Tidy up cz_dpm_update_vce_dpm() Tom St Denis
2017-10-16 17:55   ` [PATCH 6/7] drm/amd/powerplay: Tidy up cz_dpm_powerdown_vce() Tom St Denis
     [not found]     ` <20171016175503.18367-7-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-10-16 18:22       ` Deucher, Alexander
2017-10-16 17:55   ` [PATCH 7/7] drm/amd/powerplay: Tidy up cz_dpm_powerup_vce() Tom St Denis
     [not found]     ` <20171016175503.18367-8-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-10-16 18:23       ` Deucher, Alexander
     [not found]         ` <BN6PR12MB1652818229E93890BA988F6BF74F0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-10-16 18:24           ` Tom St Denis
     [not found]             ` <e18b6bdf-a2da-73d9-2c72-acce94d7671f-5C7GfCeVMHo@public.gmane.org>
2017-10-16 18:30               ` Deucher, Alexander
2017-10-16 18:25   ` Simple cleanups for cz_hwmgr.c 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.