]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc42d44e8424b3dcdc3d6a92c25eda9a0eb5c6bd
treeffde7eaed1086511fc2a8bfc9f2270dc556399d1
parent8b92484b9f853922076e76a1d96ab6f1a81be98b
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