]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdkfd: Remove svm range validated_once flag
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 1 Aug 2023 15:38:32 +0000 (11:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Sep 2023 20:25:17 +0000 (16:25 -0400)
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>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h

index fc40377eb55b6a8e993a38d13c2a3242498347b3..136a7a969d4809a643cd706dfa78b20963206769 100644 (file)
@@ -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);
index 78bfb83cd0c01cfa401331448d69565cd3996ae7..5fd958a97a280c969c21b046efe2d15476f8cd00 100644 (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;
 };