[Nouveau] [PATCH] drm/nouveau: print a message when KMS is disabled

Pierre Moreau pierre.morrow at free.fr
Sun Mar 9 19:23:29 PDT 2014


Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
---

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(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 89c484d..bb6409b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -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);
-- 
1.9.0



More information about the Nouveau mailing list