[PATCH 11/12] drm/amdgpu/sriov:show error if ib test failed

Christian König ckoenig.leichtzumerken at gmail.com
Mon Oct 9 08:29:50 UTC 2017


Am 30.09.2017 um 08:03 schrieb Monk Liu:
> fix loose mode gpu reset ib test result incorrect message
>
> Change-Id: Ic4e3b51e4ff77c5e08d268a4a5ca32e7c882367c
> Signed-off-by: Monk Liu <Monk.Liu at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 122e2e1..c3f10b5 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -2902,7 +2902,8 @@ int amdgpu_sriov_gpu_reset(struct amdgpu_device *adev, struct amdgpu_job *job)
>   
>   	amdgpu_irq_gpu_reset_resume_helper(adev);
>   
> -	if (amdgpu_ib_ring_tests(adev))
> +	r = amdgpu_ib_ring_tests(adev);
> +	if (r)
>   		dev_err(adev->dev, "[GPU_RESET] ib ring test failed (%d).\n", r);
>   
>   	/* release full control of GPU after ib test */




More information about the amd-gfx mailing list