drm/radeon: only warn once in radeon_ttm_bo_destroy if va list not empty
Subsystems (2)
PATCH v2 1/1 drm/radeon: only warn once in radeon_ttm_bo_destroy if va list not empty
Encountered a dozen of exact same backtraces when mesa's pb_cache_release_all_buffers is called after that a gpu reset failed.
v2: Remove superfluous error message added in v1.
--- drivers/gpu/drm/radeon/radeon_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_object.c +1 -1
@@ -81,7 +81,7 @@ static void radeon_ttm_bo_destroy(struct ttm_buffer_object *tbo)list_del_init (&bo->list);mutex_unlock (&bo->rdev->gem.mutex);radeon_bo_clear_surface_reg (bo); -WARN_ON (!list_empty (&bo->va)); +WARN_ON_ONCE (!list_empty (&bo->va));drm_gem_object_release (&bo->gem_base);kfree (bo); }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1493302208-8637-1-git-send-email-jisorce-bXq66PvbRDbQT0dZR+AlfA@public.gmane.org
Christian König
Reviewed-byAm 27.04.2017 um 16:10 schrieb Julien Isorce:
Quoted 8 lines
Encountered a dozen of exact same backtraces when mesa's
pb_cache_release_all_buffersis called after that a gpu reset failed.v2: Remove superfluous error message added in v1.
Signed-off-by Julien Isorce <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/radeon/radeon_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_object.c +0
-0
drivers/gpu/drm/radeon/radeon_object.c static void radeon_ttm_bo_destroy(struct ttm_buffer_object *tbo) · line 87
Quoted 8 lines
drivers/gpu/drm/radeon/radeon_object.c +1
-1@@ -81,7 +81,7 @@ static void radeon_ttm_bo_destroy(struct ttm_buffer_object *tbo)list_del_init (&bo->list);mutex_unlock (&bo->rdev->gem.mutex);radeon_bo_clear_surface_reg (bo); -WARN_ON (!list_empty (&bo->va)); +WARN_ON_ONCE (!list_empty (&bo->va));drm_gem_object_release (&bo->gem_base);kfree (bo); }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx