Problems with agpgart on MVP3

2000-10-16 Thread Ed McKenzie


On a RedHat 7.0 stock kernel, agpgart finds the AGP aperture the first
time it's loaded, but if it's unloaded and reloaded, it gets confused
and seems to think the aperture is located at 0. At this point,
starting the Xserver (3.x or 4.x) or loading DRM drivers manually
freezes the system. SysRq doesn't work.

This is on an Epox MVPG3-M board (VIA MVP3 chipset) running an AMD
K6-2/400 and a Matrox G200 accelerator. I've tried this on RedHat
6.2's most recent kernel as well as a few 2.4.0-testX kernels, and the
result is readily reproducible on all versions of the
kernel. matroxfb/vesafb don't seem to affect this problem either way.  

relevant dmesg output and lspci -v are attached.

Please cc: me, as I'm not subscribed to this list.

-ed



00:00.0 Host bridge: VIA Technologies, Inc. VT82C597 [Apollo VP3] (rev 04)
Flags: bus master, medium devsel, latency 16
Memory at e000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3 AGP] (prog-if 00 
[Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: c000-cfff
Memory behind bridge: e400-e7ff
Prefetchable memory behind bridge: e800-e8ff

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Apollo PRO] (rev 06)
Subsystem: VIA Technologies, Inc. VT82C596/A/B PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586 IDE [Apollo] (rev 06) (prog-if 
8a [Master SecP PriP])
Flags: bus master, medium devsel, latency 64
I/O ports at d000

00:07.2 USB Controller: VIA Technologies, Inc. VT82C586B USB (rev 02) (prog-if 00 
[UHCI])
Subsystem: Unknown device 0925:1234
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at d400

00:07.3 Host bridge: VIA Technologies, Inc.: Unknown device 3050
Flags: medium devsel

00:08.0 SCSI storage controller: Initio Corporation 360P (rev 02)
Subsystem: Unknown device 9292:0202
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at d800
Memory at ea00 (32-bit, non-prefetchable)
Expansion ROM at e900 [disabled]

00:0a.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V, AudioPCI128
Flags: bus master, slow devsel, latency 64, IRQ 12
I/O ports at dc00
Capabilities: [dc] Power Management version 1

00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
Subsystem: Realtek Semiconductor Co., Ltd. RT8029(AS)
Flags: medium devsel, IRQ 5
I/O ports at e000

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200 AGP (rev 01) 
(prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. Millennium G200 AGP
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at e800 (32-bit, prefetchable)
Memory at e400 (32-bit, non-prefetchable)
Memory at e500 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 1
Capabilities: [f0] AGP version 1.0



Linux version 2.2.16-22 ([EMAIL PROTECTED]) (gcc version egcs-2.91.66 
19990314/Linux (egcs-1.1.2 release)) #1 Tue Aug 22 16:16:55 EDT 2000
Detected 400913 kHz processor.
ide_setup: ide0=dma
ide_setup: ide1=dma
Console: colour VGA+ 80x25
Calibrating delay loop... 799.54 BogoMIPS
Memory: 127376k/131072k available (1048k kernel code, 408k reserved, 1728k data, 64k 
init, 0k bigmem)
Dentry hash table entries: 262144 (order 9, 2048k)
Buffer cache hash table entries: 131072 (order 7, 512k)
Page cache hash table entries: 32768 (order 5, 128k)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: L1 I Cache: 32K  L1 D Cache: 32K
CPU: AMD AMD-K6(tm) 3D processor stepping 0c
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.35a (19990819) Richard Gooch ([EMAIL PROTECTED])
PCI: PCI BIOS revision 2.10 entry at 0xfb4d0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: 00:38 [1106/0596]: Work around ISA DMA hangs (00)
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
TCP: Hash tables configured (ehash 131072 bhash 65536)
Linux IP multicast router 0.06 plus PIM-SM
Initializing RT netlink socket
Starting kswapd v 1.5 
Detected PS/2 Mouse Port.
Serial driver version 4.27 with MANY_PORTS MULTIPORT SHARE_IRQ enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 

Problems with agpgart on MVP3

2000-10-16 Thread Ed McKenzie


On a RedHat 7.0 stock kernel, agpgart finds the AGP aperture the first
time it's loaded, but if it's unloaded and reloaded, it gets confused
and seems to think the aperture is located at 0. At this point,
starting the Xserver (3.x or 4.x) or loading DRM drivers manually
freezes the system. SysRq doesn't work.

This is on an Epox MVPG3-M board (VIA MVP3 chipset) running an AMD
K6-2/400 and a Matrox G200 accelerator. I've tried this on RedHat
6.2's most recent kernel as well as a few 2.4.0-testX kernels, and the
result is readily reproducible on all versions of the
kernel. matroxfb/vesafb don't seem to affect this problem either way.  

relevant dmesg output and lspci -v are attached.

Please cc: me, as I'm not subscribed to this list.

-ed



00:00.0 Host bridge: VIA Technologies, Inc. VT82C597 [Apollo VP3] (rev 04)
Flags: bus master, medium devsel, latency 16
Memory at e000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3 AGP] (prog-if 00 
[Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: c000-cfff
Memory behind bridge: e400-e7ff
Prefetchable memory behind bridge: e800-e8ff

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Apollo PRO] (rev 06)
Subsystem: VIA Technologies, Inc. VT82C596/A/B PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586 IDE [Apollo] (rev 06) (prog-if 
8a [Master SecP PriP])
Flags: bus master, medium devsel, latency 64
I/O ports at d000

00:07.2 USB Controller: VIA Technologies, Inc. VT82C586B USB (rev 02) (prog-if 00 
[UHCI])
Subsystem: Unknown device 0925:1234
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at d400

00:07.3 Host bridge: VIA Technologies, Inc.: Unknown device 3050
Flags: medium devsel

00:08.0 SCSI storage controller: Initio Corporation 360P (rev 02)
Subsystem: Unknown device 9292:0202
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at d800
Memory at ea00 (32-bit, non-prefetchable)
Expansion ROM at e900 [disabled]

00:0a.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V, AudioPCI128
Flags: bus master, slow devsel, latency 64, IRQ 12
I/O ports at dc00
Capabilities: [dc] Power Management version 1

00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
Subsystem: Realtek Semiconductor Co., Ltd. RT8029(AS)
Flags: medium devsel, IRQ 5
I/O ports at e000

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200 AGP (rev 01) 
(prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. Millennium G200 AGP
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at e800 (32-bit, prefetchable)
Memory at e400 (32-bit, non-prefetchable)
Memory at e500 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 1
Capabilities: [f0] AGP version 1.0



Linux version 2.2.16-22 ([EMAIL PROTECTED]) (gcc version egcs-2.91.66 
19990314/Linux (egcs-1.1.2 release)) #1 Tue Aug 22 16:16:55 EDT 2000
Detected 400913 kHz processor.
ide_setup: ide0=dma
ide_setup: ide1=dma
Console: colour VGA+ 80x25
Calibrating delay loop... 799.54 BogoMIPS
Memory: 127376k/131072k available (1048k kernel code, 408k reserved, 1728k data, 64k 
init, 0k bigmem)
Dentry hash table entries: 262144 (order 9, 2048k)
Buffer cache hash table entries: 131072 (order 7, 512k)
Page cache hash table entries: 32768 (order 5, 128k)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: L1 I Cache: 32K  L1 D Cache: 32K
CPU: AMD AMD-K6(tm) 3D processor stepping 0c
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.35a (19990819) Richard Gooch ([EMAIL PROTECTED])
PCI: PCI BIOS revision 2.10 entry at 0xfb4d0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: 00:38 [1106/0596]: Work around ISA DMA hangs (00)
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
TCP: Hash tables configured (ehash 131072 bhash 65536)
Linux IP multicast router 0.06 plus PIM-SM
Initializing RT netlink socket
Starting kswapd v 1.5 
Detected PS/2 Mouse Port.
Serial driver version 4.27 with MANY_PORTS MULTIPORT SHARE_IRQ enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2