Skip to contentSkip to conversation

drm/nouveau: Add a module option to force card POST.

PATCH In review Marcin Kościelnicki 2 participants 2 messages Sep 29, 2010 1 message not in the archive

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

PATCH 1/1 drm/nouveau: Add a module option to force card POST.

---
 drivers/gpu/drm/nouveau/nouveau_bios.c |    2 ++
 drivers/gpu/drm/nouveau/nouveau_drv.c  |    4 ++++
 drivers/gpu/drm/nouveau/nouveau_drv.h  |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)
drivers/gpu/drm/nouveau/nouveau_bios.c +2 -0
index 0b844ea..4df6898 100644
@@ -6871,6 +6871,8 @@ nouveau_bios_init(struct drm_device *dev)
 			"running VBIOS init tables.\n");
 		bios->execute = true;
 	}
+	if (nouveau_force_post)
+		bios->execute = true;
 
 	ret = nouveau_run_vbios_init(dev);
 	if (ret)
drivers/gpu/drm/nouveau/nouveau_drv.c +4 -0
index 39535c8..8006f30 100644
@@ -80,6 +80,10 @@ MODULE_PARM_DESC(nofbaccel, "Disable fbcon acceleration");
 int nouveau_nofbaccel = 0;
 module_param_named(nofbaccel, nouveau_nofbaccel, int, 0400);
 
+MODULE_PARM_DESC(force_post, "Force POST");
+int nouveau_force_post = 0;
+module_param_named(force_post, nouveau_force_post, int, 0400);
+
 MODULE_PARM_DESC(override_conntype, "Ignore DCB connector type");
 int nouveau_override_conntype = 0;
 module_param_named(override_conntype, nouveau_override_conntype, int, 0400);
drivers/gpu/drm/nouveau/nouveau_drv.h +1 -0
index 591254e..6201c47 100644
@@ -755,6 +755,7 @@ extern char *nouveau_vbios;
 extern int nouveau_ignorelid;
 extern int nouveau_nofbaccel;
 extern int nouveau_noaccel;
+extern int nouveau_force_post;
 extern int nouveau_override_conntype;
 extern char *nouveau_perflvl;
 extern int nouveau_perflvl_wr;
Signature · 1 line
1.7.3

A message that is not in the archive (sent off-list or not yet received): 1285758901-2763-1-git-send-email-koriakin-mP9o5jsk0RY@public.gmane.org

#2 lore raw

On Wed, 2010-09-29 at 11:15 +0000, Marcin Kościelnicki wrote:

Yes, this is useful for development purposes in the very least. I've queued it up in my tree.

Thanks,
Ben.

Quoted 39 lines
---
 drivers/gpu/drm/nouveau/nouveau_bios.c |    2 ++
 drivers/gpu/drm/nouveau/nouveau_drv.c  |    4 ++++
 drivers/gpu/drm/nouveau/nouveau_drv.h  |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)
drivers/gpu/drm/nouveau/nouveau_bios.c +2 -0
index 0b844ea..4df6898 100644
@@ -6871,6 +6871,8 @@ nouveau_bios_init(struct drm_device *dev)
 			"running VBIOS init tables.\n");
 		bios->execute = true;
 	}
+	if (nouveau_force_post)
+		bios->execute = true;
 
 	ret = nouveau_run_vbios_init(dev);
 	if (ret)
drivers/gpu/drm/nouveau/nouveau_drv.c +4 -0
index 39535c8..8006f30 100644
@@ -80,6 +80,10 @@ MODULE_PARM_DESC(nofbaccel, "Disable fbcon acceleration");
 int nouveau_nofbaccel = 0;
 module_param_named(nofbaccel, nouveau_nofbaccel, int, 0400);
 
+MODULE_PARM_DESC(force_post, "Force POST");
+int nouveau_force_post = 0;
+module_param_named(force_post, nouveau_force_post, int, 0400);
+
 MODULE_PARM_DESC(override_conntype, "Ignore DCB connector type");
 int nouveau_override_conntype = 0;
 module_param_named(override_conntype, nouveau_override_conntype, int, 0400);
drivers/gpu/drm/nouveau/nouveau_drv.h +0 -0
index 591254e..6201c47 100644

drivers/gpu/drm/nouveau/nouveau_drv.h extern char *nouveau_vbios; · line 761

Quoted 7 lines
drivers/gpu/drm/nouveau/nouveau_drv.h +1 -0
@@ -755,6 +755,7 @@ extern char *nouveau_vbios;
 extern int nouveau_ignorelid;
 extern int nouveau_nofbaccel;
 extern int nouveau_noaccel;
+extern int nouveau_force_post;
 extern int nouveau_override_conntype;
 extern char *nouveau_perflvl;
 extern int nouveau_perflvl_wr;

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