Skip to content

Commit 9fe58d0

Browse files
xinhui panalexdeucher
authored andcommitted
drm/amdgpu: Correct the condition of warning while bo release
Only kernel bo has kfd eviction fence. This warning is to give a notice that kfd only remove eviction fence on individual bos. Tested-by: Nicholas Johnson <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: xinhui pan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 1d251d9 commit 9fe58d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,8 @@ void amdgpu_bo_release_notify(struct ttm_buffer_object *bo)
13081308
amdgpu_amdkfd_unreserve_memory_limit(abo);
13091309

13101310
/* We only remove the fence if the resv has individualized. */
1311-
WARN_ON_ONCE(bo->base.resv != &bo->base._resv);
1311+
WARN_ON_ONCE(bo->type == ttm_bo_type_kernel
1312+
&& bo->base.resv != &bo->base._resv);
13121313
if (bo->base.resv == &bo->base._resv)
13131314
amdgpu_amdkfd_remove_fence_on_pt_pd_bos(abo);
13141315

0 commit comments

Comments
 (0)