1. 19 Oct, 2012 3 commits
    • Damien Lespiau's avatar
      drm/i915: Program DSPCLK_GATE_D only once on Ironlake · 4d47e4f5
      Damien Lespiau authored
      With the consolidated registers, it appears that we're setting the same
      bis several times. Let's just collect the bits we want to set and program
      it once.
      
      v2: More cleanup. Also program 0x42004 and 0x45000 for FBC on non
          mobile platforms (Paulo Zanoni)
      Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
      [danvet: Undo the functional change as discussed on irc.]
      Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      4d47e4f5
    • Damien Lespiau's avatar
      drm/i915: Consolidate ILK_DSPCLK_GATE and PCH_DSPCLK_GATE · 231e54f6
      Damien Lespiau authored
      Register 0x42020 was defined twice under the names PCH_DSPCLK_GATE_D and
      ILK_DSPCLK_GATE. This patch consolidate the 2 sets of defines in one.
      
      The transforms done are:
      
      PCH_DSPCLK_GATE_D    -> ILK_DSPCLK_GATE_D
      ILK_DSPCLK_GATE      -> ILK_DSPCLK_GATE_D
      
      DPARBUNIT_CLOCK_GATE_DISABLE -> ILK_DPARBUNIT_CLOCK_GATE_DISABLE
      ILK_DPARB_CLK_GATE           -> ILK_DPARBUNIT_CLOCK_GATE_DISABLE
      
      DPFDUNIT_CLOCK_GATE_DISABLE -> ILK_DPFDUNIT_CLOCK_GATE_DISABLE
      ILK_DPFD_CLK_GATE           -> ILK_DPFDUNIT_CLOCK_GATE_DISABLE
      ILK_CLK_FBC                 -> ILK_DPFDUNIT_CLOCK_GATE_DISABLE
      
      DPFCRUNIT_CLOCK_GATE_DISABLE -> ILK_DPFCRUNIT_CLOCK_GATE_DISABLE
      ILK_DPFC_DIS1                -> ILK_DPFCRUNIT_CLOCK_GATE_DISABLE
      
      DPFCUNIT_CLOCK_GATE_DISABLE -> ILK_DPFCUNIT_CLOCK_GATE_DISABLE
      ILK_DPFC_DIS2               -> ILK_DPFCUNIT_CLOCK_GATE_DISABLE
      
      We have a VHRUNIT_CLOCK_GATE_DISABLE define for the pre-ILK DSPCLK_GATE_D.
      Even if the same bit is used in ILK_DSPCLK_GATE_D, other bits in the
      register change, so I went with re-defining it, well more precisely rename
      IVB_VRHUNIT_CLK_GATE, which is not specific to IVB+. So:
      
      IVB_VRHUNIT_CLK_GATE       -> ILK_VHRUNIT_CLOCK_GATE_DISABLE
      VHRUNIT_CLOCK_GATE_DISABLE -> ILK_VHRUNIT_CLOCK_GATE_DISABLE (ILK+ code)
      
      This commit is only a renaming commit, further commits will clean up the
      logic.
      
      v2: Rename bit 5 and 7 to _ENABLE as setting them to 1 enables clock
          gating on their respective units, contrary to all of the other bits
          (Paulo Zanoni)
      Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
      Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      231e54f6
    • Daniel Vetter's avatar
      drm/i915: unconditionally use mt forcewake on hsw/ivb · 36ec8f87
      Daniel Vetter authored
      Single-threaded forcewake was only used on some early pre-production
      ivybridge machines, all the latest ones should use mt forcewake. And
      we already assume this in other places of the code (e.g. DERRMR
      support in the ddx, or the latest intel_gt_reset patch to reset any
      lingering forcewake references left behind by the bios), so don't
      bother here, too.
      Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
      Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      36ec8f87
  2. 18 Oct, 2012 13 commits
  3. 17 Oct, 2012 11 commits
  4. 16 Oct, 2012 3 commits
  5. 11 Oct, 2012 1 commit
  6. 10 Oct, 2012 9 commits