Skip to content

Commit 3ec5586

Browse files
Evan Quanalexdeucher
authored andcommitted
drm/amd/pm: correct the MGpuFanBoost support for Beige Goby
The existing way cannot handle Beige Goby well as a different PPTable data structure(PPTable_beige_goby_t instead of PPTable_t) is used there. Signed-off-by: Evan Quan <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 26291c5 commit 3ec5586

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3696,14 +3696,14 @@ static ssize_t sienna_cichlid_get_gpu_metrics(struct smu_context *smu,
36963696

36973697
static int sienna_cichlid_enable_mgpu_fan_boost(struct smu_context *smu)
36983698
{
3699-
struct smu_table_context *table_context = &smu->smu_table;
3700-
PPTable_t *smc_pptable = table_context->driver_pptable;
3699+
uint16_t *mgpu_fan_boost_limit_rpm;
37013700

3701+
GET_PPTABLE_MEMBER(MGpuFanBoostLimitRpm, &mgpu_fan_boost_limit_rpm);
37023702
/*
37033703
* Skip the MGpuFanBoost setting for those ASICs
37043704
* which do not support it
37053705
*/
3706-
if (!smc_pptable->MGpuFanBoostLimitRpm)
3706+
if (*mgpu_fan_boost_limit_rpm == 0)
37073707
return 0;
37083708

37093709
return smu_cmn_send_smc_msg_with_param(smu,

0 commit comments

Comments
 (0)