drm/i915: Defer unmasking RPS interrupts until after making adjustments
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Mar 2017 21:12:32 +0000 (21:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Mar 2017 14:28:44 +0000 (14:28 +0000)
commit7c0a16ad7c5f7f6278da78edb5a416f30fe28d08
tree37e5c40c7cce7d9f4819e3a1896fdd5903ad0e8f
parent569884e3d47d54d943c13eb14d653a6100937f14
drm/i915: Defer unmasking RPS interrupts until after making adjustments

To make our adjustments to RPS requires taking a mutex and potentially
sleeping for an unknown duration - until we have completed our
adjustments further RPS interrupts are immaterial (they are based on
stale thresholds) and we can safely ignore them.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170309211232.28878-3-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/i915_irq.c