[Nouveau] Blank screen at startup (conflict with VESA VGA)

Marcin Slusarz marcin.slusarz at gmail.com
Tue Apr 6 10:20:19 PDT 2010


On Tue, Apr 06, 2010 at 10:27:42AM +0200, Didier Spaier wrote:
> Thansk for your answer, kernel logs are attached.
> 

Can you check attached patch? It's a quick hack to kick vesa before
we initialize the hardware.

Marcin

-------------- next part --------------
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c
index 1de974a..9db8482 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -401,6 +401,17 @@ static struct drm_driver driver = {
 
 static int __init nouveau_init(void)
 {
+	int i;
+
+	for (i = 0 ; i < FB_MAX; i++) {
+		if (!registered_fb[i])
+			continue;
+
+		printk(KERN_ERR "nouveau: removing %s driver\n",
+			       registered_fb[i]->fix.id);
+		unregister_framebuffer(registered_fb[i]);
+	}
+
 	driver.num_ioctls = nouveau_max_ioctl;
 
 	if (nouveau_modeset == -1) {


More information about the Nouveau mailing list