after ctx id is valid in global side, we share semaphore across process based on BO sharing mechanism. That means we map semaphore object to a bo, then sharing bo with other process, the other process can get the semaphore object from the sharing bo. Chunming Zhou (4): amdgpu: use drm_amdgpu_fence instead of amdgpu_cs_fence in semaphore structure amdgpu: add export/import semaphore apis amdgpu: add mutex for across process reason tests/amdgpu: add semaphore across process test amdgpu/amdgpu.h | 40 ++++++++++++++ amdgpu/amdgpu_cs.c | 113 ++++++++++++++++++++++++++++++++------ amdgpu/amdgpu_internal.h | 6 ++- tests/amdgpu/basic_tests.c | 131 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 273 insertions(+), 17 deletions(-) -- 1.9.1