drm/amdkfd: Set svm range max pages
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 25 Jul 2022 11:06:38 +0000 (07:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:05:14 +0000 (16:05 -0400)
commit4959e609de1ed4199f33124a88a4c9ab95f5cd9a
treed12a0b44de38c8d3700ec968b0692da50ac83597
parent79b2c54f19110235041d8f1250e3c3694047a902
drm/amdkfd: Set svm range max pages

This will be used to split giant svm range into smaller ranges, to
support VRAM overcommitment by giant range and improve GPU retry fault
recover on giant range.

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_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h