]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: move eviction counting to amdgpu_bo_move_notify
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 15 Dec 2016 16:26:42 +0000 (17:26 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:16 +0000 (11:13 -0500)
commit7ca23cd7b90b635ae4c4676aa6e138ac4f3725e1
tree5f4390a59c3acd085e26a539e55d71c211a2460b
parent9a919559d490a63fc81a9a4992e0d82057823505
drm/amd/amdgpu: move eviction counting to amdgpu_bo_move_notify

This catches evictions of shadow page tables from the GART. Since shadow
page tables are always stored in system memory, amdgpu_bo_move is never
called for them.

This fixes a crash during command submission that occurs when only a shadow
page table and no other BOs were evicted since the last submission.

Fixes: b66eaa59ed2be9ae ("drm/amdgpu: allocate shadow for pd/pt bo V2")
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c