* PCI devices causing machine lockups on SX164
@ 2000-03-31 0:37 Andreas Johansson
2000-03-31 14:01 ` Ivan Kokshaysky
2000-04-11 19:12 ` Richard Henderson
0 siblings, 2 replies; 7+ messages in thread
From: Andreas Johansson @ 2000-03-31 0:37 UTC (permalink / raw)
To: Red Hat Alpha mailing list
Hello!
I apologize for this long mail, but I have a very strange problem. If you
don't know your low-level PCI and/or kernel hacking, feel free to delete
this mail.
--
I've got a problem with my 164SX machine and PCI using Linux 2.3.47. Newer
versions of linux kernels did not compile for me. The machine has these
PCI units:
o Matrox Mystique (MGA 1064SG) VGA card
o Symbios logic (ncr 53c875) UW SCSI card
o Addtron (digital 21140) 10/100Mb network card
o Brooktree WinTV (Bt878) card
o Cypress (82c693) PCI IDE built into motherboard
o AOpen AW37 (Crystal cs4235) ISA PnP audio card behind
Cypress PCI->ISA bridge
The problem is that my machine locks up or if I'm lucky the WinTV card
stops to function correctly. Under "normal operation" using VGA, SCSI and
network the machine is stable. If I add one of {WinTV|IDE|audio} to
"normal operation" above, everything works just fine. If I use IDE and
audio at the same time I get bad audio output (see below). Lockups occur
spuriously when I:
1) use the WinTV card and the built IDE controller at the same time.
2) use the WinTV and sound cards at the same time.
When my WinTV card stops to function but the machine survives, error
messages of this sort pop out of the kernel:
PYXIS PCI machine check: err0=06400206 err1=c44ec42d err2=c44ec42d
I've seen a similar PCI machine check at tulip load time too (see below).
There are no hints in the kernel source about this. What does it mean, why
do they occur, and are they related to my lockups?
The odd thing with the IDE controller and the PCI->ISA bridge is that
both of them have the latency timer set to 0. However in the PCI
registers, the PCI_COMMAND_MASTER bit is set to enable bus mastering.
If I remember my PCI correctly this is supposed to mean that any other
unit may interrupt each PCI transfer coming from this device at any time.
The Pyxis PCI chipset obviously doesn't comply to this, instead it lets
those devices make as long transfers as they like without any arbitration.
I know this because high speed DMA to the Cypress IDE controller starves
other PCI units from the bus. If I do 64kB block DMA from the disk and
play audio at the same time, the audio output is garbled by FIFO underrun
in the audio card's DMA. It sounds a little as if the audio is played at
a too low and instable sample rate.
As the PCI chipset is not aborting the transfer, this means that the IDE
controller may transfer a maximum of 64kB of data for block IDE transfers
in one PCI transfer! I have tried to change the latency timer on both the
IDE controller and the PCI->ISA bridge, but they are both hardcoded to 0.
Great.
There is one more way to limit the PCI transfer sizes, and this is using
the master latency timer. It is by default set to 65280 and I've tried to
change this to a much lower value, 32. This actually solves the problem
of bad audio in combination with IDE. However, it makes the machine lockup
even easier as soon as I start X.
The WinTV card generates quite an amount of traffic on the PCI bus as it
is able to overlay a possibly scaled TV image directly onto the graphics
card. I'm guessing it doesn't know what to do if it can't get access to
the PCI bus quick enough.
I guess I can live without the crappy IDE controller, but I really want
my WinTV and audio cards to work simultaneously. If anyone has some hint
regarding how to solve this problem, please let me know. Below are
printouts of /proc/pci and kernel messages.
---- /proc/pci ----
PCI devices found:
Bus 0, device 5, function 0:
Multimedia video controller: Brooktree Corporation Bt878 (rev 17).
IRQ 25.
Master Capable. Latency=32. Min Gnt=16.Max Lat=40.
Prefetchable 32 bit memory at 0x9000000 [0x9000fff].
Bus 0, device 5, function 1:
Multimedia controller: Brooktree Corporation Bt878 (rev 17).
IRQ 25.
Master Capable. Latency=32. Min Gnt=4.Max Lat=255.
Prefetchable 32 bit memory at 0x9001000 [0x9001fff].
Bus 0, device 6, function 0:
SCSI storage controller: Symbios Logic Inc. (formerly NCR) 53c875 (rev 3).
IRQ 27.
Master Capable. Latency=32. Min Gnt=17.Max Lat=64.
I/O at 0x8000 [0x80ff].
Non-prefetchable 32 bit memory at 0x9002000 [0x90020ff].
Non-prefetchable 32 bit memory at 0x9003000 [0x9003fff].
Bus 0, device 7, function 0:
Ethernet controller: Digital Equipment Corporation DECchip 21140 [FasterNet] (rev 34).
IRQ 26.
Master Capable. Latency=32. Min Gnt=20.Max Lat=40.
I/O at 0x8800 [0x887f].
Non-prefetchable 32 bit memory at 0x9004000 [0x900407f].
Bus 0, device 8, function 0:
ISA bridge: Contaq Microsystems 82c693 (rev 0).
Bus 0, device 8, function 1:
IDE interface: Contaq Microsystems 82c693 (#2) (rev 0).
I/O at 0x1f0 [0x1f7].
I/O at 0x3f6 [0x3f6].
I/O at 0x9000 [0x900f].
Bus 0, device 8, function 2:
IDE interface: Contaq Microsystems 82c693 (#3) (rev 0).
I/O at 0x170 [0x177].
I/O at 0x376 [0x376].
Non-prefetchable 32 bit memory at 0x3060000 [0x306ffff].
Bus 0, device 8, function 3:
USB Controller: Contaq Microsystems 82c693 (#4) (rev 0).
Master Capable. Latency=32.
Non-prefetchable 32 bit memory at 0x3077000 [0x3077fff].
Bus 0, device 9, function 0:
VGA compatible controller: Matrox Graphics, Inc. MGA 1064SG [Mystique] (rev 3).
IRQ 24.
Master Capable. Latency=32.
Prefetchable 32 bit memory at 0x9800000 [0x9ffffff].
Non-prefetchable 32 bit memory at 0x9008000 [0x900bfff].
Non-prefetchable 32 bit memory at 0xa000000 [0xa7fffff].
---- boot messages ----
Mar 30 01:06:49 ymer kernel: Linux version 2.3.47 (root@ymer) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #9 Sun Mar 19 23:32:48 CET 2000
Mar 30 01:06:49 ymer kernel: Booting on EB164 variation SX164 using machine vector SX164 from MILO
Mar 30 01:06:49 ymer kernel: Command line: bootdevice=sda6 bootfile=boot/vmlinuz root=/dev/sda6 console=ttyS0
Mar 30 01:06:49 ymer kernel: memcluster 0, usage 2, start 0, end 1
Mar 30 01:06:49 ymer kernel: memcluster 1, usage 0, start 1, end 222
Mar 30 01:06:49 ymer kernel: memcluster 2, usage 2, start 222, end 224
Mar 30 01:06:49 ymer kernel: memcluster 3, usage 0, start 224, end 256
Mar 30 01:06:49 ymer kernel: memcluster 4, usage 2, start 256, end 328
Mar 30 01:06:49 ymer kernel: memcluster 5, usage 0, start 328, end 384
Mar 30 01:06:49 ymer kernel: memcluster 6, usage 2, start 384, end 699
Mar 30 01:06:49 ymer kernel: memcluster 7, usage 0, start 699, end 16384
Mar 30 01:06:49 ymer kernel: freeing pages 699:16384
Mar 30 01:06:49 ymer kernel: PYXIS: Enabling broken tbia workaround.
Mar 30 01:06:49 ymer kernel: On node 0 totalpages: 16384
Mar 30 01:06:49 ymer kernel: zone(0): 16384 pages.
Mar 30 01:06:49 ymer kernel: zone(1): 0 pages.
Mar 30 01:06:49 ymer kernel: zone(2): 0 pages.
Mar 30 01:06:49 ymer kernel: Console: colour VGA+ 80x25
Mar 30 01:06:49 ymer kernel: Calibrating delay loop... 528.48 BogoMIPS
Mar 30 01:06:49 ymer kernel: Memory: 122992k/131072k available (1167k kernel code, 4960k reserved, 299k data, 216k init)
Mar 30 01:06:49 ymer kernel: Buffer-cache hash table entries: 8192 (order: 3, 65536 bytes)
Mar 30 01:06:49 ymer kernel: Page-cache hash table entries: 16384 (order: 4, 131072 bytes)
Mar 30 01:06:49 ymer kernel: POSIX conformance testing by UNIFIX
Mar 30 01:06:49 ymer kernel: PCI: No parent found for region 4 of device Contaq Microsystems 82c693 (#2)
Mar 30 01:06:49 ymer kernel: SMC37c669 Super I/O Controller found @ 0x3f0
Mar 30 01:06:49 ymer kernel: Linux NET4.0 for Linux 2.3
Mar 30 01:06:49 ymer kernel: Based upon Swansea University Computer Society NET3.039
Mar 30 01:06:49 ymer kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Mar 30 01:06:49 ymer kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Mar 30 01:06:49 ymer kernel: IP Protocols: ICMP, UDP, TCP, IGMP
Mar 30 01:06:49 ymer atd: atd startup succeeded
Mar 30 01:06:49 ymer kernel: IP: routing cache hash table of 1024 buckets, 16Kbytes
Mar 30 01:06:49 ymer kernel: TCP: Hash tables configured (established 8192 bind 8192)
Mar 30 01:06:49 ymer kernel: Initializing RT netlink socket
Mar 30 01:06:49 ymer kernel: Starting kswapd v1.6
Mar 30 01:06:49 ymer kernel: initialize_kbd: Keyboard reset failed, no ACK
Mar 30 01:06:49 ymer kernel: Serial driver version 4.92 (2000-1-27) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Mar 30 01:06:49 ymer kernel: keyboard: Timeout - AT keyboard not present?
Mar 30 01:06:49 ymer kernel: keyboard: Timeout - AT keyboard not present?
Mar 30 01:06:49 ymer kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
Mar 30 01:06:49 ymer kernel: ttyS01 at 0x02f8 (irq = 3) is a 16550A
Mar 30 01:06:50 ymer kernel: pty: 256 Unix98 ptys configured
Mar 30 01:06:50 ymer kernel: Uniform Multi-Platform E-IDE driver Revision: 6.30
Mar 30 01:06:50 ymer kernel: CY82C693: IDE controller on PCI bus 00 dev 41
Mar 30 01:06:50 ymer kernel: CY82C693: not 100% native mode: will probe irqs later
Mar 30 01:06:50 ymer kernel: CY82C693U driver v0.34 99-09-03 Andreas S. Krebs (akrebs@altavista.net)
Mar 30 01:06:50 ymer kernel: ide0: BM-DMA at 0x9000-0x9007, BIOS settings: hda:DMA, hdb:DMA
Mar 30 01:06:50 ymer kernel: ide1: BM-DMA at 0x9008-0x900f, BIOS settings: hdc:pio, hdd:DMA
Mar 30 01:06:50 ymer kernel: hda: IBM-DHEA-36480, ATA DISK drive
Mar 30 01:06:50 ymer kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Mar 30 01:06:50 ymer kernel: hda: IBM-DHEA-36480, 6197MB w/476kB Cache, CHS=12592/16/63, (U)DMA
Mar 30 01:06:50 ymer kernel: Partition check:
Mar 30 01:06:50 ymer kernel: hda: hda1
Mar 30 01:06:50 ymer kernel: ncr53c8xx: at PCI bus 0, device 6, function 0
Mar 30 01:06:50 ymer kernel: ncr53c8xx: 53c875 detected with Symbios NVRAM
Mar 30 01:06:50 ymer kernel: ncr53c875-0: rev 0x3 on pci bus 0 device 6 function 0 irq 27
Mar 30 01:06:50 ymer kernel: ncr53c875-0: Symbios format NVRAM, ID 7, Fast-20, Parity Checking
Mar 30 01:06:50 ymer kernel: ncr53c875-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/46/a0/00/00/24
Mar 30 01:06:50 ymer kernel: ncr53c875-0: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/46/a0/00/08/24
Mar 30 01:06:50 ymer kernel: ncr53c875-0: on-chip RAM at 0x9003000
Mar 30 01:06:50 ymer kernel: ncr53c875-0: resetting, command processing suspended for 2 seconds
Mar 30 01:06:50 ymer kernel: ncr53c875-0: restart (scsi reset).
Mar 30 01:06:50 ymer kernel: ncr53c875-0: enabling clock multiplier
Mar 30 01:06:50 ymer kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Mar 30 01:06:50 ymer kernel: scsi0 : ncr53c8xx - version 3.2e
Mar 30 01:06:50 ymer kernel: scsi : 1 host.
Mar 30 01:06:50 ymer kernel: ncr53c875-0: command processing resumed
Mar 30 01:06:50 ymer kernel: Vendor: SEAGATE Model: ST34572W Rev: 0784
Mar 30 01:06:50 ymer kernel: Type: Direct-Access ANSI SCSI revision: 02
Mar 30 01:06:50 ymer kernel: Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Mar 30 01:06:50 ymer kernel: Vendor: PIONEER Model: DVD-ROM DVD-303 Rev: 1.10
Mar 30 01:06:50 ymer crond: crond startup succeeded
Mar 30 01:06:50 ymer kernel: Type: CD-ROM ANSI SCSI revision: 02
Mar 30 01:06:50 ymer kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 2, lun 0
Mar 30 01:06:50 ymer kernel: Vendor: MATSHITA Model: CD-R CW-7502 Rev: 4.17
Mar 30 01:06:50 ymer kernel: Type: CD-ROM ANSI SCSI revision: 02
Mar 30 01:06:50 ymer kernel: Detected scsi CD-ROM sr1 at scsi0, channel 0, id 6, lun 0
Mar 30 01:06:50 ymer kernel: ncr53c875-0-<0,0>: tagged command queue depth set to 8
Mar 30 01:06:50 ymer kernel: scsi : detected 2 SCSI cdroms 1 SCSI disk total.
Mar 30 01:06:50 ymer kernel: ncr53c875-0-<2,*>: FAST-20 SCSI 20.0 MB/s (50 ns, offset 8)
Mar 30 01:06:50 ymer kernel: sr0: scsi3-mmc drive: 0x/0x cd/rw xa/form2 cdda tray
Mar 30 01:06:50 ymer kernel: Uniform CD-ROM driver Revision: 3.06
Mar 30 01:06:50 ymer kernel: ncr53c875-0-<6,*>: FAST-10 SCSI 10.0 MB/s (100 ns, offset 8)
Mar 30 01:06:50 ymer kernel: sr1: scsi3-mmc drive: 8x/8x writer xa/form2 cdda tray
Mar 30 01:06:50 ymer kernel: ncr53c875-0-<0,*>: WIDE SCSI (16 bit) enabled.
Mar 30 01:06:50 ymer kernel: ncr53c875-0-<0,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
Mar 30 01:06:50 ymer kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 8888924 [4340 MB] [4.3 GB]
Mar 30 01:06:51 ymer kernel: sda: sda1 sda2 sda3 < sda5 sda6 sda7 >
Mar 30 01:06:51 ymer kernel: VFS: Mounted root (ext2 filesystem) readonly.
Mar 30 01:06:51 ymer kernel: Freeing unused kernel memory: 216k freed
Mar 30 01:06:51 ymer kernel: Adding Swap: 263136k swap-space (priority -1)
Mar 30 01:06:51 ymer kernel: keyboard: Timeout - AT keyboard not present?
---- tulip 21140 load ----
Mar 30 01:06:51 ymer kernel: Linux Tulip driver version 0.9.2 (Feb 15, 2000)
Mar 30 01:06:51 ymer kernel: eth0: Digital DS21140 Tulip rev 34 at 0x8800,<2>PYXIS PCI machine check: err0=03060000 err1=32000040 err2=00000030
Mar 30 01:06:51 ymer kernel: 00:40:33:9F:1A:19, IRQ 26.
Mar 30 01:06:51 ymer kernel: eth0: EEPROM default media type Autosense.
Mar 30 01:06:51 ymer kernel: eth0: Index #0 - Media 10baseT (#0) described by a 21140 non-MII (0) block.
Mar 30 01:06:51 ymer kernel: eth0: Index #1 - Media 100baseTx (#3) described by a 21140 non-MII (0) block.
Mar 30 01:06:51 ymer kernel: eth0: Index #2 - Media 10baseT-FD (#4) described by a 21140 non-MII (0) block.
Mar 30 01:06:51 ymer kernel: eth0: Index #3 - Media 100baseTx-FD (#5) described by a 21140 non-MII (0) block.
Mar 30 01:06:51 ymer kernel: eth0: MII transceiver #1 config 3000 status 782d advertising 05e1.
Mar 30 01:06:55 ymer kernel: keyboard: Timeout - AT keyboard not present?
---- cs4235 load ----
Mar 30 03:33:08 ymer kernel: ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
---- bttv load ----
Mar 30 20:13:56 ymer kernel: Linux video capture interface: v1.00
Mar 30 20:13:56 ymer kernel: i2c-core.o: i2c core module
Mar 30 20:13:56 ymer kernel: i2c-algo-bit.o: i2c bit algorithm module
Mar 30 20:13:57 ymer kernel: bttv: driver version 0.7.13 loaded
Mar 30 20:13:57 ymer kernel: bttv0: Brooktree Bt878 (rev 17) bus: 0, devfn: 40, irq: 25, memory: 0x9000000.
Mar 30 20:13:57 ymer kernel: PCI: Enabling bus mastering for device 00:05.0
Mar 30 20:13:57 ymer kernel: bttv: 1 Bt8xx card(s) found.
Mar 30 20:13:57 ymer kernel: i2c-core.o: adapter bt848 #0 registered as adapter 0.
Mar 30 20:13:57 ymer kernel: bttv0: i2c: checking for eeprom @ 0xa0... found
Mar 30 20:13:57 ymer kernel: bttv0: i2c: checking for eeprom @ 0xa0... found
Mar 30 20:13:57 ymer kernel: id: WinTV Theater (0x13eb), vendor: Hauppauge (0x0070)
Mar 30 20:13:57 ymer kernel: => card=10 (Hauppauge new (bt878))
Mar 30 20:13:57 ymer kernel: bttv0: model: BT878(Hauppauge new (bt878))
Mar 30 20:13:57 ymer kernel: bttv0: Hauppauge eeprom: tuner=Philips FM1216 (5)
Mar 30 20:13:57 ymer kernel: bttv0: i2c: checking for MSP34xx @ 0x80... found
Mar 30 20:13:57 ymer kernel: i2c-core.o: driver i2c msp3400 driver registered.
Mar 30 20:13:57 ymer kernel: msp3400: init: chip=MSP3415D-B3, has NICAM support
Mar 30 20:13:57 ymer kernel: msp3400: daemon started
Mar 30 20:13:57 ymer kernel: bttv0: i2c attach [MSP3415D-B3]
Mar 30 20:13:57 ymer kernel: i2c-core.o: client [MSP3415D-B3] registered to adapter [bt848 #0](pos. 0).
Mar 30 20:13:57 ymer kernel: bttv0: i2c: checking for TDA8425 @ 0x82... not found
Mar 30 20:13:57 ymer kernel: bttv0: i2c: checking for TDA985x @ 0xb6... not found
Mar 30 20:13:58 ymer kernel: i2c-core.o: driver i2c TV tuner driver registered.
Mar 30 20:13:58 ymer kernel: tuner: chip found @ 0x61
Mar 30 20:13:58 ymer kernel: bttv0: i2c attach [Philips PAL]
Mar 30 20:13:58 ymer kernel: i2c-core.o: client [Philips PAL] registered to adapter [bt848 #0](pos. 1).
Mar 30 20:13:58 ymer kernel: bttv0: PLL: 28636363 => 35468950 ... ok
---- bttv died ----
Mar 30 20:14:40 ymer kernel: PYXIS PCI machine check: err0=06400206 err1=c44ec42d err2=c44ec42d
---- bttv unload after it hung (no, I have no penguin on my i2c bus! :) ----
Mar 30 20:30:00 ymer kernel: msp3400: chip reset failed, penguin on i2c bus?
Mar 30 20:30:00 ymer kernel: bttv0: i2c detach [MSP3415D-B3]
Mar 30 20:30:00 ymer kernel: i2c-core.o: client [MSP3415D-B3] unregistered.
Mar 30 20:30:00 ymer kernel: bttv0: i2c detach [Philips PAL]
Mar 30 20:30:00 ymer kernel: i2c-core.o: client [Philips PAL] unregistered.
Mar 30 20:30:00 ymer kernel: i2c-core.o: adapter unregistered: bt848 #0
Mar 30 20:40:01 ymer kernel: i2c-core.o: driver unregistered: i2c TV tuner driver
Mar 30 20:40:01 ymer kernel: i2c-core.o: driver unregistered: i2c msp3400 driver
/Andreas
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: PCI devices causing machine lockups on SX164
2000-03-31 0:37 PCI devices causing machine lockups on SX164 Andreas Johansson
@ 2000-03-31 14:01 ` Ivan Kokshaysky
2000-03-31 22:58 ` Andreas Johansson
2000-04-11 19:12 ` Richard Henderson
1 sibling, 1 reply; 7+ messages in thread
From: Ivan Kokshaysky @ 2000-03-31 14:01 UTC (permalink / raw)
To: axp-list
On Fri, Mar 31, 2000 at 02:37:02AM +0200, Andreas Johansson wrote:
> The Pyxis PCI chipset obviously doesn't comply to this, instead it lets
> those devices make as long transfers as they like without any arbitration.
>
Not correct. Cypress IDE DMA does affect the ISA bus, not PCI.
For example, PCI audio cards work fine with Cypress IDE.
> If I do 64kB block DMA from the disk and
> play audio at the same time, the audio output is garbled by FIFO underrun
> in the audio card's DMA. It sounds a little as if the audio is played at
> a too low and instable sample rate.
It's known problem with the Cypress chip. Try reducing BUSMASTER_TIMEOUT
value in drivers/ide/cy82c693.c
I don't know about bttv, but other hardware you listed should work fine
with the latest kernels.
Ivan.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI devices causing machine lockups on SX164
2000-03-31 14:01 ` Ivan Kokshaysky
@ 2000-03-31 22:58 ` Andreas Johansson
2000-04-02 12:12 ` Ivan Kokshaysky
0 siblings, 1 reply; 7+ messages in thread
From: Andreas Johansson @ 2000-03-31 22:58 UTC (permalink / raw)
To: axp-list
On Fri, 31 Mar 2000, Ivan Kokshaysky wrote:
> On Fri, Mar 31, 2000 at 02:37:02AM +0200, Andreas Johansson wrote:
> > The Pyxis PCI chipset obviously doesn't comply to this, instead it lets
> > those devices make as long transfers as they like without any arbitration.
> >
> Not correct. Cypress IDE DMA does affect the ISA bus, not PCI.
> For example, PCI audio cards work fine with Cypress IDE.
Would you care to explain just how the PCI Cypress device would only
affect the ISA bus?
Your example may very well hold true, but it does not prove your
theory. How much FIFO do you have in respective sound card, how
large transfers are done through the PCI->ISA bridge, etc. ?
> > If I do 64kB block DMA from the disk and
> > play audio at the same time, the audio output is garbled by FIFO underrun
> > in the audio card's DMA. It sounds a little as if the audio is played at
> > a too low and instable sample rate.
>
> It's known problem with the Cypress chip. Try reducing BUSMASTER_TIMEOUT
> value in drivers/ide/cy82c693.c
Ok, you're right, the card doesn't do a full 64kB transfer, it only
transfers 0x50 32-bit words (I guess) per transfer. How many PCI cycles
this means, I don't know. Probably more.
Yes, I can fix my audio garbling by reducing the BUSMASTER_TIMEOUT to
0x14 and getting lousy IDE performance. 0x16 still gives me some audible
sound garbling.
This solution however is much worse than being able to set the PCI latency
of a device. The idea with the latency timer is that each busmastering
device may ATLEAST get X cycles for each PCI transfers and after this
other devices that wants to use the bus may interrupt the ongoing
transfer. If no device wants the bus, the first transfer may continue
until the master latency timeout occurs (i.e. 65280 PCI cycles with the
default PYXIS setting).
This means that in cases where only one device is using the bus, high
transfer rate is achieved. When some device needs frequent bus access, it
gets in to the penelty of transfer rate. I like this much better than
limiting all transfers!
> I don't know about bttv, but other hardware you listed should work fine
> with the latest kernels.
All devices work by them self, it's when I combine them I run into
problems.
> Ivan.
Thanks for pointing out the BUSMASTER_TIMEOUT define.
/Andreas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI devices causing machine lockups on SX164
2000-03-31 22:58 ` Andreas Johansson
@ 2000-04-02 12:12 ` Ivan Kokshaysky
2000-04-02 20:08 ` W Bauske
0 siblings, 1 reply; 7+ messages in thread
From: Ivan Kokshaysky @ 2000-04-02 12:12 UTC (permalink / raw)
To: axp-list
On Sat, Apr 01, 2000 at 12:58:47AM +0200, Andreas Johansson wrote:
> Would you care to explain just how the PCI Cypress device would only
> affect the ISA bus?
>
Because cy82c693u is a single chip with integrated IDE/ISA/USB/RTC/Other
PC junk. USB is not used on sx164, so the chip actually is the PCI/(IDE+ISA)
bridge with its own (yes crappy) arbitration between ISA and IDE DMA.
You can find more info in the cy82c693u datasheet available at
ftp://www.cypress.com/pub/datasheets/cy82c693u.pdf
> Your example may very well hold true, but it does not prove your
> theory.
I'd rather call it practice :-)
> How much FIFO do you have in respective sound card, how
> large transfers are done through the PCI->ISA bridge, etc. ?
>
I don't have docs but I doubt that PCI audio chips have large FIFOs.
> Ok, you're right, the card doesn't do a full 64kB transfer, it only
> transfers 0x50 32-bit words (I guess) per transfer. How many PCI cycles
> this means, I don't know. Probably more.
>
Hmm, from cy82c693u datasheet:
As a PCI master, the CY82C693U will
only perform memory read and write transactions. A write cy-
cle consists of a maximum of 4 bytes of data in a single data
cycle. A read consists of a maximum of 8 bytes in a two cycle
burst.
Ivan.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: PCI devices causing machine lockups on SX164
2000-04-02 12:12 ` Ivan Kokshaysky
@ 2000-04-02 20:08 ` W Bauske
0 siblings, 0 replies; 7+ messages in thread
From: W Bauske @ 2000-04-02 20:08 UTC (permalink / raw)
To: axp-list
Ivan Kokshaysky wrote:
>
> Hmm, from cy82c693u datasheet:
> As a PCI master, the CY82C693U will
> only perform memory read and write transactions. A write cy-
> cle consists of a maximum of 4 bytes of data in a single data
> cycle. A read consists of a maximum of 8 bytes in a two cycle
> burst.
>
>
This would explain the poor performance I see.
UP2K's use that thing and it's slowwwww.......
Wes
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI devices causing machine lockups on SX164
2000-03-31 0:37 PCI devices causing machine lockups on SX164 Andreas Johansson
2000-03-31 14:01 ` Ivan Kokshaysky
@ 2000-04-11 19:12 ` Richard Henderson
2000-04-13 19:47 ` Andreas Johansson
1 sibling, 1 reply; 7+ messages in thread
From: Richard Henderson @ 2000-04-11 19:12 UTC (permalink / raw)
To: axp-list
On Fri, Mar 31, 2000 at 02:37:02AM +0200, Andreas Johansson wrote:
> When my WinTV card stops to function but the machine survives, error
> messages of this sort pop out of the kernel:
>
> PYXIS PCI machine check: err0=06400206 err1=c44ec42d err2=c44ec42d
This is a DMA read (ie to the card) from PCI bus address c44ec42d.
I don't recall exactly what was in 2.3.47, but there have been a
number of fixes to CIA/PYXIS PCI since then. But you say you can't
even boot with 2.3.99-pre4?
r~
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI devices causing machine lockups on SX164
2000-04-11 19:12 ` Richard Henderson
@ 2000-04-13 19:47 ` Andreas Johansson
0 siblings, 0 replies; 7+ messages in thread
From: Andreas Johansson @ 2000-04-13 19:47 UTC (permalink / raw)
To: Richard Henderson; +Cc: Red Hat Alpha mailing list
On Tue, 11 Apr 2000, Richard Henderson wrote:
> On Fri, Mar 31, 2000 at 02:37:02AM +0200, Andreas Johansson wrote:
> > When my WinTV card stops to function but the machine survives, error
> > messages of this sort pop out of the kernel:
> >
> > PYXIS PCI machine check: err0=06400206 err1=c44ec42d err2=c44ec42d
>
> This is a DMA read (ie to the card) from PCI bus address c44ec42d.
Hmm.. I would have thought that the card was only DMA:ing video to the
framebuffer via PCI write commands. Could it be the Cypress that is
doing the bad access?
I've since my last mail had a problem with my SCSI DVD reader too. I've
got several oopses while reading data from a cdrom, still using 2.3.47:
--------------------------------------------------------------------------
Unable to handle kernel paging request at virtual address 0000000000000012
swapper(0): Oops 1
pc = [<fffffc00003bdf24>] ra = [<fffffc00003c7b5c>] ps = 0007
r0 = 0000000000000000 r1 = 0000000000000101 r2 = ffffffffffffffff
r3 = 0000000000000001 r4 = 00000000007f0020 r5 = ffffffdfffffffff
r6 = 0000000000000000 r7 = fffffc00004c3260 r8 = fffffc0000474000
r9 = 0000000000000000 r10= fffffc000046f4e0 r11= fffffc000046f4e0
r12= fffffc0007fc0ec0 r13= fffffc0007f54000 r14= 0000000000000000
r15= fffffc0007fc0f00
r16= 0000000000000000 r17= fffffc000046f4e0 r18= 0000000000000000
r19= 000000000000007f r20= 00000000000000ff r21= 0000000000000000
r22= 000000000000001f r23= 0000000000000020 r24= fffffc00004c3260
r25= fffffc00004c3220 r27= fffffc00003bdf00 r28= 0000000000000020
gp = fffffc00004bfb58 sp = fffffc0000477c38
Code: 46100409 b75e0000 4631040a <34290012> a4490008 b52a0058 f4400005
a61dfeb0 a77d9c90
Trace: [<fffffc00003c7b5c>] [<fffffc00003c700c>] [<fffffc00003bd780>]
[<fffffc00003c7374>] [<fffffc00003c76c4>] [<fffffc00003cebdc>]
[<fffffc00003c631c>] [<fffffc00003d7120>] [<fffffc0000315908>]
[<fffffc00003161e0>] [<fffffc0000310000>] [<fffffc000031bd38>]
[<fffffc00003166d4>] [<fffffc0000310c18>] [<fffffc0000312020>]
[<fffffc000031c660>] [<fffffc000035811c>] [<fffffc0000312000>]
[<fffffc000035811c>] [<fffffc000031001c>]
Aiee, killing interrupt handler
Kernel panic: Attempted to kill the idle task!
In interrupt handler - not syncing
--------------------------------------------------------------------------
> I don't recall exactly what was in 2.3.47, but there have been a
> number of fixes to CIA/PYXIS PCI since then. But you say you can't
> even boot with 2.3.99-pre4?
2.3.99-pre4 does not boot for me:
--------------------------------------------------------------------------
Linux version 2.3.99-pre4 (root@ymer) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #1 Wed Apr 12 22:45:01 CEST 2000
Booting on EB164 variation SX164 using machine vector SX164 from MILO
Command line: bootdevice=sda6 bootfile=boot/vmlinuz root=/dev/sda6
console=ttyS0
memcluster 0, usage 2, start 0, end 1
memcluster 1, usage 0, start 1, end 217
memcluster 2, usage 2, start 217, end 219
memcluster 3, usage 0, start 219, end 256
memcluster 4, usage 2, start 256, end 328
memcluster 5, usage 0, start 328, end 384
memcluster 6, usage 2, start 384, end 714
memcluster 7, usage 0, start 714, end 16384
freeing pages 714:16384
pci: cia revision 1 (pyxis)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Console: colour VGA+ 80x25
Calibrating delay loop... 1059.06 BogoMIPS
Memory: 123024k/131072k available (1207k kernel code, 4808k reserved, 319k
data, 256k init)
Buffer-cache hash table entries: 8192 (order: 3, 65536 bytes)
Page-cache hash table entries: 16384 (order: 4, 131072 bytes)
POSIX conformance testing by UNIFIX
pci: passed tb register update test
pci: passed sg loopback i/o read test
pci: passed tbia test
pci: passed pte write cache snoop test
pci: failed valid tag invalid pte reload test (mcheck; workaround
available)
pci: passed pci machine check test
PCI: No parent found for region 4 of device Contaq Microsystems 82c693
(#2)
SMC37c669 Super I/O Controller found @ 0x3f0
Linux NET4.0 for Linux 2.3
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 16Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Initializing RT netlink socket
Starting kswapd v1.6
initialize_kbd: Keyboard reset failed, no ACK
pty: 256 Unix98 ptys configured
keyboard: Too many NACKs -- noisy kbd cable?
keyboard: Too many NACKs -- noisy kbd cable?
Uniform Multi-Platform E-IDE driver Revision: 6.30
ide: Assuming 40MHz system bus speed for PIO modes; override with
idebus=xx
CY82C693: IDE controller on PCI bus 00 dev 41
CY82C693: not 100% native mode: will probe irqs later
CY82C693U driver v0.34 99-13-12 Andreas S. Krebs (akrebs@altavista.net)
ide0: BM-DMA at 0x9000-0x9007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0x9008-0x900f, BIOS settings: hdc:pio, hdd:DMA
hda: IBM-DHEA-36480, ATA DISK drive
ide: Assuming 40MHz system bus speed for PIO modes; override with
idebus=xx
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: 12692736 sectors (6499 MB) w/476KiB Cache, CHS=12592/16/63, (U)DMA
Partition check:
hda: hda1
ncr53c8xx: at PCI bus 0, device 6, function 0
ncr53c8xx: 53c875 detected with Symbios NVRAM
ncr53c875-0: rev 0x3 on pci bus 0 device 6 function 0 irq 27
ncr53c875-0: Symbios format NVRAM, ID 7, Fast-20, Parity Checking
ncr53c875-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 =
(hex) 05/46/a0/00/00/24
ncr53c875-0: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 =
(hex) 05/46/a0/00/08/24
ncr53c875-0: on-chip RAM at 0x9003000
ncr53c875-0: resetting, command processing suspended for 2 seconds
ncr53c875-0: restart (scsi reset).
ncr53c875-0: enabling clock multiplier
ncr53c875-0: Downloading SCSI SCRIPTS.
scsi0 : ncr53c8xx - version 3.2h
scsi : 1 host.
ncr53c875-0: command processing resumed
Vendor: SEAGATE Model: ST34572W Rev: 0784
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: PIONEER Model: DVD-ROM DVD-303 Rev: 1.10
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 2, lun 0
Vendor: MATSHITA Model: CD-R CW-7502 Rev: 4.17
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr1 at scsi0, channel 0, id 6, lun 0
ncr53c875-0-<0,0>: tagged command queue depth set to 8
scsi : detected 2 SCSI cdroms 1 SCSI disk total.
ncr53c875-0-<2,*>: FAST-20 SCSI 20.0 MB/s (50 ns, offset 8)
sr0: scsi3-mmc drive: 0x/0x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.07
ncr53c875-0-<6,*>: FAST-10 SCSI 10.0 MB/s (100 ns, offset 8)
sr1: scsi3-mmc drive: 8x/8x writer xa/form2 cdda tray
ncr53c875-0-<0,*>: WIDE SCSI (16 bit) enabled.
ncr53c875-0-<0,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sda: hdwr sector= 512 bytes. Sectors= 8888924 [4340 MB] [4.3
GB]
sda: sda1 sda2 sda3 < sda5 sda6 sda7 >
Serial driver version 4.93 (2000-03-20) with MANY_PORTS SHARE_IRQ
SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 256k freed
swapper: Exception at [<fffffc0000311610>] (fffffc0000311620)
swapper(1): unhandled unaligned exception
pc = [<fffffc0000357ac4>] ra = [<fffffc00003575e8>] ps = 0000
r0 = 0000000000000000 r1 = 0000000000000000 r2 = 0000000000000001
r3 = 0000000000000000 r4 = 0000000000000a00 r5 = ffffffffffff8000
r6 = 0000000000000001 r7 = 0000000000000000 r8 = fffffc0007fdc000
r9 = fffffffffffffffe r10= 458c0412456b0411 r11= fffffc0007f2a000
r12= 0000000000000000 r13= fffffc0000347258 r14= fffffc0007fdfe70
r15= 0000000000020003
r16= fffffc0007f2a000 r17= 0000000000000001 r18= fffffc0007fdfe70
r19= fffffc0007fdfe70 r20= 8e38e38e38e38e39 r21= fffffc00004db348
r22= fffffc00004b1c80 r23= fffffc00004b1d30 r24= ffffffffffffffff
r25= 0000000000000001 r27= fffffc0000357540 r28= fffffc00004b60c0
gp = fffffc00004d81d8 sp = fffffc0007fdfe10
Code: a54d0008 213ffffe e5400077 <a06a0040> 217ff000 242b0001 205fa000
44610001 24420001
Trace: [<fffffc0000346e00>] [<fffffc0000310000>] [<fffffc0000347270>]
[<fffffc0000347258>] [<fffffc00003101fc>] [<fffffc00003101c0>]
[<fffffc0000310770>] [<fffffc00003101c0>] [<fffffc0000310744>]
[<fffffc0000310718>] [<fffffc0000310744>]
--------------------------------------------------------------------------
I've also tried 2.3.99-pre5, and it did compile and boot but I can't get
my bttv to work. There seems to be some problem with shared memory:
--------------------------------------------------------------------------
root@ymer ~ #xawtv -novm
This is xawtv-3.02, running on Linux/alpha (2.3.99-pre5)
visual: id=0x22 class=4 (TrueColor), depth=16
x11: 1280x1024, 16 bit/pixel, 2560 byte/scanline, DGA
waitpid: No child processes
waitpid: No child processes
v4l: 1280x1024, 16 bit/pixel, 2560 byte/scanline
wmhooks: gnome
Warning: Cannot convert string
"-*-ledfixed-medium-r-semicondensed--39-*" to type FontStruct
shmget: Invalid argument
Segmentation fault (core dumped)
--------------------------------------------------------------------------
I've recompiled the binary using the new linux headers, but that didn't
help. I saw this message while running 2.3.99-pre5:
shmget: shm filesystem not mounted
What does this mean?
--
NFS doesn't work either:
root@ymer ~ #modprobe nfs
/lib/modules/2.3.99-pre5/fs/nfs.o: unresolved symbol xdr_two
sunrpc: Device or resource busy
depmod does not complain on the nfs.o, though.
--
Another thing, I get a lot of these messages while accessing a
NetBSD-current NFS server:
nfs_writepage_sync: prior time??
nfs_writepage_sync: prior time??
nfs_writepage_sync: prior time??
nfs_writepage_sync: prior time??
What's wrong?
> r~
/Andreas
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2000-04-13 19:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-31 0:37 PCI devices causing machine lockups on SX164 Andreas Johansson
2000-03-31 14:01 ` Ivan Kokshaysky
2000-03-31 22:58 ` Andreas Johansson
2000-04-02 12:12 ` Ivan Kokshaysky
2000-04-02 20:08 ` W Bauske
2000-04-11 19:12 ` Richard Henderson
2000-04-13 19:47 ` Andreas Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox