]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Add explicit request management to i915_gem_init_hw()
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:43:39 +0000 (17:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:02:08 +0000 (14:02 +0200)
commitdc4be6071a24f0d2da6af8ce16c19f276ac4d7a2
treea3a4dfe745eb7e9c7b881292d74a9d4d8c50d757
parenta3fbe05a611811ad8413130f63aaa79428b00377
drm/i915: Add explicit request management to i915_gem_init_hw()

Now that a single per ring loop is being done for all the different
intialisation steps in i915_gem_init_hw(), it is possible to add proper request
management as well. The last remaining issue is that the context enable call
eventually ends up within *_render_state_init() and this does its own private
_i915_add_request() call.

This patch adds explicit request creation and submission to the top level loop
and removes the add_request() from deep within the sub-functions.

v2: Updated for removal of batch_obj from add_request call in previous patch.

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_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_render_state.c
drivers/gpu/drm/i915/intel_lrc.c