drm/amdgpu: Fix uvd ib test timeout when use pre-allocated BO
authorxinhui pan <xinhui.pan@amd.com>
Thu, 16 Sep 2021 01:35:47 +0000 (09:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Sep 2021 19:17:29 +0000 (15:17 -0400)
commit0a2267809fc96505aa91703640a121e84bcbdd81
tree3d4d7afc75f6e4601ca32ec2637cacdc5eefbeb5
parentb2fe31cf648156331991333c1d87346321cab056
drm/amdgpu: Fix uvd ib test timeout when use pre-allocated BO

Now we use same BO for create/destroy msg. So destroy will wait for the
fence returned from create to be signaled. The default timeout value in
destroy is 10ms which is too short.

Lets wait both fences with the specific timeout.

Signed-off-by: xinhui pan <xinhui.pan@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/amdgpu_uvd.c