Skip to contentSkip to conversation

drm/amd/powerplay: add missing smu_get_clk_info_from_vbios() call

PATCH In review Evan Quan 2 participants 2 messages Jun 25, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Evan Quan

author
#0 lore raw

PATCH 1/1 drm/amd/powerplay: add missing smu_get_clk_info_from_vbios() call

This seems a merge error.

Change-Id I67389739512c8297da1187428682cc59f560ab03
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +4 -0
index fe83c5e3111f..47b21ad4365c 100644
@@ -823,6 +823,10 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
 		 * check if the format_revision in vbios is up to pptable header
 		 * version, and the structure size is not 0.
 		 */
+		ret = smu_get_clk_info_from_vbios(smu);
+		if (ret)
+			return ret;
+
 		ret = smu_check_pptable(smu);
 		if (ret)
 			return ret;
Signature · 6 lines
2.21.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]

#2 lore raw

The comments below is actually for check_pptable, instead of get_clk_info_from vbios. Please adjust the comments as well.
* check if the format_revision in vbios is up to pptable header
* version, and the structure size is not 0.
*/

With that fixed, the patch is Reviewed-by: Hawking Zhang <[email protected]>

Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Evan Quan
Sent: 2019年6月25日 23:08
To: [email protected]
Cc: Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/powerplay: add missing smu_get_clk_info_from_vbios() call

This seems a merge error.

Change-Id I67389739512c8297da1187428682cc59f560ab03
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +4 -0
index fe83c5e3111f..47b21ad4365c 100644
@@ -823,6 +823,10 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
 		 * check if the format_revision in vbios is up to pptable header
 		 * version, and the structure size is not 0.
 		 */
+		ret = smu_get_clk_info_from_vbios(smu);
+		if (ret)
+			return ret;
+
 		ret = smu_check_pptable(smu);
 		if (ret)
 			return ret;
Signature · 10 lines
2.21.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