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)
commit82b9c55b1edfcb87f5568add56bc7313f5893b60
tree58aaf2f240374a533d74d71b080508885655e5dd
parent585116c5fafe578e89c146c9839c95ac75acfb9d
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