]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdkfd: Add VRAM accounting for SVM migration
authorMukul Joshi <mukul.joshi@amd.com>
Thu, 18 Apr 2024 19:13:58 +0000 (15:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Apr 2024 03:23:45 +0000 (23:23 -0400)
commit1e214f7faaf5d842754cd5cfcd76308bfedab3b5
tree2bd5bb438af198b5c5522e4f190d1ed478423e9e
parent30d1cda8ce31ab49051ff7159280c542a738b23d
drm/amdkfd: Add VRAM accounting for SVM migration

Do VRAM accounting when doing migrations to vram to make sure
there is enough available VRAM and migrating to VRAM doesn't evict
other possible non-unified memory BOs. If migrating to VRAM fails,
driver can fall back to using system memory seamlessly.

Signed-off-by: Mukul Joshi <mukul.joshi@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