1. 05 6月, 2020 1 次提交
  2. 25 3月, 2020 1 次提交
    • T
      drm/ttm, drm/vmwgfx: Support huge TTM pagefaults · 314b6580
      Thomas Hellstrom (VMware) 提交于
      Support huge (PMD-size and PUD-size) page-table entries by providing a
      huge_fault() callback.
      We still support private mappings and write-notify by splitting the huge
      page-table entries on write-access.
      
      Note that for huge page-faults to occur, either the kernel needs to be
      compiled with trans-huge-pages always enabled, or the kernel needs to be
      compiled with trans-huge-pages enabled using madvise, and the user-space
      app needs to call madvise() to enable trans-huge pages on a per-mapping
      basis.
      
      Furthermore huge page-faults will not succeed unless buffer objects and
      user-space addresses are aligned on huge page size boundaries.
      
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
      Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
      Cc: Ralph Campbell <rcampbell@nvidia.com>
      Cc: "Jérôme Glisse" <jglisse@redhat.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Signed-off-by: NThomas Hellstrom (VMware) <thomas_os@shipmail.org>
      Reviewed-by: NRoland Scheidegger <sroland@vmware.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      314b6580
  3. 12 2月, 2020 1 次提交
  4. 08 11月, 2019 1 次提交
  5. 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
  6. 04 11月, 2019 1 次提交
  7. 25 10月, 2019 2 次提交
  8. 17 10月, 2019 1 次提交
  9. 13 8月, 2019 1 次提交
  10. 06 8月, 2019 4 次提交
  11. 16 7月, 2019 1 次提交
  12. 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
  13. 29 1月, 2019 1 次提交
  14. 28 9月, 2018 1 次提交
  15. 28 8月, 2018 2 次提交
  16. 11 7月, 2018 1 次提交
  17. 22 3月, 2018 1 次提交
  18. 27 2月, 2018 4 次提交
  19. 11 1月, 2018 1 次提交
  20. 28 12月, 2017 2 次提交
  21. 16 12月, 2017 1 次提交
  22. 07 12月, 2017 5 次提交
  23. 05 4月, 2017 1 次提交
  24. 30 3月, 2017 2 次提交
  25. 28 1月, 2017 1 次提交