linux/drivers/gpu/drm/amd
Christian König 2f568dbd6b drm/amdgpu: move get_user_pages out of amdgpu_ttm_tt_pin_userptr v6
That avoids lock inversion between the BO reservation lock
and the anon_vma lock.

v2:
* Changed amdgpu_bo_list_entry.user_pages to an array of pointers
* Lock mmap_sem only for get_user_pages
* Added invalidation of unbound userpointer BOs
* Fixed memory leak and page reference leak

v3 (chk):
* Revert locking mmap_sem only for_get user_pages
* Revert adding invalidation of unbound userpointer BOs
* Sanitize and fix error handling

v4 (chk):
* Init userpages pointer everywhere.
* Fix error handling when get_user_pages() fails.
* Add invalidation of unbound userpointer BOs again.

v5 (chk):
* Add maximum number of tries.

v6 (chk):
* Fix error handling when we run out of tries.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> (v4)
Acked-by: Alex Deucher <alexander.deucher@amd.com>
2016-03-08 11:01:50 -05:00
..
acp drm/amd: Do not make DRM_AMD_ACP default to y 2016-02-25 17:44:57 -05:00
amdgpu drm/amdgpu: move get_user_pages out of amdgpu_ttm_tt_pin_userptr v6 2016-03-08 11:01:50 -05:00
amdkfd drm/amdkfd: Remove unnecessary cast in kfree 2016-01-28 14:40:11 +02:00
include drm/amdgpu: update radeon acpi header 2016-02-26 14:17:04 -05:00
powerplay drm/amd/powerplay: refine the dmesg info. 2016-03-05 12:33:40 -05:00
scheduler drm/amdgpu: drop a dummy wakeup scheduler 2016-02-10 14:17:02 -05:00