mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
drm/amdgpu: always register an MMU notifier for userptr
commit b39df63b16 upstream.
Since switching to HMM we always need that because we no longer grab
references to the pages.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
596b7d55d7
commit
feb97cf45e
|
|
@ -341,11 +341,9 @@ int amdgpu_gem_userptr_ioctl(struct drm_device *dev, void *data,
|
||||||
if (r)
|
if (r)
|
||||||
goto release_object;
|
goto release_object;
|
||||||
|
|
||||||
if (args->flags & AMDGPU_GEM_USERPTR_REGISTER) {
|
r = amdgpu_mn_register(bo, args->addr);
|
||||||
r = amdgpu_mn_register(bo, args->addr);
|
if (r)
|
||||||
if (r)
|
goto release_object;
|
||||||
goto release_object;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args->flags & AMDGPU_GEM_USERPTR_VALIDATE) {
|
if (args->flags & AMDGPU_GEM_USERPTR_VALIDATE) {
|
||||||
r = amdgpu_ttm_tt_get_user_pages(bo, bo->tbo.ttm->pages);
|
r = amdgpu_ttm_tt_get_user_pages(bo, bo->tbo.ttm->pages);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user