drm/amdkfd: Maintain svm_bo reference in page->zone_device_data
authorAlex Sierra <alex.sierra@amd.com>
Wed, 10 Mar 2021 04:12:15 +0000 (22:12 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:41 +0000 (00:05 -0400)
commit7981ec65497a42ab83dfe43192ed7a98c542f001
tree28ab497ec3e9e896d2a46cf7ee3e101c6b25f48a
parent3bf8282c6b9454422a24b1c443ece80ab325c389
drm/amdkfd: Maintain svm_bo reference in page->zone_device_data

Each zone-device page holds a reference to the SVM BO that manages its
backing storage. This is necessary to correctly hold on to the BO in
case zone_device pages are shared with a child-process.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h