drm/amdgpu: fix and cleanup UVD IB generation
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Wed, 7 Feb 2018 19:48:21 +0000 (20:48 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:54 +0000 (14:19 -0500)
commit4ab91cfbb0f4e9676f948b6830f70eb78ac7c273
tree012b68c9a38c8c5e1fbbb15766efbfa55227dd67
parentfe649fb90727bb6717a7a45537922e68058edba1
drm/amdgpu: fix and cleanup UVD IB generation

We didn't synced the BO after validating it. Also sart to use
amdgpu_bo_create_reserved to simplify things.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c