1. 28 4月, 2016 1 次提交
    • V
      drm/i915: Update RAWCLK_FREQ register on VLV/CHV · 19ab4ed3
      Ville Syrjälä 提交于
      I just noticed that VLV/CHV have a RAWCLK_FREQ register just like PCH
      platforms. It lives in the display power well, so we should update it
      when enabling the power well.
      
      Interestingly the BIOS seems to leave it at the reset value (125) which
      doesn't match the rawclk frequency on VLV/CHV (200 MHz). As always with
      these register, the spec is extremely vague what the register does. All
      it says is: "This is used to generate a divided down clock for
      miscellaneous timers in display." Based on a quick test, at least AUX
      and PWM appear to be unaffected by this.
      
      But since the register is there, let's configure it in accordance with
      the spec.
      
      Note that we have to move intel_update_rawclk() to occur before we
      touch the power wells, so that the dev_priv->rawclk_freq is already
      populated when the disp2 enable hook gets called for the first time.
      I think this should be safe to do on other platforms as well.
      
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1461768202-17544-1-git-send-email-ville.syrjala@linux.intel.comReviewed-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      19ab4ed3
  2. 22 4月, 2016 3 次提交
  3. 19 4月, 2016 5 次提交
  4. 15 4月, 2016 7 次提交
  5. 13 4月, 2016 1 次提交
  6. 07 4月, 2016 1 次提交
  7. 21 3月, 2016 1 次提交
  8. 09 3月, 2016 1 次提交
  9. 07 3月, 2016 1 次提交
  10. 02 3月, 2016 6 次提交
  11. 01 3月, 2016 1 次提交
  12. 26 2月, 2016 1 次提交
  13. 23 2月, 2016 4 次提交
  14. 22 2月, 2016 5 次提交
  15. 17 2月, 2016 1 次提交
    • I
      drm/i915: Add helper to get a display power ref if it was already enabled · 09731280
      Imre Deak 提交于
      We have many places in the code where we check if a given display power
      domain is enabled and if so access registers backed by this power
      domain. We assumed that some modeset lock will prevent the power
      reference from vanishing in the middle of the HW access, but this
      assumption doesn't always hold. In such cases we get either the wakeref
      not held, or an unclaimed register access error message. To fix this in
      a future-proof way that's independent of other locks wrap any such
      access with a get_ref_if_enabled()/put_ref() pair.
      
      Kudos to Ville and Joonas for the ideas of this new interface.
      
      v2:
      - init the power_domains ptr when declaring it everywhere (Joonas)
      v3:
      - don't report the device to be powered if runtime PM is disabled
      
      CC: Mika Kuoppala <mika.kuoppala@intel.com>
      CC: Chris Wilson <chris@chris-wilson.co.uk>
      CC: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      CC: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1455711462-7442-1-git-send-email-imre.deak@intel.com
      09731280
  16. 12 1月, 2016 1 次提交