1. 09 7月, 2014 8 次提交
  2. 08 7月, 2014 30 次提交
  3. 07 7月, 2014 2 次提交
    • V
      drm/i915: Unpin last_context at reset · 4bfad3dd
      Ville Syrjälä 提交于
      We're forgetting to unpin the last_context from the ggtt at GPU reset
      time. This leads to the vma pin_count leaking at every reset if the
      last context wasn't the ring default context. Further use of the same
      context will trigger the pin_count check in i915_gem_object_pin() and
      userspace will be faced with EBUSY as a result.
      
      This plaques kms_flip rather badly since it performs lots of resets,
      and every fd has its own default context these days.
      
      Fix the problem by properly unpinning the last context at reset.
      
      This regression seems to back to
      
      commit acce9ffa
      Author: Ben Widawsky <ben@bwidawsk.net>
      Date:   Fri Dec 6 14:11:03 2013 -0800
      
         drm/i915: Better reset handling for contexts
      
      Testcase: igt/gem_ctx_exec/reset-pin-leak
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      4bfad3dd
    • D
      drm/i915: rework digital port IRQ handling (v2) · 13cf5504
      Dave Airlie 提交于
      The digital ports from Ironlake and up have the ability to distinguish
      between long and short HPD pulses. Displayport 1.1 only uses the short
      form to request link retraining usually, so we haven't really needed
      support for it until now.
      
      However with DP 1.2 MST we need to handle the short irqs on their
      own outside the modesetting locking the long hpd's involve. This
      patch adds the framework to distinguish between short/long to the
      current code base, to lay the basis for future DP 1.2 MST work.
      
      This should mean we get better bisectability in case of regression
      due to the new irq handling.
      
      v2: add GM45 support (untested, due to lack of hw)
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      Reviewed-by: NTodd Previte <tprevite@gmail.com>
      [danvet: Fix conflicts in i915_irq.c with Oscar Mateo's irq handling
      race fixes and a trivial one in intel_drv.h with the psr code.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      13cf5504