1. 05 8月, 2015 9 次提交
  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
  13. 18 11月, 2013 1 次提交
  14. 06 11月, 2013 1 次提交
  15. 19 8月, 2013 1 次提交
    • D
      drm/vmwgfx: remove ->firstopen callback · 0faa4a87
      Daniel Vetter 提交于
      So if we survey kms drivers there's a bunch of things they commonly do
      in ->lastclose
      - delayed processing of vga switcheroo requests (i915, nouveau,
        radeon)
      - force-restoring the fbcon (most)
      - resetting a bunch properties to make fbcon work better (omap)
      - disabling all outputs (vmwgfx)
      
      In short besides the semantically important vga switcheroo stuff they
      all try very hard to keep fbcon working in case X dies.
      
      But none of them try to not do this at driver unload time safe for
      vmwgfx, and digging through logs I couldn't find any reason for why
      vmwgfx is special.
      
      Since ->firstopen has lots of potential for abuse with kms drivers
      (like delaying driver setup to pamper over races in the load sequence)
      it's imo very much worth it to remove this logic so that we can
      stop using the ->firstopen callback for kms drivers.
      
      Also module unloading is rather a debug feature and developers should
      know how to restore the display to a sane configuration.
      
      Cc: Jakob Bornecrantz <jakob@vmware.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      0faa4a87