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)
commit049aca4363d8af87cab8d53de5401602db3b9999
tree88e02e82b948aab02980deecaaf4f139142e58da
parenta9f34c70fd168b164aadffd46bb757ded52e25b9
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