Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: No need to stop hw init although vce's state was not true.

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>

authored by

Rex Zhu and committed by
Alex Deucher
976accc1 cb48a13e

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c
··· 240 240 241 241 r = vce_v2_0_start(adev); 242 242 if (r) 243 - return r; 243 + /* this error mean vcpu not in running state, so just skip ring test, not stop driver initialize */ 244 + return 0; 244 245 245 246 ring = &adev->vce.ring[0]; 246 247 ring->ready = true;