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 <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Philip Yang 2023-08-01 11:38:32 -04:00 committed by Alex Deucher
parent ff96ddc3f2
commit c99b161280
2 changed files with 1 additions and 4 deletions

View file

@ -1737,10 +1737,8 @@ static int svm_range_validate_and_map(struct mm_struct *mm,
addr = next;
}
if (addr == end) {
prange->validated_once = true;
if (addr == end)
prange->mapped_to_gpu = true;
}
unreserve_out:
svm_range_unreserve_bos(ctx);

View file

@ -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;
bool is_error_flag;
};