Skip to content

Commit 21e8dd9

Browse files
Timur Kristófgregkh
authored andcommitted
drm/amd/pm/ci: Use highest MCLK on CI when MCLK DPM is disabled
[ Upstream commit 894f0d3 ] When MCLK DPM is disabled for any reason, populate the MCLK table with the highest MCLK DPM level, so that the ASIC can use the highest possible memory clock to get good performance even when MCLK DPM is disabled. Fixes: 9f4b354 ("drm/amd/powerplay: add CI asics support to smumgr (v3)") Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 67e582c commit 21e8dd9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,14 @@ static int ci_populate_all_memory_levels(struct pp_hwmgr *hwmgr)
13221322
return result;
13231323
}
13241324

1325+
if (data->mclk_dpm_key_disabled && dpm_table->mclk_table.count) {
1326+
/* Populate the table with the highest MCLK level when MCLK DPM is disabled */
1327+
for (i = 0; i < dpm_table->mclk_table.count - 1; i++) {
1328+
levels[i] = levels[dpm_table->mclk_table.count - 1];
1329+
levels[i].DisplayWatermark = PPSMC_DISPLAY_WATERMARK_HIGH;
1330+
}
1331+
}
1332+
13251333
smu_data->smc_state_table.MemoryLevel[0].EnabledForActivity = 1;
13261334

13271335
dev_id = adev->pdev->device;

0 commit comments

Comments
 (0)