drm/amdkfd: Remove svm range validated_once flag
Subsystems (3)
PATCH 1/1 drm/amdkfd: Remove svm range validated_once flag
The validated_once flag is not used after the prefault was removed, The prefault was needed to ensure validate all system memory pages at least once before mapping or migrating the range to GPU.
Signed-off-by Philip Yang <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 3 --- drivers/gpu/drm/amd/amdkfd/kfd_svm.h | 1 - 2 files changed, 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +0 -3
@@ -1730,9 +1730,6 @@ static int svm_range_validate_and_map(struct mm_struct *mm, addr = next; } -if (addr == end) - prange->validated_once = true; - unreserve_out:svm_range_unreserve_bos (ctx);if (!r)
drivers/gpu/drm/amd/amdkfd/kfd_svm.h +0 -1
@@ -132,7 +132,6 @@ struct svm_range {struct list_head child_list;DECLARE_BITMAP (bitmap_access,MAX_GPU_INSTANCE );DECLARE_BITMAP (bitmap_aip,MAX_GPU_INSTANCE ); -bool validated_once;bool mapped_to_gpu; };
Signature · 1 line
2.35.1
Quoted 5 lines · Philip Yang
The
validated_onceflag is not used after the prefault was removed, The prefault was needed to ensure validate all system memory pages at least once before mapping or migrating the range to GPU.Signed-off-by Philip Yang <[email protected]>
Reviewed-by Felix Kuehling <[email protected]>
Quoted 31 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 3 --- drivers/gpu/drm/amd/amdkfd/kfd_svm.h | 1 - 2 files changed, 4 deletions(-)drivers/gpu/drm/amd/amdkfd/kfd_svm.c +0
-3@@ -1730,9 +1730,6 @@ static int svm_range_validate_and_map(struct mm_struct *mm, addr = next; } -if (addr == end) - prange->validated_once = true; - unreserve_out:svm_range_unreserve_bos (ctx);if (!r)drivers/gpu/drm/amd/amdkfd/kfd_svm.h +0
-1@@ -132,7 +132,6 @@ struct svm_range {struct list_head child_list;DECLARE_BITMAP (bitmap_access,MAX_GPU_INSTANCE );DECLARE_BITMAP (bitmap_aip,MAX_GPU_INSTANCE ); -bool validated_once;bool mapped_to_gpu; };