]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix using shared fence for exported BOs v2
authorChristian König <christian.koenig@amd.com>
Wed, 19 Sep 2018 14:54:35 +0000 (16:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Dec 2018 22:53:44 +0000 (17:53 -0500)
commit9c9f96c835113957d3c8de427a24e894f227413b
tree88e02e82b948aab02980deecaaf4f139142e58da
parent48a7e2be802e60df986d6b3bba33d91866928b8a
drm/amdgpu: fix using shared fence for exported BOs v2

It is perfectly possible that the BO list is created before the BO is
exported. While at it clean up setting shared to one instead of true.

v2: add comment and simplify logic

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Junwei Zhang <Jerry.Zhang@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_cs.c