1. 15 7月, 2016 1 次提交
    • L
      drm/i915/vlv: Reset the ADPA in vlv_display_power_well_init() · 9504a892
      Lyude 提交于
      While VGA hotplugging worked(ish) before, it looks like that was mainly
      because we'd unintentionally enable it in
      valleyview_crt_detect_hotplug() when we did a force trigger. This
      doesn't work reliably enough because whenever the display powerwell on
      vlv gets disabled, the values set in VLV_ADPA get cleared and
      consequently VGA hotplugging gets disabled. This causes bugs such as one
      we found on an Intel NUC, where doing the following sequence of
      hotplugs:
      
            - Disconnect all monitors
            - Connect VGA
            - Disconnect VGA
            - Connect HDMI
      
      Would result in VGA hotplugging becoming disabled, due to the powerwells
      getting toggled in the process of connecting HDMI.
      
      Changes since v3:
       - Expose intel_crt_reset() through intel_drv.h and call that in
         vlv_display_power_well_init() instead of
         encoder->base.funcs->reset(&encoder->base);
      
      Changes since v2:
       - Use intel_encoder structs instead of drm_encoder structs
      
      Changes since v1:
       - Instead of handling the register writes ourself, we just reuse
         intel_crt_detect()
       - Instead of resetting the ADPA during display IRQ installation, we now
         reset them in vlv_display_power_well_init()
      
      Cc: stable@vger.kernel.org
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NLyude <cpaul@redhat.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      [danvet: Rebase over dev_priv/drm_device embedding.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      9504a892
  2. 05 7月, 2016 1 次提交
  3. 01 7月, 2016 1 次提交
  4. 30 6月, 2016 4 次提交
  5. 23 6月, 2016 1 次提交
  6. 13 6月, 2016 3 次提交
  7. 06 6月, 2016 1 次提交
  8. 24 5月, 2016 4 次提交
  9. 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
  10. 22 4月, 2016 3 次提交
  11. 19 4月, 2016 5 次提交
  12. 15 4月, 2016 7 次提交
  13. 13 4月, 2016 1 次提交
  14. 07 4月, 2016 1 次提交
  15. 21 3月, 2016 1 次提交
  16. 09 3月, 2016 1 次提交
  17. 07 3月, 2016 1 次提交
  18. 02 3月, 2016 3 次提交