summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/kfd_svm.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2023-08-01 11:38:32 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-09-20 16:25:17 -0400
commitc99b16128082de519975aa147d9da3e40380de67 (patch)
treee64d2aef05fc84591b222ddaa5692434c30a1b9d /drivers/gpu/drm/amd/amdkfd/kfd_svm.c
parentff96ddc3f2643483dc64373934c5703b3a7a1e7d (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_svm.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_svm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c
index fc40377eb55b..136a7a969d48 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c
@@ -1737,10 +1737,8 @@ unlock_out:
addr = next;
}
- if (addr == end) {
- prange->validated_once = true;
+ if (addr == end)
prange->mapped_to_gpu = true;
- }
unreserve_out:
svm_range_unreserve_bos(ctx);