drm/amdgpu: No need to stop hw init although vce's state was not true.
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 16 Mar 2016 06:48:18 +0000 (14:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 19:22:18 +0000 (15:22 -0400)
This is not a fatal error.

v2: add comment why ignore the error here.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c

index fda89ec1d33b7f11235c896d480dff4ae4f5002e..4440973f9f530810235f66110bc852fe18b2dadb 100644 (file)
@@ -240,7 +240,8 @@ static int vce_v2_0_hw_init(void *handle)
 
        r = vce_v2_0_start(adev);
        if (r)
-               return r;
+/* this error mean vcpu not in running state, so just skip ring test, not stop driver initialize */
+               return 0;
 
        ring = &adev->vce.ring[0];
        ring->ready = true;