search for: sync_fenc

Displaying 14 results from an estimated 14 matches for "sync_fenc".

Did you mean: sync_fence
2014 Sep 26
0
[RFC PATCH 1/7] android: Support creating sync fence from drm fences
Modify sync_fence_create to accept an array of 'struct fence' objects. This will allow drm drivers to create sync_fence objects and pass sync fd's between user space with minimal modifications, without ever creating sync_timeline or sync_pt objects, and without implementing the sync_timeline_ops interfa...
2014 Sep 26
14
[RFC] Explicit synchronization for Nouveau
...e difficult. I have written a prototype that demonstrates (1) by adding explicit sync fd support to Nouveau. It's not a lot of code, because I only use a relatively small subset of the android sync driver functionality. Thanks to Maarten's rewrite, all I need to do is to allow creating a sync_fence from a drm fence in order to pass it to user space. I don't need to use sync_pt or sync_timeline, or fill in sync_timeline_ops. I can see why the upstream has been reluctant to de-stage the android sync driver in its current form, since (even though it now builds on struct fence) it still du...
2014 Oct 02
2
[RFC] Explicit synchronization for Nouveau
...er implicit fences by always attaching the fences as > shared when explicit syncing is used. This would work correctly with > eviction, and wouldn't cause any unneeded syncing. :) Yes, that will probably work! So, just to reiterate that I understood you and Daniel correctly: - de-stage sync_fence and it's user space API (the tedious part) - add dma-buf ioctls for extracting and attaching explicit fences - Nouveau specific: allow flagging gem buffers for explicit sync - do not check pre-fences from explicitly synced buffers at submit - continue to attach a shared fence after submit...
2014 Oct 02
0
[RFC] Explicit synchronization for Nouveau
...ing the fences as > > shared when explicit syncing is used. This would work correctly with > > eviction, and wouldn't cause any unneeded syncing. :) > > Yes, that will probably work! So, just to reiterate that I understood you and > Daniel correctly: > > - de-stage sync_fence and it's user space API (the tedious part) > - add dma-buf ioctls for extracting and attaching explicit fences > - Nouveau specific: allow flagging gem buffers for explicit sync > - do not check pre-fences from explicitly synced buffers at submit > - continue to attach a share...
2014 Oct 03
2
[RFC] Explicit synchronization for Nouveau
...d when explicit syncing is used. This would work correctly with > > > eviction, and wouldn't cause any unneeded syncing. :) > > > > Yes, that will probably work! So, just to reiterate that I understood > you and > > Daniel correctly: > > > > - de-stage sync_fence and it's user space API (the tedious part) > > - add dma-buf ioctls for extracting and attaching explicit fences > > - Nouveau specific: allow flagging gem buffers for explicit sync > > - do not check pre-fences from explicitly synced buffers at submit > > - continu...
2014 Oct 01
3
[RFC] Explicit synchronization for Nouveau
...errably manpages. This all sounds very similar to what we'd like to do! Maybe we can move forward with these parts, and continue to attach fences at submit until we have a satisfactory solution for the pinning problem? I'd like to understand what are the concrete steps to de-stage struct sync_fence, since that's the first thing that needs to be done. For example, what do you mean by "de-cluttering the internal interfaces"? Just that we'd move the sync_fence parts from drivers/staging/android/sync.c to, say, drivers/dma-buf/sync-fence.c ? Would we still leave a copy of th...
2014 Sep 29
3
[RFC] Explicit synchronization for Nouveau
...prototype that demonstrates (1) by adding explicit sync fd > > support to Nouveau. It's not a lot of code, because I only use a relatively > > small subset of the android sync driver functionality. Thanks to Maarten's > > rewrite, all I need to do is to allow creating a sync_fence from a drm fence in > > order to pass it to user space. I don't need to use sync_pt or sync_timeline, > > or fill in sync_timeline_ops. > > > > I can see why the upstream has been reluctant to de-stage the android sync > > driver in its current form, since (even...
2014 Oct 01
0
[RFC] Explicit synchronization for Nouveau
...pinning problem? Yeah, that's our plan for i915 too. First add explicit fences, then figure out whether we need to be better at neutering the implicit fences, in case and only where it really gets in the way. > I'd like to understand what are the concrete steps to de-stage struct > sync_fence, since that's the first thing that needs to be done. For example, > what do you mean by "de-cluttering the internal interfaces"? Just that we'd > move the sync_fence parts from drivers/staging/android/sync.c to, say, > drivers/dma-buf/sync-fence.c ? Would we still lea...
2014 Sep 29
0
[RFC] Explicit synchronization for Nouveau
...have written a prototype that demonstrates (1) by adding explicit sync fd > support to Nouveau. It's not a lot of code, because I only use a relatively > small subset of the android sync driver functionality. Thanks to Maarten's > rewrite, all I need to do is to allow creating a sync_fence from a drm fence in > order to pass it to user space. I don't need to use sync_pt or sync_timeline, > or fill in sync_timeline_ops. > > I can see why the upstream has been reluctant to de-stage the android sync > driver in its current form, since (even though it now builds on...
2014 Sep 29
0
[RFC] Explicit synchronization for Nouveau
...e that demonstrates (1) by adding explicit sync fd >>> support to Nouveau. It's not a lot of code, because I only use a relatively >>> small subset of the android sync driver functionality. Thanks to Maarten's >>> rewrite, all I need to do is to allow creating a sync_fence from a drm fence in >>> order to pass it to user space. I don't need to use sync_pt or sync_timeline, >>> or fill in sync_timeline_ops. >>> >>> I can see why the upstream has been reluctant to de-stage the android sync >>> driver in its current for...
2014 Oct 06
0
[RFC] Explicit synchronization for Nouveau
On Thu, Oct 02, 2014 at 10:44:05PM +0200, Daniel Vetter wrote: > On Thu, Oct 02, 2014 at 05:59:51PM +0300, Lauri Peltonen wrote: > > Yes, that will probably work! So, just to reiterate that I understood you and > > Daniel correctly: > > > > - de-stage sync_fence and it's user space API (the tedious part) > > - add dma-buf ioctls for extracting and attaching explicit fences > > - Nouveau specific: allow flagging gem buffers for explicit sync > > - do not check pre-fences from explicitly synced buffers at submit > > - contin...
2014 Sep 26
0
[RFC PATCH 7/7] drm/prime: Support explicit fence on export
...IME export function which must be used mandatorily by GEM @@ -401,6 +403,24 @@ int drm_gem_prime_handle_to_fd(struct drm_device *dev, struct drm_gem_object *obj; int ret = 0; struct dma_buf *dmabuf; + struct fence *fence = NULL; + + if (flags & DRM_SYNC_FD) { +#ifdef CONFIG_SYNC + struct sync_fence *sf = sync_fence_fdget(*prime_fd); + if (!sf) + return -ENOENT; + if (sf->num_fences != 1) { + sync_fence_put(sf); + return -EINVAL; + } + fence = fence_get(sf->cbs[0].sync_pt); + sync_fence_put(sf); + flags &= ~DRM_SYNC_FD; +#else + return -ENODEV; +#endif + } mutex_loc...
2014 Sep 29
1
[RFC PATCH 7/7] drm/prime: Support explicit fence on export
...orily by GEM > @@ -401,6 +403,24 @@ int drm_gem_prime_handle_to_fd(struct drm_device *dev, > struct drm_gem_object *obj; > int ret = 0; > struct dma_buf *dmabuf; > + struct fence *fence = NULL; > + > + if (flags & DRM_SYNC_FD) { > +#ifdef CONFIG_SYNC > + struct sync_fence *sf = sync_fence_fdget(*prime_fd); > + if (!sf) > + return -ENOENT; > + if (sf->num_fences != 1) { > + sync_fence_put(sf); > + return -EINVAL; > + } > + fence = fence_get(sf->cbs[0].sync_pt); > + sync_fence_put(sf); > + flags &= ~DRM_SYNC_FD; > +...
2017 Mar 13
1
[ANNOUNCE] intel-gpu-tools 1.18
...s lib/igt_kmod: kmod already supplies a cooked error code lib/sw_sync: Provide compatiblity stubs for old headers tests/perf: Remove duplicate NSEC_PER_SEC define lib/sw_sync: Bring sync_wait() API into line lib/sw_sync: Indicate that sync_merge() operates and create a sync_fence lib/sw_sync: Rename sync_fence_create() lib/sw_sync: Use timeline/fence instead of generic fd lib/selftest: Query module parameter for error code. lib: Kick all fbcon stubs/intel_bufmgr: Suppress GCC compilation warnings igt/kms_addfb_basic: Try changing tiling...