All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] "Junior" ToDo Warn if Modesetting Disabled
@ 2012-08-26  9:15 mwc28-CklgBQt3EwWO6V2BHUzxHg
       [not found] ` <20120826211500.18936vaz6qo2nkes-H39yYvbTrNBS04pZAofVr6U/zSkkHjvu@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: mwc28-CklgBQt3EwWO6V2BHUzxHg @ 2012-08-26  9:15 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

[-- Attachment #1: Type: text/plain, Size: 118 bytes --]

Hi,

ToDo list item - totally untested.

Bikeshed away about the text of the message and I can change.

Cheers,

Mark

[-- Attachment #2: modeset.patch --]
[-- Type: text/x-patch, Size: 1061 bytes --]

From cc3257d8b29c5302de869bfb2a442a1daf01f387 Mon Sep 17 00:00:00 2001
From: Mark Carey <mark-CklgBQt3EwWO6V2BHUzxHg@public.gmane.org>
Date: Sun, 26 Aug 2012 21:09:39 +1200
Subject: [PATCH] drm/nouveau: warn during init if modesetting disabled

Reported-by: Pekka Paalanen <pq-X3B1VOXEql0@public.gmane.org>
Signed-off-by: Mark Carey <mark-CklgBQt3EwWO6V2BHUzxHg@public.gmane.org>
---
 drivers/gpu/drm/nouveau/nouveau_drm.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 9fb56b3..3dbf081 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -655,8 +655,11 @@ nouveau_drm_init(void)
 			nouveau_modeset = 1;
 	}
 
-	if (!nouveau_modeset)
+    if (!nouveau_modeset) {
+		NV_FATAL(NULL, "modesetting disabled\n");
+		NV_FATAL(NULL, "modesetting required for normal operation\n");
 		return 0;
+    }
 
 	nouveau_register_dsm_handler();
 	return drm_pci_init(&driver, &nouveau_drm_pci_driver);
-- 
1.7.5.1


[-- Attachment #3: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-26 22:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-26  9:15 [patch] "Junior" ToDo Warn if Modesetting Disabled mwc28-CklgBQt3EwWO6V2BHUzxHg
     [not found] ` <20120826211500.18936vaz6qo2nkes-H39yYvbTrNBS04pZAofVr6U/zSkkHjvu@public.gmane.org>
2012-08-26 21:05   ` Mark Carey
     [not found]     ` <20120827090558.33082n3ef2x2nbg6-H39yYvbTrNBS04pZAofVr6U/zSkkHjvu@public.gmane.org>
2012-08-26 22:18       ` Martin Peres

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.