Skip to content

Commit

Permalink
drm/amdgpu: Use drm_dbg_kms for reporting failure to get a GEM FB
Browse files Browse the repository at this point in the history
drm_err meant broken user space could spam dmesg.

Fixes: f258907 "drm/amdgpu: Verify bo size can fit framebuffer size on init."
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Michel Dänzer authored and Alex Deucher committed Jun 8, 2021
1 parent 2a48b59 commit b71a52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ int amdgpu_display_gem_fb_init(struct drm_device *dev,

return 0;
err:
drm_err(dev, "Failed to init gem fb: %d\n", ret);
drm_dbg_kms(dev, "Failed to init gem fb: %d\n", ret);
rfb->base.obj[0] = NULL;
return ret;
}
Expand Down Expand Up @@ -1094,7 +1094,7 @@ int amdgpu_display_gem_fb_verify_and_init(

return 0;
err:
drm_err(dev, "Failed to verify and init gem fb: %d\n", ret);
drm_dbg_kms(dev, "Failed to verify and init gem fb: %d\n", ret);
rfb->base.obj[0] = NULL;
return ret;
}
Expand Down

0 comments on commit b71a52f

Please sign in to comment.