diff options
author | Dave Airlie <airlied@redhat.com> | 2019-07-15 14:07:13 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-07-15 14:07:13 -0400 |
commit | 3729fe2bc2a01f4cc1aa88be8f64af06084c87d6 (patch) | |
tree | 462102b65a8cec402bc4726eef6946bdd9113111 /include/drm | |
parent | 7e4b4dfc98d54bc79f7ca29c8bc6307ed2948014 (diff) |
Revert "Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux into drm-next"
This reverts commit 031e610a6a21448a63dff7a0416e5e206724caac, reversing
changes made to 52d2d44eee8091e740d0d275df1311fb8373c9a9.
The mm changes in there we premature and not fully ack or reviewed by core mm folks,
I dropped the ball by merging them via this tree, so lets take em all back out.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/ttm/ttm_bo_api.h | 10 | ||||
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 6 |
2 files changed, 0 insertions, 16 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index 435d02f719a8..49d9cdfc58f2 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h | |||
@@ -768,14 +768,4 @@ int ttm_bo_swapout(struct ttm_bo_global *glob, | |||
768 | struct ttm_operation_ctx *ctx); | 768 | struct ttm_operation_ctx *ctx); |
769 | void ttm_bo_swapout_all(struct ttm_bo_device *bdev); | 769 | void ttm_bo_swapout_all(struct ttm_bo_device *bdev); |
770 | int ttm_bo_wait_unreserved(struct ttm_buffer_object *bo); | 770 | int ttm_bo_wait_unreserved(struct ttm_buffer_object *bo); |
771 | |||
772 | /* Default number of pre-faulted pages in the TTM fault handler */ | ||
773 | #define TTM_BO_VM_NUM_PREFAULT 16 | ||
774 | |||
775 | vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo, | ||
776 | struct vm_fault *vmf); | ||
777 | |||
778 | vm_fault_t ttm_bo_vm_fault_reserved(struct vm_fault *vmf, | ||
779 | pgprot_t prot, | ||
780 | pgoff_t num_prefault); | ||
781 | #endif | 771 | #endif |
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index a2d810a2504d..c9b8ba492f24 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -442,9 +442,6 @@ extern struct ttm_bo_global { | |||
442 | * @driver: Pointer to a struct ttm_bo_driver struct setup by the driver. | 442 | * @driver: Pointer to a struct ttm_bo_driver struct setup by the driver. |
443 | * @man: An array of mem_type_managers. | 443 | * @man: An array of mem_type_managers. |
444 | * @vma_manager: Address space manager | 444 | * @vma_manager: Address space manager |
445 | * @vm_ops: Pointer to the struct vm_operations_struct used for this | ||
446 | * device's VM operations. The driver may override this before the first | ||
447 | * mmap() call. | ||
448 | * lru_lock: Spinlock that protects the buffer+device lru lists and | 445 | * lru_lock: Spinlock that protects the buffer+device lru lists and |
449 | * ddestroy lists. | 446 | * ddestroy lists. |
450 | * @dev_mapping: A pointer to the struct address_space representing the | 447 | * @dev_mapping: A pointer to the struct address_space representing the |
@@ -463,7 +460,6 @@ struct ttm_bo_device { | |||
463 | struct ttm_bo_global *glob; | 460 | struct ttm_bo_global *glob; |
464 | struct ttm_bo_driver *driver; | 461 | struct ttm_bo_driver *driver; |
465 | struct ttm_mem_type_manager man[TTM_NUM_MEM_TYPES]; | 462 | struct ttm_mem_type_manager man[TTM_NUM_MEM_TYPES]; |
466 | const struct vm_operations_struct *vm_ops; | ||
467 | 463 | ||
468 | /* | 464 | /* |
469 | * Protected by internal locks. | 465 | * Protected by internal locks. |
@@ -492,8 +488,6 @@ struct ttm_bo_device { | |||
492 | bool no_retry; | 488 | bool no_retry; |
493 | }; | 489 | }; |
494 | 490 | ||
495 | extern const struct vm_operations_struct ttm_bo_vm_ops; | ||
496 | |||
497 | /** | 491 | /** |
498 | * struct ttm_lru_bulk_move_pos | 492 | * struct ttm_lru_bulk_move_pos |
499 | * | 493 | * |