Skip to content

Commit fd39b5a

Browse files
committed
drm/amdgpu/smu: Handle S0ix for vangogh
Fix the flows for S0ix. There is no need to stop rlc or reintialize PMFW in S0ix. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4659 Reviewed-by: Mario Limonciello <[email protected]> Reported-by: Antheas Kapenekakis <[email protected]> Tested-by: Antheas Kapenekakis <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent c83fd2a commit fd39b5a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu)
20542054
smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))
20552055
return 0;
20562056

2057+
/* vangogh s0ix */
2058+
if ((amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(11, 5, 0) ||
2059+
amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(11, 5, 2)) &&
2060+
adev->in_s0ix)
2061+
return 0;
2062+
20572063
/*
20582064
* For gpu reset, runpm and hibernation through BACO,
20592065
* BACO feature has to be kept enabled.

drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)
22192219
uint32_t total_cu = adev->gfx.config.max_cu_per_sh *
22202220
adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines;
22212221

2222+
if (adev->in_s0ix)
2223+
return 0;
2224+
22222225
/* allow message will be sent after enable message on Vangogh*/
22232226
if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_DPM_GFXCLK_BIT) &&
22242227
(adev->pg_flags & AMD_PG_SUPPORT_GFX_PG)) {

0 commit comments

Comments
 (0)