]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix userptr put_page handling
authorChristian König <christian.koenig@amd.com>
Sat, 2 Sep 2017 11:21:31 +0000 (13:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:23:10 +0000 (14:23 -0400)
commitcd4925a2e66b9530126487ef605b4f387f5deb0b
tree729b38ef0a74fc185972a65116b1b5a8ad900ab5
parent33a8acfad4418f42389d7d6d98cc0a9297b5881c
drm/amdgpu: fix userptr put_page handling

Move calling put_page into the unpopulate callback. Otherwise we mess up the pages
reference count when it is unbound multiple times.

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