]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: use resource cursor in svm_migrate_copy_to_vram v2
authorChristian König <christian.koenig@amd.com>
Fri, 21 May 2021 13:50:19 +0000 (15:50 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 4 Jun 2021 13:16:46 +0000 (15:16 +0200)
commit2fdcb55dfc86835e4845e3f422180b5596d23cb4
tree0dffc7049128cd82fbebea056b578b189d4cfd83
parentd624e1bfa579d3918634fccb0775452d68c14270
drm/amdkfd: use resource cursor in svm_migrate_copy_to_vram v2

Access to the mm_node is now forbidden. So instead of hand wiring that
use the cursor functionality.

v2: fix handling as pointed out by Philip.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by and Tested-by: Philip Yang <philip.yang@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210602100914.46246-5-christian.koenig@amd.com
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c