Skip to content

Commit 11510e6

Browse files
committed
drm/amdgpu/smu13: update powersave optimizations
Only apply when compute profile is selected. This is the only supported configuration. Selecting other profiles can lead to performane degradations. Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit d477e39) Cc: [email protected] # 6.12.x
1 parent fddb4fd commit 11510e6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,11 +2643,12 @@ static int smu_v13_0_0_set_power_profile_mode(struct smu_context *smu,
26432643
&backend_workload_mask);
26442644

26452645
/* Add optimizations for SMU13.0.0/10. Reuse the power saving profile */
2646-
if ((amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 0) &&
2647-
((smu->adev->pm.fw_version == 0x004e6601) ||
2648-
(smu->adev->pm.fw_version >= 0x004e7300))) ||
2649-
(amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 10) &&
2650-
smu->adev->pm.fw_version >= 0x00504500)) {
2646+
if ((workload_mask & (1 << PP_SMC_POWER_PROFILE_COMPUTE)) &&
2647+
((amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 0) &&
2648+
((smu->adev->pm.fw_version == 0x004e6601) ||
2649+
(smu->adev->pm.fw_version >= 0x004e7300))) ||
2650+
(amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 10) &&
2651+
smu->adev->pm.fw_version >= 0x00504500))) {
26512652
workload_type = smu_cmn_to_asic_specific_index(smu,
26522653
CMN2ASIC_MAPPING_WORKLOAD,
26532654
PP_SMC_POWER_PROFILE_POWERSAVING);

0 commit comments

Comments
 (0)