Skip to content

Commit ec1aab7

Browse files
committed
drm/amdgpu/swsmu: default to fullscreen 3D profile for dGPUs
This uses more aggressive hueristics than the the bootup default profile. On windows the OS has a special fullscreen 3D mode where this is used. Since we don't have the equivalent on Linux default to this profile for dGPUs. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3618 Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1500 Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3131 Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 336568d)
1 parent cb07c83 commit ec1aab7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,11 @@ static int smu_sw_init(void *handle)
12641264
smu->workload_prority[PP_SMC_POWER_PROFILE_VR] = 4;
12651265
smu->workload_prority[PP_SMC_POWER_PROFILE_COMPUTE] = 5;
12661266
smu->workload_prority[PP_SMC_POWER_PROFILE_CUSTOM] = 6;
1267-
smu->workload_mask = 1 << smu->workload_prority[PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT];
1267+
1268+
if (smu->is_apu)
1269+
smu->workload_mask = 1 << smu->workload_prority[PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT];
1270+
else
1271+
smu->workload_mask = 1 << smu->workload_prority[PP_SMC_POWER_PROFILE_FULLSCREEN3D];
12681272

12691273
smu->workload_setting[0] = PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT;
12701274
smu->workload_setting[1] = PP_SMC_POWER_PROFILE_FULLSCREEN3D;

0 commit comments

Comments
 (0)