]> 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)
commit1b0b6d96f77484e3b35f6dd156eb565fb3329acb
tree58aaf2f240374a533d74d71b080508885655e5dd
parent9a6f8a2a94776baf8fdf1e1e634dbdfaf7db3396
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