drm/vmwgfx: log missing primary planes only once
Subsystems (4)
Zack Rusin
maintainerPATCH 1/1 drm/vmwgfx: log missing primary planes only once
Stop filling kernel logs due to something that's not even a bug. Some igt tests, e.g. kms_flip trigger this message ~17000 times which makes all the other diagnostics almost impossible to find.
Just inform the user about this condition once and let it through afterward.
Fixes a60ccade88f9 ("drm/vmwgfx: Fix crtc's atomic check conditional")
Signed-off-by Zack Rusin <[email protected]>
--- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +2 -3
@@ -155,9 +155,8 @@ int vmw_du_crtc_atomic_check(struct drm_crtc *crtc,* some actual rendering so give a clue as why it's blank. */ if (new_state->enable && !has_primary) -drm_dbg_driver (&vmw->drm, -"CRTC without a primary plane will be blank.\n" ); - +drm_info_once (&vmw->drm, +"CRTC without a primary plane will be blank.\n" );if (new_state->connector_mask != connector_mask && new_state->connector_mask !=0 ) {
Signature · 1 line
2.53.0
LGTM!
Reviewed-by Maaz Mombasawala <[email protected]>
Signature · 1 line
Maaz Mombasawala <[email protected]>