From avatar@rift.ath.cx  Sat Jan 11 15:48:58 2003
Return-Path: <avatar@rift.ath.cx>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E7EAB37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Jan 2003 15:48:58 -0800 (PST)
Received: from rift.ath.cx (h23n2fls32o836.telia.com [217.208.105.23])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 12E4E43F18
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Jan 2003 15:48:58 -0800 (PST)
	(envelope-from avatar@rift.ath.cx)
Received: from rift.ath.cx (localhost [127.0.0.1])
	by rift.ath.cx (8.12.6/8.12.6) with ESMTP id h0BNmo7e044430
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Jan 2003 00:48:56 +0100 (CET)
	(envelope-from avatar@rift.ath.cx)
Received: (from avatar@localhost)
	by rift.ath.cx (8.12.6/8.12.6/Submit) id h0BNmo0S044420;
	Sun, 12 Jan 2003 00:48:50 +0100 (CET)
Message-Id: <200301112348.h0BNmo0S044420@rift.ath.cx>
Date: Sun, 12 Jan 2003 00:48:50 +0100 (CET)
From: David Holm <david@realityrift.com>
Reply-To: David Holm <david@realityrift.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Support for AGP on Apollo Pro 133A
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46983
>Category:       kern
>Synopsis:       Support for AGP on Apollo Pro 133A
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 11 15:50:03 PST 2003
>Closed-Date:    Mon Jun 23 04:15:55 PDT 2003
>Last-Modified:  Mon Jun 23 04:15:55 PDT 2003
>Originator:     David Holm
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD rift.ath.cx 4.7-STABLE FreeBSD 4.7-STABLE #2: Sat Jan 11 21:49:35 CET 2003 avatar@rift.ath.cx:/usr/src/sys/compile/MYKERNEL i386


	
>Description:
	
The FreeBSD kernel fully supports the Apollo Pro 133A (as it supports the Apollo Pro) but the PCI ID is missing from src/sys/pci/agp_via.c
If you add the following lines owners of Apollo Pro 133A (such as me) will be able to use nVidia OpenGL without system reboots or data corruption:

case 0x06051106:
	return ("VIA 82C694X (Apollo Pro 133A) host to PCI bridge");

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:

From: David Holm <david@realityrift.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/46983: Support for AGP on Apollo Pro 133A
Date: Tue, 14 Jan 2003 16:44:55 +0100

 With the standard agp module preloaded I get the following:
 
 pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND
 
 With my modified version I get:
 
 Preloaded elf module "/boot/kernel/agp.ko" at 0xc0551154.
 agp0: <VIA 82C694X (Apollo Pro 133A) host to PCI bridge> mem 0xe0000000-0xefffffff at device 0.0
 on pci0 pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND
 
 I added some debug output to agp_via.c to see what was going on:
 
 agp0: id is 0x6051106              (<- it prints the device id returned by pci_get_devid(dev))
 After this follows:
 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
 pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND
 pci1: <ACPI PCI bus> on pcib1
 pci1: <display, VGA> at device 0.0 (no driver attached)
 
 It seems it never enters the generic but goes past it and returns NULL. (I even modified the
 line to and the result of pci_get_vendor(dev) with 0xffff)
 
 I have an Asus CUV4X which has the Apollo Pro 133A chipset, confirmed by acpi:
 acpi0: <ASUS   CUV4X   > on motherboard
State-Changed-From-To: open->closed 
State-Changed-By: mdodd 
State-Changed-When: Mon Jun 23 04:15:36 PDT 2003 
State-Changed-Why:  
Committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46983 
>Unformatted:
