]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Moved the for_each_ring loop outside of i915_gem_context_enable()
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:43:37 +0000 (17:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:02:06 +0000 (14:02 +0200)
commit90638cc1a4299acf19ed6fe253517a86d52a02ab
tree7b883df2fc852c8801de755f7b83d552f68bd97a
parent4ad2fd888bd3fa53e4bd36e5552bd784fb7ba241
drm/i915: Moved the for_each_ring loop outside of i915_gem_context_enable()

The start of day context initialisation code in i915_gem_context_enable() loops
over each ring and calls the legacy switch context or the execlist init context
code as appropriate.

This patch moves the ring looping out of that function in to the top level
caller i915_gem_init_hw(). This means the a single pass can be made over all
rings doing the PPGTT, L3 remap and context initialisation of each ring
altogether.

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_context.c