]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move load time gem_load_init earlier
authorImre Deak <imre.deak@intel.com>
Wed, 16 Mar 2016 12:54:03 +0000 (14:54 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Mar 2016 13:22:05 +0000 (15:22 +0200)
commitcf33af7f74a20acbeeff96fe5412a99ad6efb600
tree56fd67cc9658c77af201efdcae9b5556450b4232
parent5fb1c0a03f4f83925a643d75e58cf93acd6c7413
drm/i915: Move load time gem_load_init earlier

The only steps requiring device access is the fence and swizzling
initialization, so split these out keeping them in their current place
and move the rest of init steps earlier.

v2-v3:
- unchanged
v4:
- move call to i915_gem_detect_bit_6_swizzle() to
  i915_gem_load_init_fences() and preserve the original order of
  the detection of HW fence capailities wrt. swizzling (Chris)

CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1458132843-21860-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c