Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/pm/ci: Use highest MCLK on CI when MCLK DPM is disabled

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: 9f4b35411cfe ("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>

authored by

Timur Kristóf and committed by
Alex Deucher
894f0d34 860fd1dd

+8
+8
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
··· 1322 1322 return result; 1323 1323 } 1324 1324 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 + 1325 1333 smu_data->smc_state_table.MemoryLevel[0].EnabledForActivity = 1; 1326 1334 1327 1335 dev_id = adev->pdev->device;