drm/amdgpu: fix issue with overlapping userptrs
authorChristian König <christian.koenig@amd.com>
Mon, 8 Feb 2016 09:57:22 +0000 (10:57 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 19:16:43 +0000 (14:16 -0500)
commitd7006964d46d76930a44e14f1aae401ccb1797da
tree5688e0d3eaed9d4fdf404dfe6bfbe5a1c2a9be19
parent10c1b6183a163aca59ba92b88f2b4c4cecd20d4c
drm/amdgpu: fix issue with overlapping userptrs

Otherwise we could try to evict overlapping userptr BOs in get_user_pages(),
leading to a possible circular locking dependency.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c