Skip to content

RFC Replace seqno values with request structures

[email protected] intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest21 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21Bug: missing i915_seqno_passed() call?drivers/gpu/drm/i915/i915_gem.c+1 -12 replies
2/21drm/i915: Remove redundant parameter to i915_gem_object_wait_rendering__tail()drivers/gpu/drm/i915/i915_gem.c+3 -42 replies
3/21drm/i915: Ensure OLS & PLR are always in syncdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.c+48 -232 replies
4/21drm/i915: Add reference count to request structuredrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_lrc.c +1 more+36 -40 replies
5/21drm/i915: Add helper functions to aid seqno -> request transitiondrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_ringbuffer.h+19 -02 replies
6/21drm/i915: Replace last_[rwf]_seqno with last_[rwf]_reqdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c +6 more+58 -482 replies
7/21drm/i915: Ensure requests stick around during waitsdrivers/gpu/drm/i915/i915_gem.c+16 -90 replies
8/21drm/i915: Remove 'outstanding_lazy_seqno'drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/i915_gem_execbuffer.c drivers/gpu/drm/i915/intel_display.c +3 more+41 -574 replies
9/21drm/i915: Make 'i915_gem_check_olr' actually check by request not seqnodrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_display.c+27 -173 replies
10/21drm/i915: Convert 'last_flip_req' to be a request not a seqnodrivers/gpu/drm/i915/intel_overlay.c+8 -81 reply
11/21drm/i915: Convert i915_wait_seqno to i915_wait_requestdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_lrc.c +2 more+27 -500 replies
12/21drm/i915: Convert 'i915_add_request' to take a request not a seqnodrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_overlay.c+8 -80 replies
13/21drm/i915: Convert mmio_flip::seqno to struct requestdrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+8 -61 reply
14/21drm/i915: Convert 'flip_queued_seqno' into 'flip_queued_request'drivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+9 -61 reply
15/21drm/i915: Convert most 'i915_seqno_passed' calls into 'i915_gem_request_completed'drivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c +3 more+27 -183 replies
16/21drm/i915: Convert __wait_seqno() to __wait_request()drivers/gpu/drm/i915/i915_gem.c+24 -330 replies
17/21drm/i915: Convert trace functions from seqno to requestdrivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/i915_gem_execbuffer.c drivers/gpu/drm/i915/i915_trace.h+33 -260 replies
18/21drm/i915: Convert 'trace_irq' to use requests rather than seqnosdrivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/i915_trace.h drivers/gpu/drm/i915/intel_ringbuffer.c +1 more+14 -140 replies
19/21drm/i915: Convert semaphores to handle requests not seqnosdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/i915_gpu_error.c +2 more+24 -191 reply
20/21drm/i915: Convert 'ring_idle()' to use requests not seqnosdrivers/gpu/drm/i915/i915_irq.c+6 -63 replies
21/21drm/i915: Remove 'obj->ring'drivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c +3 more+46 -273 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 00/21] Replace seqno values with request structures

From: John Harrison <[email protected]>

Work in progress for replacing seqno usage with requst structures.

There is a general feeling that it is better to move away from using a simple integer 'seqno' value to track batch buffer completion. Instead, the request structure should be used. That provides for much more flexibility going forwards. Especially which things like a GPU scheduler (which can re-order batch buffers and hence seqnos after submission to the hardware), Android sync points and other such features which potentially make seqno usage more and more complex.

The current set of patches do most of the seqno to request structure conversion. There are still a couple of direct seqno comparisons in the semaphore code. The final conversion of a seqno test into a 'completed' flag inside the request structure is still do to as well. Along with whatever changes are required to maintain such a flag.

The patches are being posted now to make sure that the various people involved agree that it is heading in the right direction.

[Patches against drm-intel-nightly tree fetched 11/09/2014]

John Harrison (21):
Bug: missing i915_seqno_passed() call?
drm/i915: Remove redundant parameter to i915_gem_object_wait_rendering__tail() drm/i915: Ensure OLS & PLR are always in sync
drm/i915: Add reference count to request structure
drm/i915: Add helper functions to aid seqno -> request transition drm/i915: Replace last_[rwf]_seqno with last_[rwf]_req
drm/i915: Ensure requests stick around during waits
drm/i915: Remove 'outstanding_lazy_seqno'
drm/i915: Make 'i915_gem_check_olr' actually check by request not seqno drm/i915: Convert 'last_flip_req' to be a request not a seqno drm/i915: Convert i915_wait_seqno to i915_wait_request
drm/i915: Convert 'i915_add_request' to take a request not a seqno drm/i915: Convert mmio_flip::seqno to struct request
drm/i915: Convert 'flip_queued_seqno' into 'flip_queued_request' drm/i915: Convert most 'i915_seqno_passed' calls into 'i915_gem_request_completed' drm/i915: Convert __wait_seqno() to __wait_request()
drm/i915: Convert trace functions from seqno to request
drm/i915: Convert 'trace_irq' to use requests rather than seqnos drm/i915: Convert semaphores to handle requests not seqnos
drm/i915: Convert 'ring_idle()' to use requests not seqnos
drm/i915: Remove 'obj->ring'

 drivers/gpu/drm/i915/i915_debugfs.c        |   23 +--
 drivers/gpu/drm/i915/i915_drv.h            |   64 +++++--
 drivers/gpu/drm/i915/i915_gem.c            |  265 ++++++++++++++--------------
 drivers/gpu/drm/i915/i915_gem_context.c    |   12 +-
 drivers/gpu/drm/i915/i915_gem_execbuffer.c |    8 +-
 drivers/gpu/drm/i915/i915_gem_gtt.h        |    4 +-
 drivers/gpu/drm/i915/i915_gem_tiling.c     |    2 +-
 drivers/gpu/drm/i915/i915_gpu_error.c      |   19 +-
 drivers/gpu/drm/i915/i915_irq.c            |   12 +-
 drivers/gpu/drm/i915/i915_trace.h          |   47 ++---
 drivers/gpu/drm/i915/intel_display.c       |   47 ++---
 drivers/gpu/drm/i915/intel_drv.h           |    4 +-
 drivers/gpu/drm/i915/intel_lrc.c           |   49 ++---
 drivers/gpu/drm/i915/intel_overlay.c       |   17 +-
 drivers/gpu/drm/i915/intel_ringbuffer.c    |   88 +++++----
 drivers/gpu/drm/i915/intel_ringbuffer.h    |   24 ++-
 16 files changed, 392 insertions(+), 293 deletions(-)
Signature · 1 line
1.7.9.5