Enabling GEN8 full PPGTT + fixes
Status from this message: Queued for -next, thanks for the patch.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | drm/i915: Split up do_switchdrivers/ | +50 | 0 replies | |
| 2/16 | drm/i915: Extract l3 remapping out of ctx switchdrivers/ | +20 | 0 replies | |
| 3/16 | drm/i915/ppgtt: Load address space after mi_set_contextdrivers/ | +27 | 0 replies | |
| 4/16 | drm/i915: Fix another another use-after-free in do_switchdrivers/ | +10 | 3 replies | |
| 5/16 | drm/i915/ctx: Return earlier on failuredrivers/ | +9 | 1 reply | |
| 6/16 | drm/i915/error: Check the potential ctx obj's vmdrivers/ | +3 | 1 reply | |
| 7/16 | drm/i915/error: vma error capture prettyifydrivers/ | +32 | 0 replies | |
| 8/16 | drm/i915/error: Do a better job of disambiguating VMAsdrivers/ drivers/ drivers/ | +28 | 4 replies | |
| 9/16 | drm/i915/error: Capture vmas instead of BOsdrivers/ drivers/ | +30 | 0 replies | |
| 10/16 | drm/i915: Add some extra guards in evict_vmdrivers/ | +6 | 0 replies | |
| 11/16 | drm/i915: Make an uninterruptible evictdrivers/ drivers/ drivers/ +1 more | +28 | 0 replies | |
| 12/16 | drm/i915: Reorder ctx unref on ppgtt cleanupdrivers/ | +2 | 1 reply | |
| 13/16 | drm/i915: More correct (slower) ppgtt cleanupdrivers/ | +48 | 1 reply | |
| 14/16 | drm/i915: Defer PPGTT cleanupdrivers/ drivers/ drivers/ +2 more | +150 | 0 replies | |
| 15/16 | drm/i915/bdw: Enable full PPGTTdrivers/ | +1 | 0 replies | |
| 16/16 | drm/i915: Get the error state over the wire (HACKish)drivers/ drivers/ drivers/ +1 more | +29 | 1 reply |
Reviews trailers per patch
1 of 16 patches has a Reviewed-by or Acked-by.
| Patch | Chris Wilson |
|---|---|
| 1/16 | |
| 2/16 | |
| 3/16 | |
| 4/16 | R-b |
| 5/16 | |
| 6/16 | |
| 7/16 | |
| 8/16 | |
| 9/16 | |
| 10/16 | |
| 11/16 | |
| 12/16 | |
| 13/16 | |
| 14/16 | |
| 15/16 | |
| 16/16 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/16] Enabling GEN8 full PPGTT + fixes
Here be all the patches to make full PPGTT relatively stable on Broadwell. Most of the work was actually to the generic PPGTT code, and not BDW specific. There are basically 3 fixes:
1. Make the error state not horrible, but more work still needed.
2. Fix up another tricky from != from case in do_switch
3. Generally more graceful handling in ppgtt_release
1. Various forms of this subseries have shown up on the list from both myself, and Chris (and I feel like Mika, also). For whatever reason, none have been merged. I don't necessarily mind missing information, but without these patches we can OOPs and GP fault in the error state, which is not acceptable.
2. The meat of the debugging came here. Essentially this problem has already been seen, and solved. The issue is, there is another spot in do_switch that can invoke a switch to the default context. We probably want to get slightly better handling of this, but for now this solves my problems.
3. There are 2 categories addressed in this bucket. Reset, and signals. The patches themselves explain the situation. I take a two step approach with this where first I make things correct (and slow as heck), and then I do the more optimal and trickier solution. Both of these are in line to be replaced by Daniel, but I needed something sooner.
Here is the test case that caught all of the above issues:
while [ 1 ] ; do
(glxgears) & pid[0]=$!
(glxgears) & pid[1]=$!
(glxgears) & pid[2]=$!
sleep 3
kill ${pid[*]}done
Ben Widawsky (16):
drm/i915: Split up do_switch
drm/i915: Extract l3 remapping out of ctx switch drm/i915/ppgtt: Load address space after mi_set_context drm/i915: Fix another another use-after-free in do_switch drm/i915/ctx: Return earlier on failure drm/i915/error: Check the potential ctx obj's vm drm/i915/error: vma error capture prettyify drm/i915/error: Do a better job of disambiguating VMAs drm/i915/error: Capture vmas instead of BOs drm/i915: Add some extra guards in evict_vm drm/i915: Make an uninterruptible evict drm/i915: Reorder ctx unref on ppgtt cleanup drm/i915: More correct (slower) ppgtt cleanup drm/i915: Defer PPGTT cleanup
drm/i915/bdw: Enable full PPGTT
drm/i915: Get the error state over the wire (HACKish)
drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 18 ++- drivers/gpu/drm/i915/i915_gem.c | 110 +++++++++++++ drivers/gpu/drm/i915/i915_gem_context.c | 238 ++++++++++++++++++++++------- drivers/gpu/drm/i915/i915_gem_evict.c | 39 +++-- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 2 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 3 +- drivers/gpu/drm/i915/i915_gem_gtt.h | 4 + drivers/gpu/drm/i915/i915_gpu_error.c | 157 ++++++++++++------- drivers/gpu/drm/i915/i915_sysfs.c | 2 +- 10 files changed, 449 insertions(+), 126 deletions(-)
Signature · 1 line
2.0.1