Skip to content

Commit 429385d

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/smu: Handle S0ix for vangogh
commit 7c5609b upstream. 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]> (cherry picked from commit fd39b5a) Cc: <[email protected]> # c81f5ce: drm/amdgpu: Drop PMFW RLC notifier from amdgpu_device_suspend() Cc: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 852542c commit 429385d

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
@@ -2012,6 +2012,12 @@ static int smu_disable_dpms(struct smu_context *smu)
20122012
smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))
20132013
return 0;
20142014

2015+
/* vangogh s0ix */
2016+
if ((amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(11, 5, 0) ||
2017+
amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(11, 5, 2)) &&
2018+
adev->in_s0ix)
2019+
return 0;
2020+
20152021
/*
20162022
* For gpu reset, runpm and hibernation through BACO,
20172023
* 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
@@ -2217,6 +2217,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)
22172217
uint32_t total_cu = adev->gfx.config.max_cu_per_sh *
22182218
adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines;
22192219

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

0 commit comments

Comments
 (0)