diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 5fcb3488a595..c2fae04d769a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |||
@@ -259,6 +259,13 @@ static int amdgpu_verify_access(struct ttm_buffer_object *bo, struct file *filp) | |||
259 | { | 259 | { |
260 | struct amdgpu_bo *abo = ttm_to_amdgpu_bo(bo); | 260 | struct amdgpu_bo *abo = ttm_to_amdgpu_bo(bo); |
261 | 261 | ||
262 | /* | ||
263 | * Don't verify access for KFD BOs. They don't have a GEM | ||
264 | * object associated with them. | ||
265 | */ | ||
266 | if (abo->kfd_bo) | ||
267 | return 0; | ||
268 | |||
262 | if (amdgpu_ttm_tt_get_usermm(bo->ttm)) | 269 | if (amdgpu_ttm_tt_get_usermm(bo->ttm)) |
263 | return -EPERM; | 270 | return -EPERM; |
264 | return drm_vma_node_verify_access(&abo->gem_base.vma_node, | 271 | return drm_vma_node_verify_access(&abo->gem_base.vma_node, |