1. 08 11月, 2019 1 次提交
  2. 06 11月, 2019 2 次提交
    • T
      drm/ttm: Convert vm callbacks to helpers · 7aef29f4
      Thomas Hellstrom 提交于
      The default TTM fault handler may not be completely sufficient
      (vmwgfx needs to do some bookkeeping, control the write protectionand also
      needs to restrict the number of prefaults).
      
      Also make it possible replicate ttm_bo_vm_reserve() functionality for,
      for example, mkwrite handlers.
      
      So turn the TTM vm code into helpers: ttm_bo_vm_fault_reserved(),
      ttm_bo_vm_open(), ttm_bo_vm_close() and ttm_bo_vm_reserve(). Also provide
      a default TTM fault handler for other drivers to use.
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      7aef29f4
    • D
      drm/ttm: remove ttm_bo_wait_unreserved · 6b1ce0a2
      Daniel Vetter 提交于
      With nouveau fixed all ttm-using drives have the correct nesting of
      mmap_sem vs dma_resv, and we can just lock the buffer.
      
      Assuming I didn't screw up anything with my audit of course.
      
      v2:
      - Dont forget wu_mutex (Christian König)
      - Keep the mmap_sem-less wait optimization (Thomas)
      - Use _lock_interruptible to be good citizens (Thomas)
      
      v3: Rebase over fault handler helperification.
      
      Reviewed-by: Christian König <christian.koenig@amd.com> (v2)
      Reviewed-by: Thomas Hellström <thellstrom@vmware.com> (v2)
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Cc: Christian Koenig <christian.koenig@amd.com>
      Cc: Huang Rui <ray.huang@amd.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: "VMware Graphics" <linux-graphics-maintainer@vmware.com>
      Cc: Thomas Hellstrom <thellstrom@vmware.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191104173801.2972-3-daniel.vetter@ffwll.ch
      6b1ce0a2
  3. 04 11月, 2019 1 次提交
  4. 25 10月, 2019 2 次提交
  5. 17 10月, 2019 1 次提交
  6. 13 8月, 2019 1 次提交
  7. 06 8月, 2019 4 次提交
  8. 16 7月, 2019 1 次提交
  9. 18 6月, 2019 1 次提交
    • T
      drm/ttm: TTM fault handler helpers · 7a39f35c
      Thomas Hellstrom 提交于
      With the vmwgfx dirty tracking, the default TTM fault handler is not
      completely sufficient (vmwgfx need to modify the vma->vm_flags member,
      and also needs to restrict the number of prefaults).
      
      We also want to replicate the new ttm_bo_vm_reserve() functionality
      
      So start turning the TTM vm code into helpers: ttm_bo_vm_fault_reserved()
      and ttm_bo_vm_reserve(), and provide a default TTM fault handler for other
      drivers to use.
      
      Cc: "Christian König" <christian.koenig@amd.com>
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: "Christian König" <christian.koenig@amd.com> #v1
      7a39f35c
  10. 29 1月, 2019 1 次提交
  11. 28 9月, 2018 1 次提交
  12. 28 8月, 2018 2 次提交
  13. 11 7月, 2018 1 次提交
  14. 22 3月, 2018 1 次提交
  15. 27 2月, 2018 4 次提交
  16. 11 1月, 2018 1 次提交
  17. 28 12月, 2017 2 次提交
  18. 16 12月, 2017 1 次提交
  19. 07 12月, 2017 5 次提交
  20. 05 4月, 2017 1 次提交
  21. 30 3月, 2017 2 次提交
  22. 28 1月, 2017 1 次提交
  23. 14 1月, 2017 1 次提交
  24. 26 10月, 2016 1 次提交
  25. 25 10月, 2016 1 次提交
    • C
      dma-buf: Rename struct fence to dma_fence · f54d1867
      Chris Wilson 提交于
      I plan to usurp the short name of struct fence for a core kernel struct,
      and so I need to rename the specialised fence/timeline for DMA
      operations to make room.
      
      A consensus was reached in
      https://lists.freedesktop.org/archives/dri-devel/2016-July/113083.html
      that making clear this fence applies to DMA operations was a good thing.
      Since then the patch has grown a bit as usage increases, so hopefully it
      remains a good thing!
      
      (v2...: rebase, rerun spatch)
      v3: Compile on msm, spotted a manual fixup that I broke.
      v4: Try again for msm, sorry Daniel
      
      coccinelle script:
      @@
      
      @@
      - struct fence
      + struct dma_fence
      @@
      
      @@
      - struct fence_ops
      + struct dma_fence_ops
      @@
      
      @@
      - struct fence_cb
      + struct dma_fence_cb
      @@
      
      @@
      - struct fence_array
      + struct dma_fence_array
      @@
      
      @@
      - enum fence_flag_bits
      + enum dma_fence_flag_bits
      @@
      
      @@
      (
      - fence_init
      + dma_fence_init
      |
      - fence_release
      + dma_fence_release
      |
      - fence_free
      + dma_fence_free
      |
      - fence_get
      + dma_fence_get
      |
      - fence_get_rcu
      + dma_fence_get_rcu
      |
      - fence_put
      + dma_fence_put
      |
      - fence_signal
      + dma_fence_signal
      |
      - fence_signal_locked
      + dma_fence_signal_locked
      |
      - fence_default_wait
      + dma_fence_default_wait
      |
      - fence_add_callback
      + dma_fence_add_callback
      |
      - fence_remove_callback
      + dma_fence_remove_callback
      |
      - fence_enable_sw_signaling
      + dma_fence_enable_sw_signaling
      |
      - fence_is_signaled_locked
      + dma_fence_is_signaled_locked
      |
      - fence_is_signaled
      + dma_fence_is_signaled
      |
      - fence_is_later
      + dma_fence_is_later
      |
      - fence_later
      + dma_fence_later
      |
      - fence_wait_timeout
      + dma_fence_wait_timeout
      |
      - fence_wait_any_timeout
      + dma_fence_wait_any_timeout
      |
      - fence_wait
      + dma_fence_wait
      |
      - fence_context_alloc
      + dma_fence_context_alloc
      |
      - fence_array_create
      + dma_fence_array_create
      |
      - to_fence_array
      + to_dma_fence_array
      |
      - fence_is_array
      + dma_fence_is_array
      |
      - trace_fence_emit
      + trace_dma_fence_emit
      |
      - FENCE_TRACE
      + DMA_FENCE_TRACE
      |
      - FENCE_WARN
      + DMA_FENCE_WARN
      |
      - FENCE_ERR
      + DMA_FENCE_ERR
      )
       (
       ...
       )
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      Acked-by: NSumit Semwal <sumit.semwal@linaro.org>
      Acked-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20161025120045.28839-1-chris@chris-wilson.co.uk
      f54d1867