Skip to contentSkip to conversation

drm/vmwgfx: log missing primary planes only once

PATCH In review Zack Rusin 2 participants 2 messages Oct 29 – Oct 30

Subsystems (4)
lore
Share & tools
lore

Zack Rusin

author maintainer
#0 lore raw

PATCH 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")
---
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +2 -3
index 85228eb9c3e6..da2d3b62f75f 100644
@@ -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