Skip to contentSkip to conversation

drm/nouveau: print a message when KMS is disabled

PATCH In review Pierre Moreau 1 participant 2 messages Mar 10, 2014 – Jun 7, 2014 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: print a message when KMS is disabled

---

If KMS is disabled, Nouveau will now announce in the logs that it won't load.

(Adding Nouveau list as recipient.)

 drivers/gpu/drm/nouveau/nouveau_drm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_drm.c +3 -1
index 89c484d..bb6409b 100644
@@ -984,8 +984,10 @@ nouveau_drm_init(void)
 #endif
 	}
 
-	if (!nouveau_modeset)
+	if (!nouveau_modeset) {
+		DRM_INFO("Nouveau will not load as KMS was disabled.\n");
 		return 0;
+	}
 
 	nouveau_register_dsm_handler();
 	return drm_pci_init(&driver, &nouveau_drm_pci_driver);
Signature · 1 line
1.9.0

A message that is not in the archive (sent off-list or not yet received): 1394418209-2244-1-git-send-email-pierre.morrow-GANU6spQydw@public.gmane.org

#2 lore raw

Hi,

Any thoughts on this patch?

Pierre Moreau

Quoted 33 lines · Pierre Moreau

---

If KMS is disabled, Nouveau will now announce in the logs that it won't load.

(Adding Nouveau list as recipient.)

 drivers/gpu/drm/nouveau/nouveau_drm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_drm.c +3 -1
index 89c484d..bb6409b 100644
@@ -984,8 +984,10 @@ nouveau_drm_init(void)
 #endif
 	}
 
-	if (!nouveau_modeset)
+	if (!nouveau_modeset) {
+		DRM_INFO("Nouveau will not load as KMS was disabled.\n");
 		return 0;
+	}
 
 	nouveau_register_dsm_handler();
 	return drm_pci_init(&driver, &nouveau_drm_pci_driver);
Signature · 6 lines
1.9.0

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau