[PATCH 2/5] drm/amdgpu: fix test for shadow page tables

Michel Dänzer michel at daenzer.net
Wed Dec 20 14:33:39 UTC 2017


On 2017-12-20 02:21 PM, Christian König wrote:
> They don't work 100% correctly at the moment.
> 
> Signed-off-by: Christian König <christian.koenig at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index 4feee9927bce..5c4c3e0d527b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -42,7 +42,11 @@ static bool amdgpu_need_backup(struct amdgpu_device *adev)
>  	if (adev->flags & AMD_IS_APU)
>  		return false;
>  
> -	return amdgpu_gpu_recovery;
> +	if (amdgpu_gpu_recovery == 0 ||
> +	    (amdgpu_gpu_recovery == -1  && !amdgpu_sriov_vf(adev)))
> +		return false;
> +
> +	return true;
>  }
>  
>  static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo)
> 

Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the amd-gfx mailing list