OSDN Git Service

drm/amdgpu: use HMM callback to replace mmu notifier
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 23 Jul 2018 21:45:46 +0000 (17:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:25 +0000 (15:03 -0500)
commit57731a07795ae80790c6ae7d8e7001cdbd6d14c0
treea24aba39baf9b04a66a60eefcb5bac393d2425b7
parentf8b18cf4c33452ee17936c63a0dea5278c4ac050
drm/amdgpu: use HMM callback to replace mmu notifier

Replace our MMU notifier with hmm_mirror_ops.sync_cpu_device_pagetables
callback. Enable CONFIG_HMM and CONFIG_HMM_MIRROR as a dependency in
DRM_AMDGPU_USERPTR Kconfig.

It supports both KFD userptr and gfx userptr paths.

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