drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11
PATCH v2 1/1 drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11
PMFW will handle that properly for gpu reset case. Driver involvement may cause some unexpected issues.
Signed-off-by Tim Huang <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +14 -0
@@ -1497,6 +1497,20 @@ static int smu_disable_dpms(struct smu_context *smu) } } +/* +* For SMU 13.0.4/11, PMFW will handle the features disablement properly +* for gpu reset case. Driver involvement is unnecessary. +*/ +if (amdgpu_in_reset (adev)) { +switch (adev->ip_versions[MP1_HWIP ][0 ]) { +case IP_VERSION (13 ,0 ,4 ): +case IP_VERSION (13 ,0 ,11 ): +return 0 ; +default : +break ; + } + } +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled.
Signature · 1 line
2.25.1
Greg KH
maintainerQuoted 8 lines · Tim Huang
PMFW will handle that properly for gpu reset case. Driver involvement may cause some unexpected issues.
Signed-off-by Tim Huang <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>