diff options
author | Andi Shyti <andi.shyti@intel.com> | 2019-08-11 17:28:00 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-08-12 17:36:06 +0300 |
commit | d762043f7ab142291be07f15ac7ff83b7485e3e6 (patch) | |
tree | 8ad158e73138afb4df2b70e088607bbeb25797e5 /drivers/gpu/drm/i915/gt/intel_gt.c | |
parent | 4ecd20c929b86e87ee4a74379678d1c0ef90c68d (diff) | |
download | linux-d762043f7ab142291be07f15ac7ff83b7485e3e6.tar.xz |
drm/i915: Extract GT powermanagement interrupt handling
i915_irq.c is large. It serves as the central dispatch and handler for
all of our device interrupts. Pull out the GT pm interrupt handling
(leaving the central dispatch) so that we can encapsulate the logic a
little better.
Based on a patch by Chris Wilson.
Signed-off-by: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190811142801.2460-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_gt.c')
-rw-r--r-- | drivers/gpu/drm/i915/gt/intel_gt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_gt.c b/drivers/gpu/drm/i915/gt/intel_gt.c index c543467a8a1c..914bd2db3bc7 100644 --- a/drivers/gpu/drm/i915/gt/intel_gt.c +++ b/drivers/gpu/drm/i915/gt/intel_gt.c @@ -13,9 +13,11 @@ void intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private *i915) gt->i915 = i915; gt->uncore = &i915->uncore; + spin_lock_init(>->irq_lock); + INIT_LIST_HEAD(>->active_rings); - INIT_LIST_HEAD(>->closed_vma); + INIT_LIST_HEAD(>->closed_vma); spin_lock_init(>->closed_lock); intel_gt_init_hangcheck(gt); |