]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2f7f9b7f2dbc9d8bb33d4d08fe7e38115c30c90
tree97a685bef12391d92afbaac4fb06a17cba814359
parent3848481678167d17de2763b0519ad13b8df90c32
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