Commit 9710b84e authored by Kenneth Feng's avatar Kenneth Feng Committed by Alex Deucher

drm/amd/pm: add overdrive support on smu v14.0.2/3

add overdrive support on smu v14.0.2/3
Signed-off-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Reviewed-by: default avatarYang Wang <kevinyang.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8141f21b
...@@ -452,17 +452,26 @@ int smu_v14_0_init_smc_tables(struct smu_context *smu) ...@@ -452,17 +452,26 @@ int smu_v14_0_init_smc_tables(struct smu_context *smu)
ret = -ENOMEM; ret = -ENOMEM;
goto err3_out; goto err3_out;
} }
smu_table->user_overdrive_table =
kzalloc(tables[SMU_TABLE_OVERDRIVE].size, GFP_KERNEL);
if (!smu_table->user_overdrive_table) {
ret = -ENOMEM;
goto err4_out;
}
} }
smu_table->combo_pptable = smu_table->combo_pptable =
kzalloc(tables[SMU_TABLE_COMBO_PPTABLE].size, GFP_KERNEL); kzalloc(tables[SMU_TABLE_COMBO_PPTABLE].size, GFP_KERNEL);
if (!smu_table->combo_pptable) { if (!smu_table->combo_pptable) {
ret = -ENOMEM; ret = -ENOMEM;
goto err4_out; goto err5_out;
} }
return 0; return 0;
err5_out:
kfree(smu_table->user_overdrive_table);
err4_out: err4_out:
kfree(smu_table->boot_overdrive_table); kfree(smu_table->boot_overdrive_table);
err3_out: err3_out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment