diff options
author | 2023-05-29 16:01:37 -0500 | |
---|---|---|
committer | 2023-06-09 12:32:25 -0400 | |
commit | c22b044070971e474dd0ff81a9830df93751f726 (patch) | |
tree | ca897bf93fc474e8bbc25ae787b6fd21961afcfc /drivers/gpu/drm/amd/amdkfd/kfd_svm.h | |
parent | drm/amdgpu: Initialize xcc mask (diff) | |
download | linux-c22b044070971e474dd0ff81a9830df93751f726.tar.gz linux-c22b044070971e474dd0ff81a9830df93751f726.tar.bz2 linux-c22b044070971e474dd0ff81a9830df93751f726.zip |
drm/amdkfd: flag added to handle errors from svm validate and map
If a return error is raised during validation and mapping of a
prange, this flag is set. It is a rare occurrence, but it could happen
when `amdgpu_hmm_range_get_pages_done` returns true. In such cases,
the caller should retry. However, it is important to ensure that the
prange is updated correctly during the retry.
Signed-off-by: Alex Sierra <alex.sierra@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.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_svm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.h b/drivers/gpu/drm/amd/amdkfd/kfd_svm.h index 762679835e31..21b14510882b 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_svm.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_svm.h @@ -134,6 +134,7 @@ struct svm_range { DECLARE_BITMAP(bitmap_aip, MAX_GPU_INSTANCE); bool validated_once; bool mapped_to_gpu; + bool is_error_flag; }; static inline void svm_range_lock(struct svm_range *prange) |