drm/amdgpu: move userptr BOs to CPU domain during CS v2
authorChristian König <christian.koenig@amd.com>
Tue, 5 Sep 2017 12:36:44 +0000 (14:36 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:24:18 +0000 (14:24 -0400)
commit1b0c0f9dc5ca6c0c8be21eeac92c7aa77bbf1d33
tree6fe97ca83570c4e9107f30e3a3dfaecbadbd2369
parentca666a3c298f838346ccea46ff542c605e68deb5
drm/amdgpu: move userptr BOs to CPU domain during CS v2

Instead of moving them in the MMU notifier move them during CS.

v2: still mark pages as accessed/dirty

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c