[PATCH] drm/amd/pm: Remove BACO check for aldebaran

Zhang, Hawking Hawking.Zhang at amd.com
Fri Jun 4 07:59:39 UTC 2021


[Public]

Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>

Regards,
Hawking
From: Lazar, Lijo <Lijo.Lazar at amd.com>
Sent: Friday, June 4, 2021 14:59
To: amd-gfx at lists.freedesktop.org
Cc: Zhang, Hawking <Hawking.Zhang at amd.com>; Feng, Kenneth <Kenneth.Feng at amd.com>; Wang, Kevin(Yang) <Kevin1.Wang at amd.com>
Subject: [PATCH] drm/amd/pm: Remove BACO check for aldebaran


[Public]

BACO/MACO is not applicable for aldebaran. Remove the redundant check.

Signed-off-by: Lijo Lazar <lijo.lazar at amd.com<mailto:lijo.lazar at amd.com>>
---
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
index 7a1abb3d6a7a..6ee9c4186f02 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
@@ -355,13 +355,6 @@ static int aldebaran_check_powerplay_table(struct smu_context *smu)
               struct smu_table_context *table_context = &smu->smu_table;
               struct smu_13_0_powerplay_table *powerplay_table =
                               table_context->power_play_table;
-              struct smu_baco_context *smu_baco = &smu->smu_baco;
-
-              mutex_lock(&smu_baco->mutex);
-              if (powerplay_table->platform_caps & SMU_13_0_PP_PLATFORM_CAP_BACO ||
-                  powerplay_table->platform_caps & SMU_13_0_PP_PLATFORM_CAP_MACO)
-                              smu_baco->platform_support = true;
-              mutex_unlock(&smu_baco->mutex);

                table_context->thermal_controller_type =
                               powerplay_table->thermal_controller_type;
--
2.17.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210604/12474134/attachment.htm>


More information about the amd-gfx mailing list