WSL2-Linux-Kernel/drivers/dma-buf
David Stevens fd921693fe drm/syncobj: use newly allocated stub fences
Allocate a new private stub fence in drm_syncobj_assign_null_handle,
instead of using a static stub fence.

When userspace creates a fence with DRM_SYNCOBJ_CREATE_SIGNALED or when
userspace signals a fence via DRM_IOCTL_SYNCOBJ_SIGNAL, the timestamp
obtained when the fence is exported and queried with SYNC_IOC_FILE_INFO
should match when the fence's status was changed from the perspective of
userspace, which is during the respective ioctl.

When a static stub fence started being used in by these ioctls, this
behavior changed. Instead, the timestamp returned by SYNC_IOC_FILE_INFO
became the first time anything used the static stub fence, which has no
meaning to userspace.

Signed-off-by: David Stevens <stevensd@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210408095428.3983055-1-stevensd@google.com
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
2021-04-08 12:21:13 +02:00
..
heaps drm-misc-next for 5.13: 2021-03-16 17:08:46 +10:00
Kconfig dma-buf: Add debug option 2021-01-18 14:26:51 +01:00
Makefile
dma-buf.c Linux 5.11-rc5 2021-01-25 14:35:44 +10:00
dma-fence-array.c
dma-fence-chain.c
dma-fence.c drm/syncobj: use newly allocated stub fences 2021-04-08 12:21:13 +02:00
dma-heap.c dma-buf: dma-heap: Provide accessor to get heap name 2021-02-25 18:28:24 +05:30
dma-resv.c dma-buf/dma-resv: Respect num_fences when initializing the shared fence list. 2020-11-25 10:48:28 +01:00
selftest.c
selftest.h
selftests.h
seqno-fence.c
st-dma-fence-chain.c
st-dma-fence.c dma-buf: Avoid comma separated statements 2021-02-09 17:14:11 +01:00
sw_sync.c
sync_debug.c
sync_debug.h
sync_file.c dma-buf: use krealloc_array() 2020-12-15 12:13:37 -08:00
sync_trace.h
udmabuf.c