drm/amdgpu: move PMFW rlc notifier to where it's required
Subsystems (3)
Alex Deucher
maintainerPATCH 1/2 drm/amdgpu: move PMFW rlc notifier to where it's required
For S3 on vangogh, PMFW needs to be notified before the driver powers down RLC. Move this notification to the rlc stop function so it will always get called bfore stopping the RLC. The call in amdgpu_device_suspend() seems to be superfluous so remove that as well.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ---- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 +++++++++++- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 10 ---------- 3 files changed, 11 insertions(+), 15 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -4
@@ -5283,10 +5283,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool notify_clients)if (amdgpu_sriov_vf (adev))amdgpu_virt_release_full_gpu (adev, false); - r =amdgpu_dpm_notify_rlc_state (adev, false); -if (r) -return r; -return 0 ; }
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +11 -1
@@ -5470,8 +5470,18 @@ static int gfx_v10_0_init_csb(struct amdgpu_device *adev)static void gfx_v10_0_rlc_stop (struct amdgpu_device *adev) { -u32 tmp =RREG32_SOC15 (GC ,0 , mmRLC_CNTL); +u32 tmp; +int r; + +/* Notify SMU RLC is going to be off, stop RLC and SMU interaction. +* otherwise SMU will hang while interacting with RLC if RLC is halted +* this is a WA for Vangogh asic which fix the SMU hang issue. +*/ + r =amdgpu_dpm_notify_rlc_state (adev, false); +if (r) +dev_info (adev->dev,"failed to notify PMFW of RLC powerdown\n" ); + tmp =RREG32_SOC15 (GC ,0 , mmRLC_CNTL); tmp =REG_SET_FIELD (tmp,RLC_CNTL ,RLC_ENABLE_F32 ,0 );WREG32_SOC15 (GC ,0 , mmRLC_CNTL, tmp); }
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0 -10
@@ -2072,16 +2072,6 @@ static int smu_disable_dpms(struct smu_context *smu) } } -/* Notify SMU RLC is going to be off, stop RLC and SMU interaction. -* otherwise SMU will hang while interacting with RLC if RLC is halted -* this is a WA for Vangogh asic which fix the SMU hang issue. -*/ - ret =smu_notify_rlc_state (smu, false); -if (ret) { -dev_err (adev->dev,"Fail to notify rlc status!\n" ); -return ret; - } -if (amdgpu_ip_version (adev,GC_HWIP ,0 ) >=IP_VERSION (9 ,4 ,2 ) && !((adev->flags &AMD_IS_APU ) && adev->gfx.imu.funcs) && !amdgpu_sriov_vf (adev) && adev->gfx.rlc.funcs->stop)
Signature · 1 line
2.51.0
Alex Deucher
maintainerPATCH 2/2 drm/amdgpu/smu: Handle S0ix for vangogh
Fix the flows for S0ix. There is no need to stop
rlc or reintialize PMFW in S0ix.
--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++ 2 files changed, 9 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6 -0
@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu) smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))return 0 ; +/* vangogh s0ix */ +if ((amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,0 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,2 )) && + adev->in_s0ix) +return 0 ; +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled.
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3 -0
@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)uint32_t total_cu = adev->gfx.config.max_cu_per_sh * adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines; +if (adev->in_s0ix) +return 0 ; +/* allow message will be sent after enable message on Vangogh*/ if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_GFXCLK_BIT ) && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) {
Signature · 1 line
2.51.0
Re: [PATCH 2/2] drm/amdgpu/smu: Handle S0ix for vangogh
Quoted 5 lines · Alex Deucher
Fix the flows for S0ix. There is no need to stop
rlc or reintialize PMFW in S0ix.Signed-off-by Alex Deucher <[email protected]>
Quoted 35 lines
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++ 2 files changed, 9 insertions(+)drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6
-0@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu) smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))return 0 ; +/* vangogh s0ix */ +if ((amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,0 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,2 )) && + adev->in_s0ix) +return 0 ; +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled. drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3
-0@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)uint32_t total_cu = adev->gfx.config.max_cu_per_sh * adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines; +if (adev->in_s0ix) +return 0 ; +/* allow message will be sent after enable message on Vangogh*/ if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_GFXCLK_BIT ) && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) {
Re: [PATCH 2/2] drm/amdgpu/smu: Handle S0ix for vangogh
In reply to Alex DeucherQuoted 10 lines · Alex Deucher
Fix the flows for S0ix. There is no need to stop
rlc or reintialize PMFW in S0ix.Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++ 2 files changed, 9 insertions(+)
Sleep failed on the Deck the same way as Mario's attempt
Quoted 35 lines
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6
-0@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu) smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))return 0 ; +/* vangogh s0ix */ +if ((amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,0 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,2 )) && + adev->in_s0ix) +return 0 ; +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled. drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3
-1@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)uint32_t total_cu = adev->gfx.config.max_cu_per_sh * adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines; +if (adev->in_s0ix) +return 0 ; +/* allow message will be sent after enable message on Vangogh*/ if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_GFXCLK_BIT ) && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) { --2.51.0
Re: [PATCH 2/2] drm/amdgpu/smu: Handle S0ix for vangogh
Quoted 5 lines · Antheas Kapenekakis
Quoted 4 lines · Alex Deucher
Fix the flows for S0ix. There is no need to stop
rlc or reintialize PMFW in S0ix.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++ 2 files changed, 9 insertions(+)Sleep failed on the Deck the same way as Mario's attempt
Can you please test patch 2/2 from this series and patch 1/5 from this one:
https://lore.kernel.org/amd-gfx/[email protected]/
I expect that everything GPU wise works with those 2 combined, can you confirm?
Quoted 38 lines
Quoted 36 lines
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6
-0@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu) smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))return 0 ; +/* vangogh s0ix */ +if ((amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,0 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,2 )) && + adev->in_s0ix) +return 0 ; +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled. drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3
-1@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)uint32_t total_cu = adev->gfx.config.max_cu_per_sh * adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines; +if (adev->in_s0ix) +return 0 ; +/* allow message will be sent after enable message on Vangogh*/ if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_GFXCLK_BIT ) && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) { --2.51.0
Re: [PATCH 2/2] drm/amdgpu/smu: Handle S0ix for vangogh
Quoted 16 lines · Mario Limonciello
Quoted 12 lines · Antheas Kapenekakis
Quoted 10 lines · Alex Deucher
Fix the flows for S0ix. There is no need to stop
rlc or reintialize PMFW in S0ix.Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++ 2 files changed, 9 insertions(+)
Quoted 8 lines
Quoted 1 line
Sleep failed on the Deck the same way as Mario's attempt
Can you please test patch 2/2 from this series and patch 1/5 from this one:
https://lore.kernel.org/amd-gfx/[email protected]/
I expect that everything GPU wise works with those 2 combined, can you confirm?
I will update you tomorrow. Currently traveling.
Antheas
Quoted 40 lines
Quoted 38 lines
Quoted 36 lines
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6
-0@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu) smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))return 0 ; +/* vangogh s0ix */ +if ((amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,0 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,2 )) && + adev->in_s0ix) +return 0 ; +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled. drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3
-1@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)uint32_t total_cu = adev->gfx.config.max_cu_per_sh * adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines; +if (adev->in_s0ix) +return 0 ; +/* allow message will be sent after enable message on Vangogh*/ if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_GFXCLK_BIT ) && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) { --2.51.0
Re: [PATCH 2/2] drm/amdgpu/smu: Handle S0ix for vangogh
In reply to Alex DeucherJust for this patch:
Tested on a Steam Deck OLED and Xbox Ally.
Quoted 46 lines · Alex Deucher
Fix the flows for S0ix. There is no need to stop
rlc or reintialize PMFW in S0ix.Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++ 2 files changed, 9 insertions(+)drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6
-0@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu) smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))return 0 ; +/* vangogh s0ix */ +if ((amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,0 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,2 )) && + adev->in_s0ix) +return 0 ; +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled. drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3
-1@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)uint32_t total_cu = adev->gfx.config.max_cu_per_sh * adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines; +if (adev->in_s0ix) +return 0 ; +/* allow message will be sent after enable message on Vangogh*/ if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_GFXCLK_BIT ) && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) { --2.51.0
Re: [PATCH 2/2] drm/amdgpu/smu: Handle S0ix for vangogh
Quoted 6 lines · Antheas Kapenekakis
Just for this patch:
Reported-by Antheas Kapenekakis <[email protected]>Tested-by Antheas Kapenekakis <[email protected]>Tested on a Steam Deck OLED and Xbox Ally.
Thanks. I'll get this applied to amd-staging-drm-next.
Quoted 49 lines · Alex Deucher
Quoted 46 lines
Fix the flows for S0ix. There is no need to stop
rlc or reintialize PMFW in S0ix.Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++ 2 files changed, 9 insertions(+)drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6
-0@@ -2054,6 +2054,12 @@ static int smu_disable_dpms(struct smu_context *smu) smu->is_apu && (amdgpu_in_reset(adev) || adev->in_s0ix))return 0 ; +/* vangogh s0ix */ +if ((amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,0 ) || +amdgpu_ip_version (adev,MP1_HWIP ,0 ) ==IP_VERSION (11 ,5 ,2 )) && + adev->in_s0ix) +return 0 ; +/* * For gpu reset, runpm and hibernation through BACO, * BACO feature has to be kept enabled. drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3
-1@@ -2219,6 +2219,9 @@ static int vangogh_post_smu_init(struct smu_context *smu)uint32_t total_cu = adev->gfx.config.max_cu_per_sh * adev->gfx.config.max_sh_per_se * adev->gfx.config.max_shader_engines; +if (adev->in_s0ix) +return 0 ; +/* allow message will be sent after enable message on Vangogh*/ if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_GFXCLK_BIT ) && (adev->pg_flags &AMD_PG_SUPPORT_GFX_PG )) { --2.51.0
Quoted 7 lines · Alex Deucher
For S3 on vangogh, PMFW needs to be notified before the driver powers down RLC. Move this notification to the rlc stop function so it will always get called bfore stopping the RLC. The call in
amdgpu_device_suspend()seems to be superfluous so remove that as well.Signed-off-by Alex Deucher <[email protected]>
One nit below.
Quoted 30 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ---- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 +++++++++++- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 10 ---------- 3 files changed, 11 insertions(+), 15 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-4@@ -5283,10 +5283,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool notify_clients)if (amdgpu_sriov_vf (adev))amdgpu_virt_release_full_gpu (adev, false); - r =amdgpu_dpm_notify_rlc_state (adev, false); -if (r) -return r; -return 0 ; }drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-1@@ -5470,8 +5470,18 @@ static int gfx_v10_0_init_csb(struct amdgpu_device *adev)static void gfx_v10_0_rlc_stop (struct amdgpu_device *adev) { -u32 tmp =RREG32_SOC15 (GC ,0 , mmRLC_CNTL);
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static int gfx_v10_0_init_csb(struct amdgpu_device *adev) · line 5482
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +10
-0+u32 tmp; +int r; + +/* Notify SMU RLC is going to be off, stop RLC and SMU interaction. +* otherwise SMU will hang while interacting with RLC if RLC is halted +* this is a WA for Vangogh asic which fix the SMU hang issue. +*/ + r =amdgpu_dpm_notify_rlc_state (adev, false); +if (r) +dev_info (adev->dev,"failed to notify PMFW of RLC powerdown\n" );
This should probably be dev_err().
Quoted 26 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1
-0+ tmp =RREG32_SOC15 (GC ,0 , mmRLC_CNTL); tmp =REG_SET_FIELD (tmp,RLC_CNTL ,RLC_ENABLE_F32 ,0 );WREG32_SOC15 (GC ,0 , mmRLC_CNTL, tmp); }drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0
-10@@ -2072,16 +2072,6 @@ static int smu_disable_dpms(struct smu_context *smu) } } -/* Notify SMU RLC is going to be off, stop RLC and SMU interaction. -* otherwise SMU will hang while interacting with RLC if RLC is halted -* this is a WA for Vangogh asic which fix the SMU hang issue. -*/ - ret =smu_notify_rlc_state (smu, false); -if (ret) { -dev_err (adev->dev,"Fail to notify rlc status!\n" ); -return ret; - } -if (amdgpu_ip_version (adev,GC_HWIP ,0 ) >=IP_VERSION (9 ,4 ,2 ) && !((adev->flags &AMD_IS_APU ) && adev->gfx.imu.funcs) && !amdgpu_sriov_vf (adev) && adev->gfx.rlc.funcs->stop)
Quoted 9 lines · Mario Limonciello
Quoted 6 lines · Alex Deucher
For S3 on vangogh, PMFW needs to be notified before the driver powers down RLC. Move this notification to the rlc stop function so it will always get called bfore stopping the RLC. The call in
amdgpu_device_suspend()seems to be superfluous so remove that as well.
Quoted 6 lines
Quoted 1 line
Signed-off-by Alex Deucher <[email protected]>Reviewed-by Mario Limonciello <[email protected]>One nit below.
Antheas had feedback that this version didn't work on another thread.
Also I noticed that amdgpu_dpm_notify_rlc_state() no longer was needed after this change.
As my unwind series is on top of this I'm going to send an updated unwind series that just takes the relevant chunk that we know works for now.
Quoted 71 lines
Quoted 34 lines
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 4 ---- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 +++++++++++- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 10 ----------3 files changed, 11 insertions(+), 15 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-4@@ -5283,10 +5283,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool notify_clients) if (amdgpu_sriov_vf(adev)) amdgpu_virt_release_full_gpu(adev, false); - r = amdgpu_dpm_notify_rlc_state(adev, false); - if (r) - return r; - return 0; }drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +5
-1@@ -5470,8 +5470,18 @@ static int gfx_v10_0_init_csb(struct amdgpu_device *adev) static void gfx_v10_0_rlc_stop(struct amdgpu_device *adev) { - u32 tmp = RREG32_SOC15(GC, 0, mmRLC_CNTL); + u32 tmp; + int r; + + /* Notify SMU RLC is going to be off, stop RLC and SMU interaction. +* otherwise SMU will hang while interacting with RLC if RLC is Quoted 6 lines
halted
+ * this is a WA for Vangogh asic which fix the SMU hang issue. + */
+ r =amdgpu_dpm_notify_rlc_state(adev, false);
+ if (r)
+dev_info(adev->dev, "failed to notify PMFW of RLC powerdown\n");This should probably be
dev_err().Quoted 26 lines
+ tmp =
RREG32_SOC15(GC, 0, mmRLC_CNTL);
tmp =REG_SET_FIELD(tmp, RLC_CNTL, RLC_ENABLE_F32, 0);WREG32_SOC15(GC, 0, mmRLC_CNTL, tmp);
}drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0
-2@@ -2072,16 +2072,6 @@ static int smu_disable_dpms(struct smu_context *smu) } } - /* Notify SMU RLC is going to be off, stop RLC and SMU interaction. -* otherwise SMU will hang while interacting with RLC if RLC is halted
- * this is a WA for Vangogh asic which fix the SMU hang issue. - */
- ret =smu_notify_rlc_state(smu, false);
- if (ret) {
-dev_err(adev->dev, "Fail to notify rlc status!\n"); - return ret;
- }
-
if (amdgpu_ip_version(adev, GC_HWIP, 0)>=IP_VERSION(9, 4, 2)&& !((adev->flags &AMD_IS_APU) &&adev->gfx.imu.funcs) && !amdgpu_sriov_vf(adev) &&adev->gfx.rlc.funcs->stop)