1. 22 May, 2014 22 commits
  2. 21 May, 2014 14 commits
  3. 20 May, 2014 4 commits
    • Daniel Vetter's avatar
      drm/i915: Drop now misleading DDI comment from dp_link_down · bc76e320
      Daniel Vetter authored
      Since
      
      commit 2e82a720
      Author: Imre Deak <imre.deak@intel.com>
      Date:   Fri Jan 17 15:46:43 2014 +0200
      
          drm/i915: don't disable DP port after a failed link training
      
      and
      
      commit 5d6a1116
      Author: Imre Deak <imre.deak@intel.com>
      Date:   Thu Jan 16 18:35:57 2014 +0200
      
          drm/i915: don't disable the DP port if the link is lost
      
      we no longer call intel_dp_link_down from generic DP code, but only
      from the !HAS_DDI dp encoder functions. hsw/bdw have their own encoder
      disabling callback in intel_ddi.c.
      
      Hence the early return is no longer needed and the big comment just
      confusing, so let's rip it out. To ensure what we don't accidentally
      use this again on ddi encoders add a WARN_ON instead.
      
      Spotted while reading through intel_dp.c
      
      Cc: Imre Deak <imre.deak@intel.com>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      bc76e320
    • Ville Syrjälä's avatar
      drm: Add drm_vblank_on() · f2752282
      Ville Syrjälä authored
      drm_vblank_off() will turn off vblank interrupts, but as long as the
      refcount is elevated drm_vblank_get() will not re-enable them. This
      is a problem is someone is holding a vblank reference while a modeset is
      happening, and the driver requires vblank interrupt to work during that
      time.
      
      Add drm_vblank_on() as a counterpart to drm_vblank_off() which will
      re-enabled vblank interrupts if the refcount is already elevated. This
      will allow drivers to choose the specific places in the modeset sequence
      at which vblank interrupts get disabled and enabled.
      
      Testcase: igt/kms_flip/*-vs-suspend
      Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      [danvet: Add Testcase tag for the igt I've written.]
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      f2752282
    • Ville Syrjälä's avatar
      drm: Make blocking vblank wait return when the vblank interrupts get disabled · 3212a22f
      Ville Syrjälä authored
      If there's a blocking vblank wait in progress while the vblank interrupt
      gets disabled, the current code will just let the vblank wait time out.
      Instead make it return immediately when vblank interrupts get disabled.
      Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      3212a22f
    • Ville Syrjälä's avatar
      drm: Make the vblank disable timer per-crtc · e69595c2
      Ville Syrjälä authored
      Currently there's one per-device vblank disable timer, and it gets
      reset wheneven the vblank refcount for any crtc drops to zero. That
      means that one crtc could accidentally be keeping the vblank interrupts
      for other crtcs enabled even if there are no users for them. Make the
      disable timer per-crtc to avoid this issue.
      Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      e69595c2