Commit c99b1612 authored by Philip Yang's avatar Philip Yang Committed by Alex Deucher

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: default avatarPhilip Yang <Philip.Yang@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ff96ddc3
...@@ -1737,10 +1737,8 @@ static int svm_range_validate_and_map(struct mm_struct *mm, ...@@ -1737,10 +1737,8 @@ static int svm_range_validate_and_map(struct mm_struct *mm,
addr = next; addr = next;
} }
if (addr == end) { if (addr == end)
prange->validated_once = true;
prange->mapped_to_gpu = true; prange->mapped_to_gpu = true;
}
unreserve_out: unreserve_out:
svm_range_unreserve_bos(ctx); svm_range_unreserve_bos(ctx);
......
...@@ -132,7 +132,6 @@ struct svm_range { ...@@ -132,7 +132,6 @@ struct svm_range {
struct list_head child_list; struct list_head child_list;
DECLARE_BITMAP(bitmap_access, MAX_GPU_INSTANCE); DECLARE_BITMAP(bitmap_access, MAX_GPU_INSTANCE);
DECLARE_BITMAP(bitmap_aip, MAX_GPU_INSTANCE); DECLARE_BITMAP(bitmap_aip, MAX_GPU_INSTANCE);
bool validated_once;
bool mapped_to_gpu; bool mapped_to_gpu;
bool is_error_flag; bool is_error_flag;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment