diff options
author | Julien Isorce <julien.isorce@gmail.com> | 2017-04-27 15:10:08 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-10 11:23:08 -0400 |
commit | 634b6a8a064576797120b74facf95ba79283b5d5 (patch) | |
tree | 3f288c7e79fe7da656f46dabf429507907d26677 /drivers/gpu/drm/radeon/radeon_object.c | |
parent | db2c2a9798d266fd1d7c950b3937793b05533bf4 (diff) | |
download | linux-634b6a8a064576797120b74facf95ba79283b5d5.tar.bz2 |
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.
bug: https://bugs.freedesktop.org/show_bug.cgi?id=96271
Signed-off-by: Julien Isorce <jisorce@oblong.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_object.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index bec2ec056de4..8b722297a05c 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -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); } |