Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2002 14:23:31 -0700 (PDT)
From:      Peter Johnson <freebsd@bilogic.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/37542: XFree86 4.2.0 Server MGA G550 Corrupted HW Cursor (PATCH)
Message-ID:  <200204282123.g3SLNVw51182@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         37542
>Category:       ports
>Synopsis:       XFree86 4.2.0 Server MGA G550 Corrupted HW Cursor (PATCH)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 28 14:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter Johnson
>Release:        4.5-STABLE
>Organization:
>Environment:
FreeBSD powerplant.home.bilogic.org 4.5-STABLE FreeBSD 4.5-STABLE #5: Sat Mar  2 15:21:35 PST 2002
freebsd@bilogic.org:/usr/obj/usr/src/sys/WORKSTATION  i386
>Description:
The MGA driver in XFree86 4.2.0 corrupts the hardware cursor when using
the Matrox G550 card.  The corrupted cursor usually appears as a pair of
sets of vertical lines taking up a 64x64 area instead of the normal
cursor contents.  This makes XFree86 unusable for normal use.
>How-To-Repeat:
Run XFree86 4.2.0 on a Matrox G550 card with the HW cursor enabled.
>Fix:
Workaround:
Add option "hw cursor" "off" to the G550 Device section of the
XF86Config file.  This disables the hardware cursor.

Fix:
This has been fixed in XFree86 CVS, as part of the following patch:
http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c.diff?r1=1.218&r2=1.219
(the specific XFree86 4.2.0 bug number is 98).

As this patch covers a number of bugs, the relevant part of the patch
to this specific bug is:
--- xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c	2002/02/21 02:46:38	1.218
+++ xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c	2002/04/04 14:05:43	1.219
@@ -2794,7 +2794,8 @@ MGAModeInit(ScrnInfoPtr pScrn, DisplayMo
 	    case PCI_CHIP_MGAG200:
 	    case PCI_CHIP_MGAG200_PCI:
 	    case PCI_CHIP_MGAG400:	      
-	      if(pMga->SecondCrtc == FALSE && pMga->HWCursor == TRUE) {
+	    case PCI_CHIP_MGAG550:
+		if(pMga->SecondCrtc == FALSE && pMga->HWCursor == TRUE) {
 		outMGAdac(MGA1064_CURSOR_BASE_ADR_LOW, 
 			  pMga->FbCursorOffset >> 10);
 		outMGAdac(MGA1064_CURSOR_BASE_ADR_HI, 

CAUTION: There are additional complications of adding this patch from a
Ports standpoint.  The XFree86-4-Server port has an option
WITH_MATROX_GXX_DRIVER that contains a patch to the mga_driver.c file
that will be rejected if the above patch is applied first.  The changes
made by the WITH_MATROX_GXX_DRIVER patch are very minor: it adds an
AGPSIZE option.  I'm not sure how this sort of conditional patch
conflict is handled in the ports system.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204282123.g3SLNVw51182>