]> git.baikalelectronics.ru Git - kernel.git/commit
drm: ensure atomic messages consistently include the name of the component
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 13 Feb 2017 12:27:03 +0000 (12:27 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Feb 2017 20:17:42 +0000 (21:17 +0100)
commitf70136c9746057c909f3e0f8a98421d4b7339e22
tree88290997675e00ed4dff6d0af2bdccd8087a98ce
parentcbf237a050311f7ed8cebeaf9778c91e47e766d1
drm: ensure atomic messages consistently include the name of the component

Most DRM messages include three pieces of information: the type of the
component (CRTC, ENCODER, CONNECTOR etc), the DRM object ID of the
component, and the component name.  However, there are some messages
which omit the last piece of identifying information.  This makes it
harder to debug failures when these messages are printed, because the
DRM object ID doesn't supply enough information to know which piece of
hardware had a problem.

Update the atomic modeset code to always print the component name along
with the type and DRM object ID.

Fixes: 6648a4c948c2 ("drm/atomic-helper: Reject legacy flips on a disabled pipe")
Fixes: a4ee90c0c66e ("drm/atomic-helper: Print an error if vblank wait times out")
Fixes: f8201892d509 ("drm/atomic-helper: Check encoder/crtc constraints")
Fixes: 04cf027f8c32 ("drm/atomic: Add current-mode blob to CRTC state")
Fixes: 8727c1a99673 ("drm: Global atomic state handling")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Thierry Reding <treding@nvidia.com>
[danvet: Wiggle in conflicting hunk.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c