Skip to content

Commit 1538709

Browse files
timhuang-amdalexdeucher
authored andcommitted
drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11
PMFW will handle the features disablement properly for gpu reset case, driver involvement may cause some unexpected issues. Cc: [email protected] # 6.1 Signed-off-by: Tim Huang <[email protected]> Reviewed-by: Yifan Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 154711a commit 1538709

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,20 @@ static int smu_disable_dpms(struct smu_context *smu)
14991499
}
15001500
}
15011501

1502+
/*
1503+
* For SMU 13.0.4/11, PMFW will handle the features disablement properly
1504+
* for gpu reset case. Driver involvement is unnecessary.
1505+
*/
1506+
if (amdgpu_in_reset(adev)) {
1507+
switch (adev->ip_versions[MP1_HWIP][0]) {
1508+
case IP_VERSION(13, 0, 4):
1509+
case IP_VERSION(13, 0, 11):
1510+
return 0;
1511+
default:
1512+
break;
1513+
}
1514+
}
1515+
15021516
/*
15031517
* For gpu reset, runpm and hibernation through BACO,
15041518
* BACO feature has to be kept enabled.

0 commit comments

Comments
 (0)