[Nouveau] [PATCH 3/6] drm/nouveau: Don't initialize two CRTCs on single head cards.

Francisco Jerez currojerez at riseup.net
Mon Aug 17 07:58:51 PDT 2009


---
 drivers/gpu/drm/nouveau/nv04_display.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nv04_display.c b/drivers/gpu/drm/nouveau/nv04_display.c
index ed16e8d..b20ab01 100644
--- a/drivers/gpu/drm/nouveau/nv04_display.c
+++ b/drivers/gpu/drm/nouveau/nv04_display.c
@@ -125,8 +125,9 @@ nv04_display_create(struct drm_device *dev)
 
 	dev->mode_config.fb_base = dev_priv->fb_phys;
 
-	for (i = 0; i < 2; i++)
-		nv04_crtc_create(dev, i);
+	nv04_crtc_create(dev, 0);
+	if (nv_two_heads(dev))
+		nv04_crtc_create(dev, 1);
 
 	for (i = 0; i < dcb->entries; i++) {
 		struct dcb_entry *dcbent = &dcb->entry[i];
-- 
1.6.3.3



More information about the Nouveau mailing list