From owner-freebsd-questions Thu Apr 19 21:11: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.hutchtel.net (ns1.hutchtel.net [206.9.112.100]) by hub.freebsd.org (Postfix) with ESMTP id B27F737B422 for ; Thu, 19 Apr 2001 21:10:54 -0700 (PDT) (envelope-from jpaetzel@hutchtel.net) Received: from mark9 (hutch-631.hutchtel.net [206.10.68.159]) by ns1.hutchtel.net (8.9.1/8.9.0) with SMTP id XAA09455; Thu, 19 Apr 2001 23:10:45 -0500 (CDT) Message-ID: <002201c0ca19$2883e6e0$6100000a@vladsempire.net> From: "Josh Paetzel" To: "Steven D. Smith" Cc: References: <200104191337.JAA28076@gate1.health.state.ny.us> Subject: Re: ATI Radeon VE and Xfree 4.0.3 Date: Fri, 20 Apr 2001 23:09:56 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0007_01C0C9EF.03C3BC60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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" To: "Josh Paetzel" Cc: 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