drm/amdgpu: always recreate bo_list
authorChristian König <christian.koenig@amd.com>
Mon, 30 Jul 2018 11:46:04 +0000 (13:46 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jul 2018 21:58:18 +0000 (16:58 -0500)
commit81c6dabcc990c341793368db985ee8aca5713b16
treeffde7eaed1086511fc2a8bfc9f2270dc556399d1
parent4a8c21a1e9b3c35b21c5a4a4c16a009a193389bd
drm/amdgpu: always recreate bo_list

The bo_list handle is allocated by OP_CREATE, so in OP_UPDATE here we just
re-create the bo_list object and replace the handle. This way we don't
need locking to protect the bo_list because it's always re-created when
changed.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c