]> git.baikalelectronics.ru Git - kernel.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)
commit8aaedfd99b6fbd5ea3ec212397635172935d91ca
tree7b883df2fc852c8801de755f7b83d552f68bd97a
parent9c1f069631e24858b159140e7c09ad895fa229c1
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