]> 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)
commite42dfc22d2400c379cdbe71f3a5f54fb40ac47c5
tree729b38ef0a74fc185972a65116b1b5a8ad900ab5
parent47a4fb7bd84b0cfcc7363023e93717e1e530d8dc
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