drm/amd/powerplay: check before issuing messages for max sustainable clocks
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: check before issuing messages for max sustainable clocks
Those messages are not supported on Arcturus and should not be issued.
Affected ASIC: Arcturus
--- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +4 -0
@@ -905,6 +905,10 @@ smu_v11_0_get_max_sustainable_clock(struct smu_context *smu, uint32_t *clock,if (!smu->pm_enabled)return ret; +if ((smu_msg_get_index (smu, SMU_MSG_GetDcModeMaxDpmFreq) <0 ) || + (smu_msg_get_index (smu, SMU_MSG_GetMaxDpmFreq) <0 )) +return 0 ; + clk_id =smu_clk_get_index (smu, clock_select);if (clk_id <0 )return -EINVAL ;
Signature · 6 lines
2.22.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Xu, Feifei
Reviewed-by Feifei Xu-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Evan Quan
Sent: Tuesday, August 6, 2019 4:21 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/powerplay: check before issuing messages for max sustainable clocks
Those messages are not supported on Arcturus and should not be issued.
Affected ASIC: Arcturus
--- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +4 -0
@@ -905,6 +905,10 @@ smu_v11_0_get_max_sustainable_clock(struct smu_context *smu, uint32_t *clock,if (!smu->pm_enabled)return ret; +if ((smu_msg_get_index (smu, SMU_MSG_GetDcModeMaxDpmFreq) <0 ) || + (smu_msg_get_index (smu, SMU_MSG_GetMaxDpmFreq) <0 )) +return 0 ; + clk_id =smu_clk_get_index (smu, clock_select);if (clk_id <0 )return -EINVAL ;
--
2.22.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx