diff options
| author | Michel Dänzer <[email protected]> | 2017-11-15 10:37:23 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-12-06 17:47:49 +0000 |
| commit | 299c776cebb01c121f5deb77f2d02a8340f072e4 (patch) | |
| tree | f7a186c35b9272ddea0ee6ca1549983bee5247d1 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amd/amdgpu: not allow gtt size exceed 75%*system memory size (diff) | |
| download | kernel-299c776cebb01c121f5deb77f2d02a8340f072e4.tar.gz kernel-299c776cebb01c121f5deb77f2d02a8340f072e4.zip | |
amdgpu: Don't use DRM_ERROR when failing to allocate a BO
This can be triggered by userspace, e.g. trying to allocate too large a
BO, so it shouldn't log anything by default.
Callers need to handle failure anyway.
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 5acf20cfb1d0..3233d5988f66 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -314,8 +314,8 @@ static bool amdgpu_bo_validate_size(struct amdgpu_device *adev, return true; fail: - DRM_ERROR("BO size %lu > total memory in domain: %llu\n", size, - man->size << PAGE_SHIFT); + DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size, + man->size << PAGE_SHIFT); return false; } |
