1. 22 5月, 2014 2 次提交
    • P
      drm/i915: grab the audio power domain when enabling audio on HSW+ · d45a0bf5
      Paulo Zanoni 提交于
      With the current code, we unconditionally touch
      HSW_AUD_PIN_ELD_CP_VLD, which means we can touch it when the power
      well is off, and that will trigger an "Unclaimed register" message.
      
      Just adding the intel_crtc->config.has_audio should already avoid the
      unclaimed register messsages, but since we actually need the power
      well to make the Audio code work, it makes sense to also grab the
      audio power domain reference, and release it when it's not needed
      anymore.
      
      I used IGT's pm_rpm to reproduce this bug, but it can probably be
      reproduced on other tests that do modesets. I'm using a machine with
      eDP+HDMI connected.
      
      Regression introduced by:
      
      commit acfa75b0
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Thu Apr 24 23:54:51 2014 +0200
          drm/i915: Simplify audio handling on DDI ports
      
      Credits to Daniel for suggesting this implementation.
      
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      d45a0bf5
    • P
      drm/i915: don't read HSW_AUD_PIN_ELD_CP_VLD when the power well is off · a60551b1
      Paulo Zanoni 提交于
      Because this will trigger "Unclaimed register" messages. All I need to
      reproduce this problem is to boot my HSW machine with eDP+HDMI
      connected.
      
      Regression introduced by:
      
      commit 9ed109a7
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Thu Apr 24 23:54:52 2014 +0200
          drm/i915: Track has_audio in the pipe config
      
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      a60551b1
  2. 16 5月, 2014 4 次提交
  3. 02 4月, 2014 1 次提交
    • P
      drm/i915: fix WARNs when reading DDI state while suspended · 882244a3
      Paulo Zanoni 提交于
      If runtime PM is enabled and we unset all modes, we will runtime
      suspend after __intel_set_mode() , then function
      intel_modeset_check_state() will try to read the HW state while it is
      suspended and trigger lots of WARNs because it shouldn't be reading
      registers.
      
      So on this patch we make intel_ddi_connector_get_hw_state() return
      false in case the power domain is disabled, and we also make
      intel_display_power_enabled() return false in case the device is
      suspended. Notice that we can't just use
      intel_display_power_enabled_sw() because while the driver is being
      initialized the power domain refcounts are not reflecting the real
      state of the hardware.
      
      Just for reference, I have previously published an alternate patch for
      this problem, called "drm/i915: get runtime PM at intel_set_mode".
      
      Testcase: igt/pm_pc8
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      882244a3
  4. 19 3月, 2014 1 次提交
  5. 18 3月, 2014 2 次提交
    • J
      drm/i915: finish off reverting eDP VDD changes · 24f3e092
      Jani Nikula 提交于
      This is a small follow-up fix to the series of eDP VDD back and forth
      we've had recently. This is effectively a combined revert of three
      commits:
      
      commit 2c2894f698fffd8ff53e1e1d3834f9e1035b1f39
      Author: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Date:   Fri Mar 7 20:05:20 2014 -0300
      
          drm/i915: properly disable the VDD when disabling the panel
      
      commit b3064154
      Author: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Date:   Tue Mar 4 00:42:44 2014 +0100
      
          drm/i915: Don't just say it, actually force edp vdd
      
      commit dff392db
      Author: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Date:   Fri Dec 6 17:32:41 2013 -0200
      
          drm/i915: don't touch the VDD when disabling the panel
      
      which shows that we're pretty close back to where we started
      already. The first two were basically reverting the last, but missing
      the WARN. Add that back. We also OCD the intel_ prefix back to
      intel_edp_panel_vdd_on() which was lost somewhere in between. The circle
      closes.
      
      For future reference, "drm/i915: don't touch the VDD when disabling the
      panel" failed to take into account
      
      commit 6cb49835
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Sun May 20 17:14:50 2012 +0200
      
          drm/i915: enable vdd when switching off the eDP panel
      
      and
      
      commit 35a38556
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Sun Aug 12 22:17:14 2012 +0200
      
          drm/i915: reorder edp disabling to fix ivb MacBook Air
      
      Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      24f3e092
    • P
      drm/i915: properly disable the VDD when disabling the panel · 849e39f5
      Paulo Zanoni 提交于
      Commit b3064154 tried to revert commit
      dff392db, but wasn't complete, which
      resulted in regressions on Haswell. So this commit should fix
      b3064154 by undoing what it did and
      providing an actual complete revert of
      dff392db.
      
      Fixes regression introduced by:
      commit b3064154
      Author: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Date:   Tue Mar 4 00:42:44 2014 +0100
          drm/i915: Don't just say it, actually force edp vdd
      
      Testcase: igt/pm_pc8
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Tested-by: NPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      849e39f5
  6. 11 3月, 2014 1 次提交
    • V
      drm/i915: Make encoder cloning more flexible · bc079e8b
      Ville Syrjälä 提交于
      Currently we allow encoders to indicate whether they can be part of a
      cloned set with just one flag. That's not flexible enough to describe
      the actual hardware capabilities. Instead make it a bitmask of encoder
      types with which the current encoder can be cloned.
      
      For now we set the bitmask to allow DVO+DVO and DVO+VGA, which should
      match what the old boolean flag allowed. We will add some more cloning
      options in the future.
      
      Note that this patch also removes the encoder.possible_clones setting
      from encoder setup code - we compute this dynamically.
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NRodrigo Vivi <rodrigo.vivi@gmail.com>
      [danvet: Add Ville's explanation why removing the encoder
      possible_clones is save.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      bc079e8b
  7. 08 3月, 2014 1 次提交
  8. 13 2月, 2014 1 次提交
  9. 25 1月, 2014 3 次提交
  10. 08 1月, 2014 1 次提交
  11. 12 12月, 2013 2 次提交
  12. 11 12月, 2013 1 次提交
  13. 04 12月, 2013 1 次提交
  14. 28 11月, 2013 1 次提交
  15. 21 11月, 2013 1 次提交
  16. 19 11月, 2013 2 次提交
  17. 09 11月, 2013 5 次提交
  18. 29 10月, 2013 1 次提交
  19. 28 10月, 2013 1 次提交
  20. 10 10月, 2013 1 次提交
  21. 09 10月, 2013 1 次提交
  22. 01 10月, 2013 4 次提交
  23. 13 9月, 2013 2 次提交