OSDN Git Service

drm/amd/pm: fix wrong smu socclk value
authorYang Wang <KevinYang.Wang@amd.com>
Thu, 27 Apr 2023 02:36:51 +0000 (10:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:55:22 +0000 (09:55 -0400)
fix typo about smu socclk value.

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 4b808c0..a712b2b 100644 (file)
@@ -387,7 +387,7 @@ static int smu_v13_0_6_get_dpm_ultimate_freq(struct smu_context *smu,
                        break;
                case SMU_SOCCLK:
                        if (pptable->Init)
-                               clock_limit = pptable->UclkFrequencyTable[0];
+                               clock_limit = pptable->SocclkFrequencyTable[0];
                        break;
                case SMU_FCLK:
                        if (pptable->Init)