[PATCH] drm/amdgpu: Fix BACO entry failure in NAVI10.

Deucher, Alexander Alexander.Deucher at amd.com
Thu Dec 5 19:31:36 UTC 2019


> -----Original Message-----
> From: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
> Sent: Thursday, December 5, 2019 2:30 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Grodzovsky,
> Andrey <Andrey.Grodzovsky at amd.com>
> Subject: [PATCH] drm/amdgpu: Fix BACO entry failure in NAVI10.
> 
> BACO feature must be kept enabled to allow entry into BACO state in SMU
> during runtime suspend.
> 
> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Tested-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> index c30f9a2..6dddd78 100644
> --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> @@ -1383,7 +1383,7 @@ static int smu_suspend(void *handle)
>  	if (ret)
>  		return ret;
> 
> -	if (adev->in_gpu_reset && baco_feature_is_enabled) {
> +	if (baco_feature_is_enabled) {
>  		ret = smu_feature_set_enabled(smu,
> SMU_FEATURE_BACO_BIT, true);
>  		if (ret) {
>  			pr_warn("set BACO feature enabled failed, return
> %d\n", ret);
> --
> 2.7.4



More information about the amd-gfx mailing list