Skip to content

Execlists v5

Thomas Daniel intel-gfx 1 version Applied

Status from this message: Queued for -next, thanks for the patch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest43 patches 76 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/43drm/i915: Reorder the actual workload submission so that args checking is done earlierdrivers/gpu/drm/i915/i915_gem_execbuffer.c+43 -432 replies
2/43drm/i915/bdw: New source and header file for LRs, LRCs and Execlistsdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_lrc.c +1 more+71 -00 replies
3/43drm/i915/bdw: Macro for LRCs and module option for Execlistsdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/i915_params.c +2 more+25 -01 reply
4/43drm/i915/bdw: Initialization for Logical Ring Contextsdrivers/gpu/drm/i915/i915_gem_context.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+43 -61 reply
5/43drm/i915/bdw: Introduce one context backing object per enginedrivers/gpu/drm/i915/i915_drv.h+6 -02 replies
6/43drm/i915/bdw: A bit more advanced LR context alloc/freedrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_context.c drivers/gpu/drm/i915/intel_lrc.c+60 -30 replies
7/43drm/i915/bdw: Allocate ringbuffers for Logical Ring Contextsdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.c +1 more+46 -30 replies
8/43drm/i915/bdw: Add a context and an engine pointers to the ringbufferdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.c drivers/gpu/drm/i915/intel_ringbuffer.h+7 -011 replies
9/43drm/i915/bdw: Populate LR contexts (somewhat)drivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_lrc.c+156 -40 replies
10/43drm/i915/bdw: Deferred creation of user-created LRCsdrivers/gpu/drm/i915/i915_gem_context.c drivers/gpu/drm/i915/i915_gem_execbuffer.c+11 -41 reply
11/43drm/i915/bdw: Render moot context reset and switch with Execlistsdrivers/gpu/drm/i915/i915_gem_context.c+9 -010 replies
12/43drm/i915/bdw: Don't write PDP in the legacy way when using LRCsdrivers/gpu/drm/i915/i915_gem_gtt.c+5 -01 reply
12/43drm/i915/bdw: Don't write PDP in the legacy way when using LRCsdrivers/gpu/drm/i915/i915_gem_gtt.c+5 -03 replies
13/43drm/i915: Abstract the legacy workload submission mechanism awaydrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/i915_gem_execbuffer.c+45 -144 replies
14/43drm/i915/bdw: Skeleton for the new logical rings submission pathdrivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+168 -00 replies
15/43drm/i915/bdw: Generic logical ring init and cleanupdrivers/gpu/drm/i915/i915_gem_context.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.c +1 more+70 -111 reply
16/43drm/i915/bdw: GEN-specific logical ring initdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.c drivers/gpu/drm/i915/intel_ringbuffer.h+78 -131 reply
17/43drm/i915/bdw: GEN-specific logical ring set/get seqnodrivers/gpu/drm/i915/intel_lrc.c+20 -01 reply
18/43drm/i915/bdw: New logical ring submission mechanismdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h drivers/gpu/drm/i915/intel_ringbuffer.c +1 more+218 -101 reply
19/43drm/i915/bdw: GEN-specific logical ring emit requestdrivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.h+35 -00 replies
20/43drm/i915/bdw: GEN-specific logical ring emit flushdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.c drivers/gpu/drm/i915/intel_ringbuffer.h+92 -70 replies
21/43drm/i915/bdw: Emission of requests with logical ringsdrivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+80 -233 replies
22/43drm/i915/bdw: Ring idle and stop with logical ringsdrivers/gpu/drm/i915/intel_lrc.c+22 -20 replies
23/43drm/i915/bdw: Interrupts with logical ringsdrivers/gpu/drm/i915/i915_irq.c drivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_lrc.c +1 more+78 -32 replies
24/43drm/i915/bdw: GEN-specific logical ring emit batchbuffer startdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.h+30 -02 replies
25/43drm/i915/bdw: Workload submission mechanism for Execlistsdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_execbuffer.c drivers/gpu/drm/i915/intel_lrc.c+137 -31 reply
26/43drm/i915/bdw: Always use MMIO flips with Execlistsdrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_lrc.c+4 -11 reply
27/43drm/i915/bdw: Render state init for Execlistsdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_context.c drivers/gpu/drm/i915/i915_gem_render_state.c +4 more+139 -259 replies
28/43drm/i915/bdw: Implement context switching (somewhat)drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+115 -21 reply
29/43drm/i915/bdw: Write the tail pointer, LRC styledrivers/gpu/drm/i915/intel_lrc.c+19 -02 replies
30/43drm/i915/bdw: Two-stage execlist submit processdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h drivers/gpu/drm/i915/intel_ringbuffer.h+71 -24 replies
31/43drm/i915/bdw: Handle context switch eventsdrivers/gpu/drm/i915/i915_irq.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h +1 more+151 -174 replies
32/43drm/i915/bdw: Avoid non-lite-restore preemptionsdrivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+26 -41 reply
33/43drm/i915/bdw: Help out the ctx switch interrupt handlerdrivers/gpu/drm/i915/intel_lrc.c+22 -41 reply
34/43drm/i915/bdw: Make sure gpu reset still works with Execlistsdrivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_ringbuffer.c+13 -04 replies
35/43drm/i915/bdw: Make sure error capture keeps working with Execlistsdrivers/gpu/drm/i915/i915_gpu_error.c+18 -44 replies
36/43drm/i915/bdw: Disable semaphores for Execlistsdrivers/gpu/drm/i915/i915_drv.c+4 -00 replies
37/43drm/i915/bdw: Display execlists info in debugfsdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+80 -61 reply
37/43drm/i915/bdw: Display execlists info in debugfsdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+87 -61 reply
38/43drm/i915/bdw: Display context backing obj & ringbuffer info in debugfsdrivers/gpu/drm/i915/i915_debugfs.c+23 -20 replies
39/43drm/i915/bdw: Print context state in debugfsdrivers/gpu/drm/i915/i915_debugfs.c+52 -01 reply
39/43drm/i915/bdw: Print context state in debugfsdrivers/gpu/drm/i915/i915_debugfs.c+52 -01 reply
40/43drm/i915/bdw: Document Logical Rings, LR contexts and ExeclistsDocumentation/DocBook/drm.tmpl drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_lrc.h+249 -11 reply
41/43drm/i915/bdw: Enable Logical Ring Contexts (hence, Execlists)drivers/gpu/drm/i915/i915_drv.h+1 -12 replies
42/43drm/i915/bdw: Pin the context backing objects to GGTT on-demanddrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem.c +2 more+73 -271 reply
43/43drm/i915/bdw: Pin the ringbuffer backing object to GGTT on-demanddrivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/intel_lrc.c drivers/gpu/drm/i915/intel_ringbuffer.c +1 more+111 -600 replies

Reviews trailers per patch

8 of 46 patches have a Reviewed-by or Acked-by.

PatchDamien LespiauThomas Daniel
1/43
2/43
3/43
4/43
5/43R-b
6/43
7/43
8/43A-b
9/43
10/43
11/43
12/43R-b
12/43R-b
13/43
14/43
15/43
16/43
17/43
18/43
19/43
20/43
21/43
22/43
23/43
24/43
25/43
26/43
27/43
28/43
29/43
30/43
31/43
32/43
33/43
34/43
35/43
36/43
37/43R-b
37/43R-b
38/43
39/43R-b
39/43R-b
40/43
41/43
42/43
43/43

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/43] Execlists v5

From: Thomas Daniel <[email protected]>

For a description of this patchset, please check the previous cover letters: [1], [2], [3] and [4].

I have taken ownership of this patchset from Oscar, and this version represents his last work on the execlists patchset. The narrative below is from him.

I have been given some grace period to fix the remaining issues in Execlists before I move to a different project, and this is the result. There are very little differences between this v5 and the v4 I sent out last week, so I was unsure whether to drop a new patchbomb or simply reply to the patches that have changed, but I decided for the former to make the review easier.

The changes are:

- New prep-work patch to prevent a potential problem with the legacy ringbuffer submission extraction that was done earlier.
- Do the remaining intel_runtime_put while purging the execlists queue during reset.
- Check arguments before doing stuff in intel_execlists_submission. Also, get rel_constants parsing right.
- Do gen8_emit_flush = gen6_ring_flush + gen6_bsd_ring_flush.
- New patches for pinning context and ringbuffer backing objects on-demand (before I was pinning on interrupt time, which was a no-no). These fix the reamining eviction issues I was seeing.

The previous comment about the WAs still applies. I reproduce it here for completeness:

"One other caveat I have noticed is that many WAs in gen8_init_clock_gating (those that affect registers that now exist per-context) can get lost in the render default context. The reason is, in Execlists, a context is saved as soon as head = tail (with MI_SET_CONTEXT, however, the context wouldn't be saved until you tried to restore a different context). As we are sending the golden state batchbuffer to the render ring as soon as the rings are initialized, we are effectively saving the default context before gen8_init_clock_gating has an opportunity to set the WAs. I haven't noticed any ill-effect from this (yet) but it would be a good idea to move the WAs somewhere else (ring init looks like a good place). I believe there is already work in progress to create a new WA architecture, so this can be tackled there."

The previous IGT test [4] still applies.

There are three pending issues:

- The test gem_close_race warns about "scheduling while atomic" when the shrinker gets called. Without Execlists, the shrinker does not get called at all (which kind of makes sense) but the tests timeouts before finishing.
- The test gem_concurrent_blit fails in the gtt-* subtests: some pixels (14, to be exact) do not get copied correctly from one bo to another. Funnily enough, the tests pass if I do a i915 module reload first (./tests/drv_module_reload). Yesterday I dumped all the registers in the chip before and after a module reload (attached), but I havenŽt found any meaningful difference yet.
- When I try to run a whole IGT suite using Piglit, sometimes I hit the BUG_ON(!i915_gem_obj_is_pinned(ctx_obj0)) in execlists_submit_context(). I havenŽt managed to reproduce the problem at will, but there is obviously something wrong with the last two Execlists patches.

Keep the r-b tags coming, please!!

-- Oscar

[1]
http://lists.freedesktop.org/archives/intel-gfx/2014-March/042563.html
[2]
http://lists.freedesktop.org/archives/intel-gfx/2014-May/044847.html
[3]
http://lists.freedesktop.org/archives/intel-gfx/2014-June/047138.html
[4]
http://lists.freedesktop.org/archives/intel-gfx/2014-July/048944.html
[5]
http://lists.freedesktop.org/archives/intel-gfx/2014-May/044846.html

Ben Widawsky (2):
drm/i915/bdw: Implement context switching (somewhat) drm/i915/bdw: Print context state in debugfs

Michel Thierry (1):
drm/i915/bdw: Two-stage execlist submit process

Oscar Mateo (39):
drm/i915: Reorder the actual workload submission so that args checking
is done earlier
drm/i915/bdw: New source and header file for LRs, LRCs and Execlists drm/i915/bdw: Macro for LRCs and module option for Execlists drm/i915/bdw: Initialization for Logical Ring Contexts drm/i915/bdw: Introduce one context backing object per engine drm/i915/bdw: A bit more advanced LR context alloc/free drm/i915/bdw: Allocate ringbuffers for Logical Ring Contexts drm/i915/bdw: Add a context and an engine pointers to the ringbuffer drm/i915/bdw: Populate LR contexts (somewhat) drm/i915/bdw: Deferred creation of user-created LRCs drm/i915/bdw: Render moot context reset and switch with Execlists drm/i915/bdw: Don't write PDP in the legacy way when using LRCs drm/i915: Abstract the legacy workload submission mechanism away drm/i915/bdw: Skeleton for the new logical rings submission path drm/i915/bdw: Generic logical ring init and cleanup drm/i915/bdw: GEN-specific logical ring init
drm/i915/bdw: GEN-specific logical ring set/get seqno drm/i915/bdw: New logical ring submission mechanism drm/i915/bdw: GEN-specific logical ring emit request drm/i915/bdw: GEN-specific logical ring emit flush drm/i915/bdw: Emission of requests with logical rings drm/i915/bdw: Ring idle and stop with logical rings drm/i915/bdw: Interrupts with logical rings
drm/i915/bdw: GEN-specific logical ring emit batchbuffer start drm/i915/bdw: Workload submission mechanism for Execlists drm/i915/bdw: Always use MMIO flips with Execlists drm/i915/bdw: Render state init for Execlists drm/i915/bdw: Write the tail pointer, LRC style drm/i915/bdw: Avoid non-lite-restore preemptions drm/i915/bdw: Help out the ctx switch interrupt handler drm/i915/bdw: Make sure gpu reset still works with Execlists drm/i915/bdw: Make sure error capture keeps working with Execlists drm/i915/bdw: Disable semaphores for Execlists drm/i915/bdw: Display execlists info in debugfs drm/i915/bdw: Display context backing obj & ringbuffer info in debugfs drm/i915/bdw: Document Logical Rings, LR contexts and Execlists drm/i915/bdw: Enable Logical Ring Contexts (hence, Execlists) drm/i915/bdw: Pin the context backing objects to GGTT on-demand drm/i915/bdw: Pin the ringbuffer backing object to GGTT on-demand

Thomas Daniel (1):
drm/i915/bdw: Handle context switch events

 Documentation/DocBook/drm.tmpl               |    5 +
 drivers/gpu/drm/i915/Makefile                |    1 +
 drivers/gpu/drm/i915/i915_debugfs.c          |  157 ++-
 drivers/gpu/drm/i915/i915_drv.c              |    4 +
 drivers/gpu/drm/i915/i915_drv.h              |   47 +-
 drivers/gpu/drm/i915/i915_gem.c              |  132 +-
 drivers/gpu/drm/i915/i915_gem_context.c      |   56 +-
 drivers/gpu/drm/i915/i915_gem_execbuffer.c   |  118 +-
 drivers/gpu/drm/i915/i915_gem_gtt.c          |    5 +
 drivers/gpu/drm/i915/i915_gem_render_state.c |   40 +-
 drivers/gpu/drm/i915/i915_gem_render_state.h |   47 +
 drivers/gpu/drm/i915/i915_gpu_error.c        |   22 +-
 drivers/gpu/drm/i915/i915_irq.c              |   44 +-
 drivers/gpu/drm/i915/i915_params.c           |    6 +
 drivers/gpu/drm/i915/i915_reg.h              |    5 +
 drivers/gpu/drm/i915/intel_display.c         |    2 +
 drivers/gpu/drm/i915/intel_lrc.c             | 1802 ++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_lrc.h             |  115 ++
 drivers/gpu/drm/i915/intel_renderstate.h     |    8 +-
 drivers/gpu/drm/i915/intel_ringbuffer.c      |  166 ++-
 drivers/gpu/drm/i915/intel_ringbuffer.h      |   41 +-
 21 files changed, 2622 insertions(+), 201 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/i915_gem_render_state.h
 create mode 100644 drivers/gpu/drm/i915/intel_lrc.c
 create mode 100644 drivers/gpu/drm/i915/intel_lrc.h
Signature · 5 lines
1.9.0
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx