Skip to content

Commit c6ac406

Browse files
Jane Jianalexdeucher
authored andcommitted
drm/amdgpu/smu: skip pptable init under sriov
sriov does not need to init pptable from amdgpu driver we finish it from PF Signed-off-by: Jane Jian <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.1.x
1 parent 6c1a6d0 commit c6ac406

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ static int smu_v13_0_0_setup_pptable(struct smu_context *smu)
407407
struct amdgpu_device *adev = smu->adev;
408408
int ret = 0;
409409

410+
if (amdgpu_sriov_vf(smu->adev))
411+
return 0;
412+
410413
ret = smu_v13_0_0_get_pptable_from_pmfw(smu,
411414
&smu_table->power_play_table,
412415
&smu_table->power_play_table_size);
@@ -1257,6 +1260,9 @@ static int smu_v13_0_0_get_thermal_temperature_range(struct smu_context *smu,
12571260
table_context->power_play_table;
12581261
PPTable_t *pptable = smu->smu_table.driver_pptable;
12591262

1263+
if (amdgpu_sriov_vf(smu->adev))
1264+
return 0;
1265+
12601266
if (!range)
12611267
return -EINVAL;
12621268

0 commit comments

Comments
 (0)