Skip to content

Commit 901781b

Browse files
committed
drm/i915: use render gen to switch ring irq functions
Top-level interrupt bits are usually found in the display block. It therefore makes sense to use HAS_PCH_SPLIT in i915_irq.c But the irq stuff in intel_ring.c only concerns itself with render core/gt-level interrupt sources. It therefore makes more sense to switch based on gpu gen. Kills a vlv special case. Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent fad2596 commit 901781b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/intel_ringbuffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ render_ring_get_irq(struct intel_ring_buffer *ring)
687687

688688
spin_lock(&ring->irq_lock);
689689
if (ring->irq_refcount++ == 0) {
690-
if (HAS_PCH_SPLIT(dev) || IS_VALLEYVIEW(dev))
690+
if (INTEL_INFO(dev)->gen >= 5)
691691
ironlake_enable_irq(dev_priv,
692692
GT_PIPE_NOTIFY | GT_USER_INTERRUPT);
693693
else
@@ -706,7 +706,7 @@ render_ring_put_irq(struct intel_ring_buffer *ring)
706706

707707
spin_lock(&ring->irq_lock);
708708
if (--ring->irq_refcount == 0) {
709-
if (HAS_PCH_SPLIT(dev) || IS_VALLEYVIEW(dev))
709+
if (INTEL_INFO(dev)->gen >= 5)
710710
ironlake_disable_irq(dev_priv,
711711
GT_USER_INTERRUPT |
712712
GT_PIPE_NOTIFY);

0 commit comments

Comments
 (0)