linux/drivers/gpu/drm/ttm
Thomas Hellstrom 941f2f72db drm/ttm: Restore ttm prefaulting
Commit 4daa4fba3a ("gpu: drm: ttm: Adding new return type vm_fault_t")
broke TTM prefaulting. Since vmf_insert_mixed() typically always returns
VM_FAULT_NOPAGE, prefaulting stops after the second PTE.

Restore (almost) the original behaviour. Unfortunately we can no longer
with the new vm_fault_t return type determine whether a prefaulting
PTE insertion hit an already populated PTE, and terminate the insertion
loop. Instead we continue with the pre-determined number of prefaults.

Fixes: 4daa4fba3a ("gpu: drm: ttm: Adding new return type vm_fault_t")
Cc: Souptick Joarder <jrdr.linux@gmail.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/330387/
2019-10-14 12:49:24 +02:00
..
Makefile drm/ttm, drm/vmwgfx: Move the lock- and object functionality to the vmwgfx driver 2018-09-27 15:19:20 +02:00
ttm_agp_backend.c
ttm_bo.c drm/ttm: fix busy reference in ttm_mem_evict_first 2019-10-14 12:48:59 +02:00
ttm_bo_manager.c
ttm_bo_util.c dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
ttm_bo_vm.c drm/ttm: Restore ttm prefaulting 2019-10-14 12:49:24 +02:00
ttm_execbuf_util.c dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
ttm_memory.c drm pull request for 5.2 2019-05-08 21:35:19 -07:00
ttm_module.c
ttm_page_alloc.c drm/ttm: fix incrementing the page pointer for huge pages 2019-04-11 10:01:51 -05:00
ttm_page_alloc_dma.c drm/ttm: use the same attributes when freeing d_page->vaddr 2019-07-18 14:18:07 -05:00
ttm_tt.c dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00