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:07:52 +0000 (14:07 -0500)
commitcc1de6e800c253172334f8774c419dc64401cd2e
tree40de20901e3f0d8b867d2682b6ed20d3a5e0f333
parentf6ff4f67cdf8455d0a4226eeeaf5af17c37d05eb
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c