]> asedeno.scripts.mit.edu Git - linux.git/commit
amdgpu/dm: Don't use DRM_ERROR in amdgpu_dm_atomic_check
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 9 Nov 2017 17:38:09 +0000 (18:38 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Nov 2017 23:13:52 +0000 (18:13 -0500)
commit01e28f9c03aa88edfda313e6d309c816690d4b10
tree5bf4bde64f3105a64d92df0b6a11ab6cccaf746c
parentf368d3bfde225199eef2216b03e0ba4944a3434a
amdgpu/dm: Don't use DRM_ERROR in amdgpu_dm_atomic_check

The atomic_check hook is expected to fail in some cases, e.g. if the
modeset operation requested by userspace cannot be performed, so it must
not spam dmesg on failure.

Fixes spurious

 [drm:amdgpu_dm_atomic_check [amdgpu]] *ERROR* Atomic state validation failed with error :-35 !

error messages on DPMS off with CONFIG_DEBUG_WW_MUTEX_SLOWPATH enabled.

While we're at it, fix up the existing DRM_DEBUG_DRIVER strings.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c