drm/i915: Early alloc request in execbuff
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:43:25 +0000 (17:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:01:57 +0000 (14:01 +0200)
commit0c8dac889539ab26382ba1636ec1159cae73f2b3
tree5615c5e1973c6203fb75c9a9eb46adbf288cbbde
parentbf7dc5b70952eb58c4fd57c9b964488650303a32
drm/i915: Early alloc request in execbuff

Start of explicit request management in the execbuffer code path. This patch
adds a call to allocate a request structure before all the actual hardware work
is done. Thus guaranteeing that all that work is tagged by a known request. At
present, nothing further is done with the request, the rest comes later in the
series.

The only noticable change is that failure to get a request (e.g. due to lack of
memory) will be caught earlier in the sequence. It now occurs right at the start
before any un-undoable work has been done.

v2: Simplified the error handling path.

For: VIZ-5115
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c