Skip to contentSkip to conversation

xf86-video-nv: Branch 'master'

Nouveau-cvs Pekka Paalanen 2 participants 3 messages Sep 14, 2009 – Sep 15, 2009 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20090914030659.B24CD10051-PlYeExAEIo6UevrW7tnuMEsOKLKoXr+P@public.gmane.org

#2 lore raw
Quoted 33 lines · On Sun, 13 Sep 2009 20:06:59 -0700 (PDT)…
 src/drmmode_display.c |    6 ++++++
 src/nv_driver.c       |    2 ++
 2 files changed, 8 insertions(+)

New commits:
commit 6c045fc44783454180d7b3d00b5f25436bd5544e

Author: Ben Skeggs <[email protected]>
Date:   Mon Sep 14 13:04:12 2009 +1000

kms: wait for fbcon to be copied before continuing

src/drmmode_display.c +6 -0
index 3010396..e152e7f 100644
@@ -215,6 +215,12 @@ drmmode_fbcon_copy(ScrnInfoPtr pScrn)
 	exa->DoneCopy(pdpix);
 	FIRE_RING (pNv->chan);
 
+	/* wait for completion before continuing, avoids seeing a momentary
+	 * flash of "corruption" on occasion
+	 */
+	nouveau_bo_map(pNv->scanout, NOUVEAU_BO_RDWR);
+	nouveau_bo_unmap(pNv->scanout);
+
 	pScreen->DestroyPixmap(pdpix);
 	pScreen->DestroyPixmap(pspix);
 }
src/nv_driver.c +0 -0
index 9317b5e..645895d 100644

src/nv_driver.c NVPreInitDRM(ScrnInfoPtr pScrn) · line 748

Quoted 8 lines
src/nv_driver.c +2 -0
@@ -741,6 +741,8 @@ NVPreInitDRM(ScrnInfoPtr pScrn)
 	 */
 #ifdef XF86DRM_MODE
 	pNv->kms_enable = !drmCheckModesettingSupported(bus_id);
+	if (pNv->kms_enable)
+	    pScrn->canDoBGNoneRoot = 1;
 #endif
 	xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
 		   "[drm] kernel modesetting %s\n", pNv->kms_enable ?

What does this latter hunk do?
It just seems completely irrelevant wrt. the commit message.

Signature · 2 lines
Pekka Paalanen
http://www.iki.fi/pq/

A message that is not in the archive (sent off-list or not yet received): 20090914202651.2223b5ff-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org

#4 lore raw
Quoted 39 lines · Pekka Paalanen
Quoted 36 lines · On Sun, 13 Sep 2009 20:06:59 -0700 (PDT)…
 src/drmmode_display.c |    6 ++++++
 src/nv_driver.c       |    2 ++
 2 files changed, 8 insertions(+)

New commits:
commit 6c045fc44783454180d7b3d00b5f25436bd5544e

Author: Ben Skeggs <[email protected]>
Date:   Mon Sep 14 13:04:12 2009 +1000

kms: wait for fbcon to be copied before continuing

src/drmmode_display.c +6 -0
index 3010396..e152e7f 100644
@@ -215,6 +215,12 @@ drmmode_fbcon_copy(ScrnInfoPtr pScrn)
 	exa->DoneCopy(pdpix);
 	FIRE_RING (pNv->chan);
 
+	/* wait for completion before continuing, avoids seeing a momentary
+	 * flash of "corruption" on occasion
+	 */
+	nouveau_bo_map(pNv->scanout, NOUVEAU_BO_RDWR);
+	nouveau_bo_unmap(pNv->scanout);
+
 	pScreen->DestroyPixmap(pdpix);
 	pScreen->DestroyPixmap(pspix);
 }
src/nv_driver.c +0 -0
index 9317b5e..645895d 100644
@@ -741,6 +741,8 @@ NVPreInitDRM(ScrnInfoPtr pScrn)
 	 */
 #ifdef XF86DRM_MODE
 	pNv->kms_enable = !drmCheckModesettingSupported(bus_id);
Quoted 8 lines

src/nv_driver.c NVPreInitDRM(ScrnInfoPtr pScrn) · line 748

Quoted 5 lines
src/nv_driver.c +2 -0
+	if (pNv->kms_enable)
+	    pScrn->canDoBGNoneRoot = 1;
 #endif
 	xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
 		   "[drm] kernel modesetting %s\n", pNv->kms_enable ?

What does this latter hunk do?
It just seems completely irrelevant wrt. the commit message.

It's something that's needed for fedora's X server to get the completely smooth transition from plymouth (graphical boot thingo) to gdm. It tells X that the driver supports the transition and stops X from zeroing/filling in the root window on startup.

For whatever reason the patch hasn't made it to the upstream X server as of yet.

Ben.

Quoted 1 line

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 48 lines · On Tue, 15 Sep 2009 10:56:18 +1000 Ben Skeggs…
Quoted 39 lines · Pekka Paalanen
Quoted 36 lines · On Sun, 13 Sep 2009 20:06:59 -0700 (PDT)…
 src/drmmode_display.c |    6 ++++++
 src/nv_driver.c       |    2 ++
 2 files changed, 8 insertions(+)

New commits:
commit 6c045fc44783454180d7b3d00b5f25436bd5544e

Author: Ben Skeggs <[email protected]>
Date:   Mon Sep 14 13:04:12 2009 +1000

kms: wait for fbcon to be copied before continuing

src/drmmode_display.c +6 -0
index 3010396..e152e7f 100644
@@ -215,6 +215,12 @@ drmmode_fbcon_copy(ScrnInfoPtr pScrn)
 	exa->DoneCopy(pdpix);
 	FIRE_RING (pNv->chan);
 
+	/* wait for completion before continuing, avoids seeing a momentary
+	 * flash of "corruption" on occasion
+	 */
+	nouveau_bo_map(pNv->scanout, NOUVEAU_BO_RDWR);
+	nouveau_bo_unmap(pNv->scanout);
+
 	pScreen->DestroyPixmap(pdpix);
 	pScreen->DestroyPixmap(pspix);
 }
src/nv_driver.c +0 -0
index 9317b5e..645895d 100644
@@ -741,6 +741,8 @@ NVPreInitDRM(ScrnInfoPtr pScrn)
 	 */
 #ifdef XF86DRM_MODE
 	pNv->kms_enable = !drmCheckModesettingSupported(bus_id);
Quoted 8 lines

src/nv_driver.c NVPreInitDRM(ScrnInfoPtr pScrn) · line 748

Quoted 5 lines
src/nv_driver.c +2 -0
+	if (pNv->kms_enable)
+	    pScrn->canDoBGNoneRoot = 1;
 #endif
 	xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
 		   "[drm] kernel modesetting %s\n", pNv->kms_enable ?

What does this latter hunk do?
It just seems completely irrelevant wrt. the commit message.

Quoted 7 lines

It's something that's needed for fedora's X server to get the completely smooth transition from plymouth (graphical boot thingo) to gdm. It tells X that the driver supports the transition and stops X from zeroing/filling in the root window on startup.

For whatever reason the patch hasn't made it to the upstream X server as of yet.

Don't we need any version #ifdef's around that?

SparFux reported:
nv_driver.c:745: error: 'struct _ScrnInfoRec' has no member named 'canDoBGNoneRoot'
but I don't know what xorg-server version he has.

My xorg-server from git two days ago has the same failure, but that is expected, I understand.

I hear it also breaks build against 1.6.3.901, and people think that last hunk should be reverted regardless. So I will revert it for now.

Signature · 2 lines
Pekka Paalanen
http://www.iki.fi/pq/