• P
    drm/i915: use GEN8_IRQ_INIT on GEN5 · 5c502442
    Paulo Zanoni 提交于
    And rename it to GEN5_IRQ_INIT.
    
    We have discussed doing equivalent changes on July 2013, and I even
    sent a patch series for this: "[PATCH 00/15] Unify interrupt register
    init/reset". Now that the BDW code was merged, I have one more
    argument in favor of these changes.
    
    Here's what really changes with the Gen 5 IRQ init code:
      - We now clear the IIR registers at preinstall (they are also
        cleared at postinstall, but we will change that later).
      - We have an additional POSTING_READ at the IMR register.
    
    v2: - Fix typo in commit message.
        - Add POSTING_READ calls to the macros (Ben, Daniel, Jani).
    
    Reviewed-by: Ben Widawsky <ben@bwidawsk.net> (v1)
    Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    5c502442
i915_irq.c 118.5 KB