[PATCH 2/3] drm/amdgpu: use runpm flag rather than fbcon for kfd runtime suspend

Felix Kuehling felix.kuehling at amd.com
Thu Feb 4 15:17:28 UTC 2021


Am 2021-02-04 um 9:43 a.m. schrieb Alex Deucher:
> the flag used by kfd is not actually related to fbcon, it just happens
> to align.  Use the runpm flag instead so that we can decouple it from
> the fbcon flag.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Acked-by: Felix Kuehling <Felix.Kuehling at amd.com>


> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 151c649e4d11..053e134b1245 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -3722,7 +3722,7 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
>  
>  	r = amdgpu_device_ip_suspend_phase1(adev);
>  
> -	amdgpu_amdkfd_suspend(adev, !fbcon);
> +	amdgpu_amdkfd_suspend(adev, adev->in_runpm);
>  
>  	/* evict vram memory */
>  	amdgpu_bo_evict_vram(adev);


More information about the amd-gfx mailing list