drm/amdgpu: only move VM BOs in the LRU during validation v2
authorChristian König <christian.koenig@amd.com>
Thu, 3 Aug 2017 15:44:01 +0000 (11:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Aug 2017 19:45:57 +0000 (15:45 -0400)
commitb636922553ee2c47b9e3955c5665b8996dfcdbd7
tree97a685bef12391d92afbaac4fb06a17cba814359
parent841e763b40764a7699ae07f4cb1921af62d6316d
drm/amdgpu: only move VM BOs in the LRU during validation v2

This should save us a bunch of command submission overhead.

v2: move the LRU move to the right place to avoid the move for the root BO
    and handle the shadow BOs as well. This turned out to be a bug fix because
    the move needs to happen before the kmap.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h