]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix VM page table reference counting
authorChristian König <christian.koenig@amd.com>
Fri, 27 Nov 2015 15:49:00 +0000 (16:49 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Nov 2015 19:41:33 +0000 (14:41 -0500)
commit76e119971265f157f3b26f38fec1d7ee046e7478
tree58aaf2f240374a533d74d71b080508885655e5dd
parent0dcaf8b570fb0b4d12f7d0737513229166c76d98
drm/amdgpu: fix VM page table reference counting

We use the reservation object of the page directory for the page tables as
well, because of this the page directory should be freed last. Ensure that
by keeping a reference from the page tables to the directory.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c