]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4379c4626f6821eede203574c62645f60cacc5fd
treef7a186c35b9272ddea0ee6ca1549983bee5247d1
parentd38c434f4f8c6231b33b78cdcb0c98698968ab56
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