Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2001 23:09:56 -0500
From:      "Josh Paetzel" <jpaetzel@hutchtel.net>
To:        "Steven D. Smith" <sds07@health.state.ny.us>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: ATI Radeon VE and Xfree 4.0.3
Message-ID:  <002201c0ca19$2883e6e0$6100000a@vladsempire.net>
References:  <200104191337.JAA28076@gate1.health.state.ny.us>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C0C9EF.03C3BC60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


----- Original Message -----
From: "Steven D. Smith" <sds07@health.state.ny.us>
To: "Josh Paetzel" <jpaetzel@hutchtel.net>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Thursday, April 19, 2001 8:37 AM
Subject: Re: ATI Radeon VE and Xfree 4.0.3


>
>
> I'm having a similar problem... I just havn't had anytime to work on
it... Oh...
> but I using Suse 7.0... not Freebsd on this box... But if you can
get it
> working, I'll switch this box too!
>
>

Hmmm, I've got mine working now, but it's not for the faint of heart.
;)
I found some patches that you can apply to X to get it to work,
although
the patches didn't go the way the author said they would, I suspect
it's because
he was on a linux box and I am on FreeBSD.

Sorry about the wierd formats and stuff here, but I had to grab my
mail from a
windows box and stuff, so some of this is all b0rked up.

Apply the radeon_driver.c.txt patch first, then the
radeon_driver.c2.txt patch next.  These
patches are applied to
/usr/ports/x11/XFree86-4/work/xc/programs/Xserver/hw/xfree86/drivers/a
ti/radeon_driver.c

Then do radeon_probe.c.txt.  The file is in the same directory as
above.

I couldn't find a radeon_screen.c on my system, but it seems to work
fine without it.

Lastly you can do xf86PciInfo.h.txt to
/usr/ports/x11/XFree86-4/work/xc/programs/Xserver/hw/xfree86/common/xf
86PciInfo.h

To get it all to go I did a make deinstall and then a make reinstall.

I haven't played with getting the second display running as of yet,
but putting in driver "radeon" into my xconfig was all I needed to get
the Xserver to start with my new card.

Hope this helps.  Sorry for the ugly formatting and so forth.

Josh




------=_NextPart_000_0007_01C0C9EF.03C3BC60
Content-Type: text/plain;
	name="radeon_driver.c.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="radeon_driver.c.txt"

--- =
xc-original/xc/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c=
	Thu Apr  5 18:16:11 2001
+++ xc/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c	Fri =
Apr  6 16:06:37 2001
@@ -855,6 +855,7 @@
     case PCI_CHIP_RADEON_QE:
     case PCI_CHIP_RADEON_QF:
     case PCI_CHIP_RADEON_QG:
+    case PCI_CHIP_RADEON_VE:
     default:                 info->HasPanelRegs =3D FALSE; break;
     }
 #endif
@@ -946,6 +947,7 @@
 	case PCI_CHIP_RADEON_QE:
 	case PCI_CHIP_RADEON_QF:
 	case PCI_CHIP_RADEON_QG:
+	case PCI_CHIP_RADEON_VE:
 	default:                 info->IsPCI =3D FALSE; break;
 	}
     }

------=_NextPart_000_0007_01C0C9EF.03C3BC60
Content-Type: text/plain;
	name="radeon_driver.c2.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="radeon_driver.c2.txt"

--- =
xc-original/xc/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c=
  Sun Apr 15 01:54:05 2001
+++ xc/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c       =
Sun Apr 15 01:53:32 2001
@@ -2386,7 +2386,11 @@
                             ? RADEON_CRTC_INTERLACE_EN
                             : 0));
=20
-    save->crtc_ext_cntl =3D RADEON_VGA_ATI_LINEAR | RADEON_XCRT_CNT_EN;
+    if (info->Chipset =3D=3D PCI_CHIP_RADEON_VE) {
+        save->crtc_ext_cntl =3D RADEON_VGA_ATI_LINEAR | =
RADEON_CRTC_CRT_ON;
+    } else {
+        save->crtc_ext_cntl =3D RADEON_VGA_ATI_LINEAR | =
RADEON_XCRT_CNT_EN;
+    }
     save->dac_cntl      =3D (RADEON_DAC_MASK_ALL
                           | RADEON_DAC_VGA_ADR_EN
                           | (info->dac6bits ? 0 : RADEON_DAC_8BIT_EN));
------=_NextPart_000_0007_01C0C9EF.03C3BC60
Content-Type: text/plain;
	name="radeon_probe.c.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="radeon_probe.c.txt"

--- =
xc-original/xc/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_probe.c	=
Mon Mar 19 16:39:08 2001
+++ xc/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_probe.c	Fri Apr =
 6 16:07:29 2001
@@ -52,6 +52,7 @@
     { PCI_CHIP_RADEON_QE, "ATI Radeon QE (AGP)" },
     { PCI_CHIP_RADEON_QF, "ATI Radeon QF (AGP)" },
     { PCI_CHIP_RADEON_QG, "ATI Radeon QG (AGP)" },
+    { PCI_CHIP_RADEON_VE, "ATI Radeon VE (AGP)" },
     { -1,                 NULL }
 };
=20
@@ -60,6 +61,7 @@
     { PCI_CHIP_RADEON_QE, PCI_CHIP_RADEON_QE, RES_SHARED_VGA },
     { PCI_CHIP_RADEON_QF, PCI_CHIP_RADEON_QF, RES_SHARED_VGA },
     { PCI_CHIP_RADEON_QG, PCI_CHIP_RADEON_QG, RES_SHARED_VGA },
+    { PCI_CHIP_RADEON_VE, PCI_CHIP_RADEON_VE, RES_SHARED_VGA },
     { -1,                 -1,                 RES_UNDEFINED }
 };
=20

------=_NextPart_000_0007_01C0C9EF.03C3BC60
Content-Type: text/plain;
	name="radeon_screen.c.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="radeon_screen.c.txt"

--- xc-original/xc/xc/lib/GL/mesa/src/drv/radeon/radeon_screen.c	Wed Mar =
14 19:23:27 2001
+++ xc/xc/lib/GL/mesa/src/drv/radeon/radeon_screen.c	Fri Apr  6 16:05:25 =
2001
@@ -51,6 +51,7 @@
 #define PCI_CHIP_RADEON_QE	0x5145
 #define PCI_CHIP_RADEON_QF	0x5146
 #define PCI_CHIP_RADEON_QG	0x5147
+#define PCI_CHIP_RADEON_VE	0x5159
 #endif
=20
=20
@@ -122,6 +123,7 @@
    case PCI_CHIP_RADEON_QE:
    case PCI_CHIP_RADEON_QF:
    case PCI_CHIP_RADEON_QG:
+   case PCI_CHIP_RADEON_VE:
       radeonScreen->chipset =3D RADEON_CARD_TYPE_RADEON;
       break;
    default:

------=_NextPart_000_0007_01C0C9EF.03C3BC60
Content-Type: text/plain;
	name="xf86PciInfo.h.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="xf86PciInfo.h.txt"

--- xc-original/xc/xc/programs/Xserver/hw/xfree86/common/xf86PciInfo.h	=
Mon Mar 19 16:39:06 2001
+++ xc/xc/programs/Xserver/hw/xfree86/common/xf86PciInfo.h	Fri Apr  6 =
16:07:50 2001
@@ -238,6 +238,7 @@
 #define PCI_CHIP_RADEON_QE	0x5145
 #define PCI_CHIP_RADEON_QF	0x5146
 #define PCI_CHIP_RADEON_QG	0x5147
+#define PCI_CHIP_RADEON_VE	0x5159
 #define PCI_CHIP_RAGE128RE	0x5245
 #define PCI_CHIP_RAGE128RF	0x5246
 #define PCI_CHIP_RAGE128RG	0x5247

------=_NextPart_000_0007_01C0C9EF.03C3BC60--


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002201c0ca19$2883e6e0$6100000a>