OSDN Git Service

drm/amdkfd: APU mode set max svm range pages
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 23 Mar 2023 12:45:56 +0000 (08:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:36:51 +0000 (10:36 -0400)
commit25f50704343de1bea70100ad41621b5737a6a96b
tree028c4ab23f52b6dd44909b12c8f2be1d353914d7
parent1c77527a69d5ca19cb276e2728992d922b687f35
drm/amdkfd: APU mode set max svm range pages

svm_migrate_init set the max svm range pages based on the KFD nodes
partition size. APU mode don't init pgmap because there is no migration.

kgd2kfd_device_init calls svm_migrate_init after KFD nodes allocation
and initialization.

Signed-off-by: Philip Yang <Philip.Yang@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_device.c
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c