* [PATCH v2] drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11
@ 2023-01-21 2:49 Tim Huang
2023-01-21 7:20 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Tim Huang @ 2023-01-21 2:49 UTC (permalink / raw)
To: amd-gfx
Cc: stable, Alexander.Deucher, Yifan1.zhang, Xiaojian.Du, li.ma,
mario.limonciello, Tim Huang
PMFW will handle that properly for gpu reset case. Driver involvement
may cause some unexpected issues.
Signed-off-by: Tim Huang <tim.huang@amd.com>
---
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index ec52830dde24..8bae3fe869cd 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -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.
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v2] drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11
2023-01-21 2:49 [PATCH v2] drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11 Tim Huang
@ 2023-01-21 7:20 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2023-01-21 7:20 UTC (permalink / raw)
To: Tim Huang
Cc: amd-gfx, stable, Alexander.Deucher, Yifan1.zhang, Xiaojian.Du,
li.ma, mario.limonciello
On Sat, Jan 21, 2023 at 10:49:55AM +0800, Tim Huang wrote:
> PMFW will handle that properly for gpu reset case. Driver involvement
> may cause some unexpected issues.
>
> Signed-off-by: Tim Huang <tim.huang@amd.com>
> ---
> 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-21 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-21 2:49 [PATCH v2] drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11 Tim Huang
2023-01-21 7:20 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox