OSDN Git Service

amdgpu: Don't use DRM_ERROR when failing to allocate a BO
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 15 Nov 2017 10:37:23 +0000 (11:37 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:49 +0000 (12:47 -0500)
commit299c776cebb01c121f5deb77f2d02a8340f072e4
treef7a186c35b9272ddea0ee6ca1549983bee5247d1
parent424e2c8580286b75c37dc02f26f4fb6168549d32
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 <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c