diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-06-15 03:43:45 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-06-15 03:43:45 +0000 |
commit | 3b2bb3649116a7d9ed6cad3642104719c88b11b6 (patch) | |
tree | b7bf7b4bbe09a3df1a4889995bd6f7400ba76d7d /sys/dev/pci/drm/amd/amdkfd/kfd_svm.c | |
parent | 0fcb07c9ee2764948a083c22878db7e082c8c366 (diff) |
drm/amdkfd: Add VRAM accounting for SVM migration
From Mukul Joshi
bdbb7611dd2ebb6b6035c8c039ef931452af8f41 in linux-6.6.y/6.6.33
1e214f7faaf5d842754cd5cfcd76308bfedab3b5 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd/amdkfd/kfd_svm.c')
-rw-r--r-- | sys/dev/pci/drm/amd/amdkfd/kfd_svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_svm.c b/sys/dev/pci/drm/amd/amdkfd/kfd_svm.c index 87e9ca65e58..ce76d455499 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_svm.c +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_svm.c @@ -3416,7 +3416,7 @@ svm_range_trigger_migration(struct mm_struct *mm, struct svm_range *prange, r = svm_migrate_to_vram(prange, best_loc, mm, KFD_MIGRATE_TRIGGER_PREFETCH); *migrated = !r; - return r; + return 0; } int svm_range_schedule_evict_svm_bo(struct amdgpu_amdkfd_fence *fence) |