drm/amd/powerplay: suppress nonsupport profile mode overrun message
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: suppress nonsupport profile mode overrun message
SMU12 not support WORKLOAD_DEFAULT_BIT and WORKLOAD_PPLIB_POWER_SAVING_BIT.
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6 -2
@@ -550,14 +550,18 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ workload_type =smu_workload_get_type (smu, smu->power_profile_mode);if (workload_type <0 ) { -pr_err ("Unsupported power profile mode %d on RENOIR\n" ,smu->power_profile_mode); +/* +* TODO: If some case need switch to powersave/default power mode +* then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving. +*/ +pr_err_once ("Unsupported power profile mode %d on RENOIR\n" ,smu->power_profile_mode);return -EINVAL ; } ret =smu_send_smc_msg_with_param (smu, SMU_MSG_SetWorkloadMask,1 << workload_type);if (ret) { -pr_err ("Fail to set workload type %d\n" , workload_type); +pr_err_once ("Fail to set workload type %d\n" , workload_type);return ret; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 52 lines
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, December 19, 2019 2:46 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>; Huang, Ray <[email protected]>; Dai, Yuxian (David) <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun messageSMU12 not support
WORKLOAD_DEFAULT_BITandWORKLOAD_PPLIB_POWER_SAVING_BIT.Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0@@ -550,14 +550,18 @@ static int renoir_set_power_profile_mode(struct
smu_context*smu, long *input, udrivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ workload_type = smu_workload_get_type(smu, smu-Quoted 1 line
power_profile_mode);drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-1if (workload_type <0 ) { - pr_err("Unsupported power profile mode %d onRENOIR\n",smu->power_profile_mode);
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +2
-0+/* +* TODO: If some case need switch to powersave/default power mode
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1
-0+* then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving.
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +2
-0+*/ + pr_err_once("Unsupported power profile mode %d onRENOIR\n",smu->power_profile_mode);
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0return -EINVAL ; } ret = smu_send_smc_msg_with_param(smu,
SMU_MSG_SetWorkloadMask,drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1
-21 << workload_type);if (ret) { -pr_err ("Fail to set workload type %d\n" , workload_type); +pr_err_once ("Fail to set workload type %d\n" , workload_type);return ret; } --
Quoted 1 line
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
For we don't support the mode, so shouldn't print the error message, or regard as a error. For log message, the error is high level .maybe change from "error" to "warning" , it will be much better.
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, December 19, 2019 2:46 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>; Huang, Ray <[email protected]>; Dai, Yuxian (David) <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun message
SMU12 not support WORKLOAD_DEFAULT_BIT and WORKLOAD_PPLIB_POWER_SAVING_BIT.
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6 -2
@@ -550,14 +550,18 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ workload_type =smu_workload_get_type (smu, smu->power_profile_mode);if (workload_type <0 ) { -pr_err ("Unsupported power profile mode %d on RENOIR\n" ,smu->power_profile_mode); +/* +* TODO: If some case need switch to powersave/default power mode +* then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving. +*/ +pr_err_once ("Unsupported power profile mode %d on RENOIR\n" ,smu->power_profile_mode);return -EINVAL ; } ret =smu_send_smc_msg_with_param (smu, SMU_MSG_SetWorkloadMask,1 << workload_type);if (ret) { -pr_err ("Fail to set workload type %d\n" , workload_type); +pr_err_once ("Fail to set workload type %d\n" , workload_type);return ret; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Quoted 4 lines · Yuxian (David)
For we don't support the mode, so shouldn't print the error message, or regard as a error. For log message, the error is high level .maybe change from "error" to "warning" , it will be much better.
Quoted 9 lines
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, December 19, 2019 2:46 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>; Huang, Ray <[email protected]>; Dai, Yuxian (David) <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun messageSMU12 not support
WORKLOAD_DEFAULT_BITandWORKLOAD_PPLIB_POWER_SAVING_BIT.
Probably smu firmware doesn't expose the feature mask to driver. Can you confirmware with smu firmware guy whehter this feature is really disabled or not in SMU12. If that, in my view, issue the message SMU_MSG_SetWorkloadMask with an unsupported state, it doesn't make sense.
Just work around this with one time warnning is not a good solution.
Thanks,
Ray
Quoted 33 lines
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6
-2@@ -550,14 +550,18 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ workload_type =smu_workload_get_type (smu, smu->power_profile_mode);if (workload_type <0 ) { -pr_err ("Unsupported power profile mode %d on RENOIR\n" ,smu->power_profile_mode); +/* +* TODO: If some case need switch to powersave/default power mode +* then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving. +*/ +pr_err_once ("Unsupported power profile mode %d on RENOIR\n" ,smu->power_profile_mode);return -EINVAL ; } ret =smu_send_smc_msg_with_param (smu, SMU_MSG_SetWorkloadMask,1 << workload_type);if (ret) { -pr_err ("Fail to set workload type %d\n" , workload_type); +pr_err_once ("Fail to set workload type %d\n" , workload_type);return ret; }Signature · 1 line
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Quoted 33 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Thursday, December 19, 2019 3:17 PM
To: Dai, Yuxian (David) <[email protected]>
Cc: Liang, Prike <[email protected]>; [email protected]; Quan, Evan <[email protected]>
Subject: Re: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun message[AMD Official Use Only - Internal Distribution Only]
Quoted 1 line · Yuxian (David)
For we don't support the mode, so shouldn't print the error message, or
regard as a error.
Quoted 1 line
For log message, the error is high level .maybe change from "error" to
"warning" , it will be much better.
Quoted 7 lines
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, December 19, 2019 2:46 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>; Huang, RayQuoted 6 lines
Dai, Yuxian (David) <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun messageSMU12 not support
WORKLOAD_DEFAULT_BITand
WORKLOAD_PPLIB_POWER_SAVING_BIT.Quoted 1 line
Quoted 7 lines
Probably smu firmware doesn't expose the feature mask to driver. Can you confirmware with smu firmware guy whehter this feature is really disabled or not in SMU12. If that, in my view, issue the message
SMU_MSG_SetWorkloadMaskwith an unsupported state, it doesn't make sense.Just work around this with one time warnning is not a good solution.
[Prike] Yes, from SMU FW guy @Cai, Land SMU12 not support default and power saving mode now. As the patch TODO item said we can consider switch to compute/customer profile mode for power saving if needed.
Quoted 33 lines
Thanks,
Raydrivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct
Quoted 11 lines
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0@@ -550,14 +550,18 @@ static int renoir_set_power_profile_mode(struct
smu_context*smu, long *input, udrivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 554
Quoted 5 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-1/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ workload_type =smu_workload_get_type (smu, smu- power_profile_mode);if (workload_type <0 ) { - pr_err("Unsupported power profile mode %d onRENOIR\n",smu->power_profile_mode);
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 555
Quoted 2 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +2
-0+/* +* TODO: If some case need switch to powersave/default power mode
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 556
Quoted 1 line
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1
-0+* then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving.
Quoted 6 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +3
-0+*/ +pr_err_once ("Unsupported power profile mode %d on +RENOIR\n",smu->power_profile_mode);return -EINVAL ; }
Quoted 13 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 563
Quoted 1 line
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0ret = smu_send_smc_msg_with_param(smu,
SMU_MSG_SetWorkloadMask,drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u
Quoted 4 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1
-11 << workload_type);if (ret) { -pr_err ("Fail to set workload type %d\n" , workload_type); + pr_err_once("Fail to set workload type %d\n",
workload_type);Quoted 6 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-1return ret; } --2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
As Ray point out. We should set the SMU_MSG_SetWorkloadMask with specified value to indicate unsupported. But the current a value with system error value: "-EINVAL"
The firmware maybe response with unexpected action to driver.
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Thursday, December 19, 2019 3:17 PM
To: Dai, Yuxian (David) <[email protected]>
Cc: Liang, Prike <[email protected]>; [email protected]; Quan, Evan <[email protected]>
Subject: Re: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun message
[AMD Official Use Only - Internal Distribution Only]
Quoted 14 lines · Yuxian (David)
For we don't support the mode, so shouldn't print the error message, or regard as a error. For log message, the error is high level .maybe change from "error" to "warning" , it will be much better.
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, December 19, 2019 2:46 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>; Huang, Ray <[email protected]>; Dai, Yuxian (David) <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun message
Quoted 2 lines
SMU12 not support
WORKLOAD_DEFAULT_BITandWORKLOAD_PPLIB_POWER_SAVING_BIT.
Probably smu firmware doesn't expose the feature mask to driver. Can you confirmware with smu firmware guy whehter this feature is really disabled or not in SMU12. If that, in my view, issue the message SMU_MSG_SetWorkloadMask with an unsupported state, it doesn't make sense.
Just work around this with one time warnning is not a good solution.
Thanks,
Ray
Quoted 33 lines
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +7
-3@@ -550,14 +550,18 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ workload_type =smu_workload_get_type (smu, smu->power_profile_mode);if (workload_type <0 ) { -pr_err ("Unsupported power profile mode %d on RENOIR\n" ,smu->power_profile_mode); +/* +* TODO: If some case need switch to powersave/default power mode +* then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving. +*/ +pr_err_once ("Unsupported power profile mode %d on +RENOIR\n",smu->power_profile_mode);return -EINVAL ; } ret =smu_send_smc_msg_with_param (smu, SMU_MSG_SetWorkloadMask,1 << workload_type);if (ret) { -pr_err ("Fail to set workload type %d\n" , workload_type); +pr_err_once ("Fail to set workload type %d\n" , workload_type);return ret; } --
Quoted 2 lines
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Quoted 8 lines
-----Original Message-----
From: Dai, Yuxian (David) <[email protected]>
Sent: Thursday, December 19, 2019 3:39 PM
To: Huang, Ray <[email protected]>; Liang, Prike <[email protected]>
Cc: [email protected]; Quan, Evan <[email protected]>
Subject: RE: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun message
Quoted 4 lines
As Ray point out. We should set the
SMU_MSG_SetWorkloadMaskwith specified value to indicate unsupported.
But the current a value with system error value: "-EINVAL" The firmware maybe response with unexpected action to driver.
[Prike] If get nonsupport profile mode will exit and not issue any you mentioned error value.
Quoted 74 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Thursday, December 19, 2019 3:17 PM
To: Dai, Yuxian (David) <[email protected]>
Cc: Liang, Prike <[email protected]>; [email protected]; Quan, Evan <[email protected]>
Subject: Re: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun message[AMD Official Use Only - Internal Distribution Only]
Quoted 1 line · Yuxian (David)
For we don't support the mode, so shouldn't print the error message, or
regard as a error.
Quoted 1 line
For log message, the error is high level .maybe change from "error" to
"warning" , it will be much better.
Quoted 7 lines
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, December 19, 2019 2:46 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>; Huang, RayQuoted 6 lines
Dai, Yuxian (David) <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amd/powerplay: suppress nonsupport profile mode overrun messageSMU12 not support
WORKLOAD_DEFAULT_BITand
WORKLOAD_PPLIB_POWER_SAVING_BIT.Quoted 1 line
Probably smu firmware doesn't expose the feature mask to driver. Can you confirmware with smu firmware guy whehter this feature is really disabled or not in SMU12. If that, in my view, issue the message
SMU_MSG_SetWorkloadMaskwith an unsupported state, it doesn't make sense.Just work around this with one time warnning is not a good solution.
Thanks,
Raydrivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct
Quoted 11 lines
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0@@ -550,14 +550,18 @@ static int renoir_set_power_profile_mode(struct
smu_context*smu, long *input, udrivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 554
Quoted 5 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-1/* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ workload_type =smu_workload_get_type (smu, smu- power_profile_mode);if (workload_type <0 ) { - pr_err("Unsupported power profile mode %d onRENOIR\n",smu->power_profile_mode);
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 555
Quoted 2 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +2
-0+/* +* TODO: If some case need switch to powersave/default power mode
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 556
Quoted 1 line
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1
-0+* then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving.
Quoted 6 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +3
-0+*/ +pr_err_once ("Unsupported power profile mode %d on +RENOIR\n",smu->power_profile_mode);return -EINVAL ; }
Quoted 13 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct · line 563
Quoted 1 line
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0ret = smu_send_smc_msg_with_param(smu,
SMU_MSG_SetWorkloadMask,drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u
Quoted 4 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1
-11 << workload_type);if (ret) { -pr_err ("Fail to set workload type %d\n" , workload_type); + pr_err_once("Fail to set workload type %d\n",
workload_type);Quoted 6 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-1return ret; } --2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx