OSDN Git Service

drm/amdkfd: flag added to handle errors from svm validate and map
authorAlex Sierra <alex.sierra@amd.com>
Mon, 29 May 2023 21:01:37 +0000 (16:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:32:25 +0000 (12:32 -0400)
commitc22b044070971e474dd0ff81a9830df93751f726
treeca897bf93fc474e8bbc25ae787b6fd21961afcfc
parentc6a64ad9b7f7182b5e2439a740574300b2e61951
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>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h