Re: [PATCH 8/8] amdgpu: use sync file for shared semaphores (v3)

2017-04-12 Thread Alex Deucher
On Wed, Apr 12, 2017 at 12:57 AM, Dave Airlie wrote: > From: Dave Airlie > > This creates a new command submission chunk for amdgpu > to add wait and signal sync objects around the submission. > > Sync objects are managed via the drm syncobj ioctls. > > The

Re: [PATCH 8/8] amdgpu: use sync file for shared semaphores (v3)

2017-04-12 Thread Christian König
Am 12.04.2017 um 12:18 schrieb Chris Wilson: On Wed, Apr 12, 2017 at 11:55:24AM +0200, Christian König wrote: Am 12.04.2017 um 06:57 schrieb Dave Airlie: +static int amdgpu_sem_lookup_and_remove(struct amdgpu_cs_parser *p, + uint32_t handle) +{ + int

Re: [PATCH 8/8] amdgpu: use sync file for shared semaphores (v3)

2017-04-12 Thread Chris Wilson
On Wed, Apr 12, 2017 at 11:55:24AM +0200, Christian König wrote: > Am 12.04.2017 um 06:57 schrieb Dave Airlie: > >+static int amdgpu_sem_lookup_and_remove(struct amdgpu_cs_parser *p, > >+ uint32_t handle) > >+{ > >+int r; > >+struct dma_fence *old_fence; >

Re: [PATCH 8/8] amdgpu: use sync file for shared semaphores (v3)

2017-04-12 Thread Christian König
Am 12.04.2017 um 06:57 schrieb Dave Airlie: From: Dave Airlie This creates a new command submission chunk for amdgpu to add wait and signal sync objects around the submission. Sync objects are managed via the drm syncobj ioctls. The command submission interface is

[PATCH 8/8] amdgpu: use sync file for shared semaphores (v3)

2017-04-11 Thread Dave Airlie
From: Dave Airlie This creates a new command submission chunk for amdgpu to add wait and signal sync objects around the submission. Sync objects are managed via the drm syncobj ioctls. The command submission interface is enhanced with two new chunks, one for semaphore