]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only unmask required PM interrupts
authorVinit Azad <vinit.azad@intel.com>
Wed, 14 Aug 2013 20:34:33 +0000 (13:34 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Aug 2013 11:31:48 +0000 (13:31 +0200)
commit44eaaffb18007b00b932840f94180370c69d02c8
tree02e3fc9d93273a253a1bf64dec1df8f69da57886
parenta7ef76e4777b0c387e1a816a5c3f9082164d8042
drm/i915: Only unmask required PM interrupts

Un-masking all PM interrupts causes hardware to generate
interrupts regardless of whether the interrupts are enabled
on the DE side. Since turbo only need up/down threshold and
rc6 timeout interrupt, mask all other interrupts bits to avoid
unnecessary overhead/wake up.

Note that our interrupt handler isn't being fired since we do set the
IER bits properly (IIR bits aren't set). The overhead isn't because
our driver is reacting to these interrupts, but because hardware keeps
generating internal messages when PMINTRMSK doesn't mask out the
up/down EI interrupts (which happen periodically).

Change-Id: I6c947df6fd5f60584d39b9e8b8c89faa51a5e827
Signed-off-by: Vinit Azad <vinit.azad@intel.com>
[danvet: Add follow-up explanation of the precise effects from Vinit
as a note to the commit message.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c