1. 04 1月, 2012 1 次提交
    • B
      drm/i915: relative_constants_mode race fix · e2971bda
      Ben Widawsky 提交于
      dev_priv keeps track of the current addressing mode that gets set at
      execbuffer time. Unfortunately the existing code was doing this before
      acquiring struct_mutex which leaves a race with another thread also
      doing an execbuffer. If that wasn't bad enough, relocate_slow drops
      struct_mutex which opens a much more likely error where another thread
      comes in and modifies the state while relocate_slow is being slow.
      
      The solution here is to just defer setting this state until we
      absolutely need it, and we know we'll have struct_mutex for the
      remainder of our code path.
      
      v2: Keith noticed a bug in the original patch.
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      e2971bda
  2. 03 1月, 2012 9 次提交
  3. 29 12月, 2011 11 次提交
  4. 23 12月, 2011 4 次提交
  5. 22 12月, 2011 12 次提交
  6. 21 12月, 2011 3 次提交