[RFC 0/9] Convert requests to use struct fence

John.C.Harrison
2015-07-17T14:31:27Z

From: John Harrison <John.C.Harrison@Intel.com>

There is a construct in the linux kernel called 'struct fence' that is intended
to keep track of work that is executed on hardware. I.e. it solves the basic
problem that the drivers 'struct drm_i915_gem_request' is trying to address. The
request structure does quite a lot more than simply track the execution progress
so is very definitely still required. However, the basic completion status side
could be updated to use the ready made fence implementation and gain all the
advantages that provides.

Using the struct fence object also has the advantage that the fence can be used
outside of the i915 driver (by other drivers or by userland applications). That
is the basis of the dma-buff synchronisation API and allows asynchronous
tracking of work completion. In this case, it allows applications to be
signalled directly when a batch buffer completes without having to make an IOCTL
call into the driver.

This is work that was planned since the conversion of the driver from being
seqno value based to being request structure based. This patch series does that
work.

[Patches against drm-intel-nightly tree fetched 15/07/2015]

John Harrison (7):
drm/i915: Convert requests to use struct fence
drm/i915: Removed now redudant parameter to i915_gem_request_completed()
drm/i915: Add per context timelines to fence object
drm/i915: Delay the freeing of requests until retire time
drm/i915: Interrupt driven fences
drm/i915: Updated request structure tracing
drm/i915: Add sync framework support to execbuff IOCTL

Maarten Lankhorst (1):
android: add sync_fence_create_dma

Tvrtko Ursulin (1):
staging/android/sync: Support sync points created from dma-fences

drivers/gpu/drm/i915/i915_debugfs.c | 2 +-
drivers/gpu/drm/i915/i915_drv.h | 73 +++---
drivers/gpu/drm/i915/i915_gem.c | 369 +++++++++++++++++++++++++++--
drivers/gpu/drm/i915/i915_gem_context.c | 15 +-
drivers/gpu/drm/i915/i915_gem_execbuffer.c | 90 ++++++-
drivers/gpu/drm/i915/i915_irq.c | 2 +-
drivers/gpu/drm/i915/i915_trace.h | 7 +-
drivers/gpu/drm/i915/intel_display.c | 4 +-
drivers/gpu/drm/i915/intel_lrc.c | 12 +
drivers/gpu/drm/i915/intel_pm.c | 6 +-
drivers/gpu/drm/i915/intel_ringbuffer.c | 4 +
drivers/gpu/drm/i915/intel_ringbuffer.h | 7 +
drivers/staging/android/sync.c | 13 +-
drivers/staging/android/sync.h | 12 +-
drivers/staging/android/sync_debug.c | 42 ++--
include/uapi/drm/i915_drm.h | 16 +-
16 files changed, 583 insertions(+), 91 deletions(-)

--
1.9.1