drm/i915/bxt: Add BXT support in gen8_irq functions
authorShashank Sharma <shashank.sharma@intel.com>
Fri, 22 Aug 2014 12:10:42 +0000 (17:40 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Apr 2015 12:53:03 +0000 (14:53 +0200)
commit266ea3d9c4f69a4d97533128aba494f7d8b52459
tree1dec1f226d67b5f2e42fd30d9167552047236a99
parentd04a492dd574bba43a558612ddd49fa593a387fe
drm/i915/bxt: Add BXT support in gen8_irq functions

This patch adds conditional checks in gen8_irq functions
to support BXT. Most of the checks just look for PCH split
availability, and block the call to PCH interrupt functions if
not available.

v2: (jani)
- drop redundant TODO comment about PCH IRQ flags on BXT
- check HAS_PCH_SPLIT instead of IS_BROXTON when handling PCH specific
  IRQ events in gen8_irq_handler()
- check HAS_PCH_SPLIT before calling the function instead of a
  corresponding early return within the called function for
  ibx_irq_reset(), ibx_irq_pre_postinstall(), ibx_irq_postinstall()
v3: (jani)
- in ironlake_irq_postinstall() and ironlake_irq_reset() HAS_PCH_SPLIT
  is always true, so drop the check for it

Reviewed-by: Satheeshakrishna M <satheeshakrishna.m@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Shashank Sharma <ppashank.sharma@intel.com> (v1)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c