Home
last modified time | relevance | path

Searched hist:"9 c19fb10" (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/include/drm/
H A Ddrm_syncobj.h9c19fb10 Mon Aug 28 14:39:25 GMT 2017 Jason Ekstrand <[email protected]> drm/syncobj: Add a callback mechanism for replace_fence (v3)

It is useful in certain circumstances to know when the fence is replaced
in a syncobj. Specifically, it may be useful to know when the fence
goes from NULL to something valid. This does make syncobj_replace_fence
a little more expensive because it has to take a lock but, in the common
case where there is no callback list, it spends a very short amount of
time inside the lock.

v2:
- Don't lock in drm_syncobj_fence_get. We only really need to lock
around fence_replace to make the callback work.
v3:
- Fix the cb_list comment to make kbuild happy

Signed-off-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
/linux-6.15/drivers/gpu/drm/
H A Ddrm_syncobj.c9c19fb10 Mon Aug 28 14:39:25 GMT 2017 Jason Ekstrand <[email protected]> drm/syncobj: Add a callback mechanism for replace_fence (v3)

It is useful in certain circumstances to know when the fence is replaced
in a syncobj. Specifically, it may be useful to know when the fence
goes from NULL to something valid. This does make syncobj_replace_fence
a little more expensive because it has to take a lock but, in the common
case where there is no callback list, it spends a very short amount of
time inside the lock.

v2:
- Don't lock in drm_syncobj_fence_get. We only really need to lock
around fence_replace to make the callback work.
v3:
- Fix the cb_list comment to make kbuild happy

Signed-off-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>