drm/i915: Move GT init to intel_gt.c
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 10 Sep 2019 14:38:20 +0000 (15:38 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 11 Sep 2019 07:11:51 +0000 (08:11 +0100)
commit61fa60ff6e6a0e16e9bcc15f632ce5437afa6494
tree4bbccad3e70f8477261d5e14466c50f3273c1ec4
parent0c1279b58fc7de230d47bb0dc21b7a08417dee96
drm/i915: Move GT init to intel_gt.c

Code in i915_gem_init_hw is all about GT init so move it to intel_gt.c
renaming to intel_gt_init_hw.

Existing intel_gt_init_hw is renamed to intel_gt_init_hw_early since it
is currently called from driver probe.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Andi Shyti <andi.shyti@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190910143823.10686-2-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_pm.c
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/intel_gt.h
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/mock_gtt.c