[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#275756: Subject: kernel-source-2.6.8: agpgart fails to detect VIA PT880 chipset (PCI_ID defined incorrectly?)



Package: kernel-source-2.6.8
Version: 2.6.8-7
Severity: normal

I am using an ABIT VT7 main board with VIA PT880 agp controller and
Nvidia geForce5700LE.  agpgart did not recognize said controlled when
modprobed (i. e. didn't print any messages to dmesg excpet 'Linux
agpgart interface v0.100 (c) Dave Jones'), and nvidia's proprietary
driver reported (cat /proc/driver/nvidia/agp/status) agp status as
disabled.  By editing some lines in the kernel source I was able to get
agpgart to see my chipset. Whether this was the 'right' way to do it or
not I have no idea.  I'll go through the process I followed below.

An lspci showed the following devices (note what comes first- usually
the agp controler; in this case it is reporting an ID of 0x0258):

0000:00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 0258
0000:00:00.1 Host bridge: VIA Technologies, Inc.: Unknown device 1258
0000:00:00.2 Host bridge: VIA Technologies, Inc.: Unknown device 2258
0000:00:00.3 Host bridge: VIA Technologies, Inc.: Unknown device 3258
0000:00:00.4 Host bridge: VIA Technologies, Inc.: Unknown device 4258
0000:00:00.7 Host bridge: VIA Technologies, Inc.: Unknown device 7258
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
0000:00:0a.0 Network controller: Intersil Corporation Intersil ISL3890
[Prism GT/Prism Duette] (rev 01)
0000:00:0c.0 USB Controller: NEC Corporation USB (rev 41)
0000:00:0c.1 USB Controller: NEC Corporation USB (rev 41)
0000:00:0c.2 USB Controller: NEC Corporation USB 2.0 (rev 02)
0000:00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA
RAID Controller (rev 80)
0000:00:0f.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge
[K8T800 South]0000:00:11.5 Multimedia audio controller: VIA
Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102
[Rhine-II] (rev 78)
0000:01:00.0 VGA compatible controller: nVidia Corporation: Unknown
device 0343 (rev a1)

In the kernel-2.6.8 source tree in include/linux/pci_ids.h, the
following two relevant IDS are defined:
#define PCI_DEVICE_ID_NVIDIA_QUADRO4_900XGL     0x0258
#define PCI_DEVICE_ID_VIA_PT880         0x3258

Since I assumed I did not have an Nvidia Quadro4900XGL (whatever that
is) for an AGP controller I modified the two lines as follows:
#define PCI_DEVICE_ID_NVIDIA_QUADRO4_900XGL     0x0000 (just to get rid
of it and let modules I'm not using still compile)
#define PCI_DEVICE_ID_VIA_PT880         0x0258 (to match my lspci)

I then make-kpkg'd a kernel-image out of this and now get the following
lines from agpgart in dmesg:
agpgart: Detected VIA PT880 chipset
agpgart: Maximum main memory to use for agp memory: 941M
agpgart: AGP aperture is 128M @ 0xe0000000
agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode

nvidia's driver concurs and shows agp enabled.

It may be that I just have an odd motherboard but this really smelled
like a bug so hopefully someone will know what to do with it.  Let me
know if you need any other /more detailed info.

Thanks for your time,
Charles
charles.bailey@tufts.edu

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=C, LC_CTYPE=C

Versions of packages kernel-source-2.6.8 depends on:
ii  binutils                      2.15-4     The GNU assembler, linker
and bina
ii  bzip2                         1.0.2-1    A high-quality
block-sorting file
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities

-- no debconf information





Reply to: