1. 05 8月, 2015 12 次提交
  2. 19 1月, 2015 1 次提交
    • T
      drm/vmwgfx: Replace the hw mutex with a hw spinlock · 496eb6fd
      Thomas Hellstrom 提交于
      Fixes a case where we call vmw_fifo_idle() from within a wait function with
      task state !TASK_RUNNING, which is illegal.
      
      In addition, make the locking fine-grained, so that it is performed once
      for every read- and write operation. This is of course more costly, but we
      don't perform much register access in the timing critical paths anyway. Instead
      we have the extra benefit of being sure that we don't forget the hw lock around
      register accesses. I think currently the kms code was quite buggy w r t this.
      
      This fixes Red Hat Bugzilla Bug 1180796
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: NJakob Bornecrantz <jakob@vmware.com>
      496eb6fd
  3. 02 9月, 2014 2 次提交
  4. 24 7月, 2014 1 次提交
  5. 04 7月, 2014 1 次提交
  6. 28 3月, 2014 2 次提交
  7. 02 3月, 2014 1 次提交
  8. 12 2月, 2014 1 次提交
  9. 05 2月, 2014 2 次提交
  10. 17 1月, 2014 15 次提交
  11. 18 12月, 2013 1 次提交
  12. 05 12月, 2013 1 次提交
    • T
      drm/vmwgfx: Fix dma buffer memory size accounting · 308d17ef
      Thomas Hellstrom 提交于
      Also request kernel ttm_buffer objects for buffer objects that obviously
      aren't visible to user-space, and save some device address space.
      
      The accounting was broken in a couple of ways:
      1) We did not differentiate between user dma buffers and kernel dma buffers.
      2) The ttm_bo_acc_size function is broken in that it
      a) Doesn't take into account the size of the optional dma address array,
      b) Doesn't take into account the fact that drivers typically embed the
      ttm_tt structure.
      
      This needs to be fixed in ttm, but meanwhile provide a vmwgfx-specific
      function to do the job.
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: NJakob Bornecrantz <jakob@vmware.com>
      308d17ef