Skip site navigation (1)Skip section navigation (2)
Date:      22 Aug 2002 14:50:19 +0200
From:      Oliver Biermann <Oliver.Biermann@tu-clausthal.de>
To:        freebsd-stable@freebsd.org
Subject:   ATA driver is doing a fallback to pio mode4 on Promise Ultra66
Message-ID:  <1030020619.1710.35.camel@interruptus.heim6.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help
Hi,
I've Problems with the ATA driver in 4-STABLE (cvsupped the source
today, but the problem exists for me since back to 4.6-RELEASE as far
as I remember). The driver is doing a fallback from UDMA66 mode to PIO4
mode on my Promise Ultra66 controller. (On the onboard controller of my
mainboard [UDMA100] and on my HighPoint UDMA66 controller this does not
happen). 

Here are the messages I receive:

Aug 22 14:05:56 interruptus /kernel: ad8: READ command timeout tag=0
serv=0 - resetting
Aug 22 14:05:56 interruptus /kernel: ata4: resetting devices .. done
Aug 22 14:06:06 interruptus /kernel: ad8: READ command timeout tag=0
serv=0 - resetting
Aug 22 14:06:07 interruptus /kernel: ata4: resetting devices .. done
Aug 22 14:06:16 interruptus /kernel: ad8: READ command timeout tag=0
serv=0 - resetting
Aug 22 14:06:16 interruptus /kernel: ata4: resetting devices .. done
Aug 22 14:06:26 interruptus /kernel: ad8: READ command timeout tag=0
serv=0 - resetting
Aug 22 14:06:26 interruptus /kernel: usb1: scheduling overrun
Aug 22 14:06:26 interruptus /kernel: usb0: scheduling overrun
Aug 22 14:06:26 interruptus /kernel: usb1: scheduling overrun
Aug 22 14:06:26 interruptus /kernel: usb0: scheduling overrun
Aug 22 14:06:26 interruptus /kernel: ad8: trying fallback to PIO mode
Aug 22 14:06:26 interruptus /kernel: ata4: resetting devices .. done
Aug 22 14:06:36 interruptus /kernel: ad8: READ command timeout tag=0
serv=0 - resetting
Aug 22 14:06:36 interruptus /kernel: ata4: resetting devices .. done

The machine was booted 25 minutes ago, and I was listening to some music
from this hdd via samba 2.2.5 on my windows box...
I had this behaviour quite often in the last days: 
booting, ata-driver in UDMA66 mode and then after some time using the
hdd a fallback to PIO4...
I would say it's not a cable-problem, because I checked my cables and 
run the same configuration on the other controllers where all seems ok.

here is my dmesg output:

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.6-STABLE #0: Wed Aug 21 23:34:50 CEST 2002
   
root@interruptus.heim6.tu-clausthal.de:/usr/src/sys/compile/INTERRUPTUS
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD Athlon(tm) Processor (896.19-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x642  Stepping = 2
 
Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!>
real memory  = 536805376 (524224K bytes)
avail memory = 518537216 (506384K bytes)
Preloaded elf kernel "kernel" at 0xc03b5000.
netsmb_dev: loaded
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries at 0xc00f7810
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 1.0 on
pci0
pci1: <PCI bus> on pcib2
pci1: <NVidia Riva TNT graphics accelerator> at 0.0 irq 5
isab0: <SiS 85c503 PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
ohci0: <SiS 5571 USB controller> mem 0xcfffe000-0xcfffefff irq 5 at
device 2.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0xcffff000-0xcfffffff irq 11 at
device 2.3 on pci0
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
atapci0: <SiS 5591 ATA100 controller> port 0xff00-0xff0f at device 2.5
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcm0: <SiS 7012> port 0xcc00-0xcc3f,0xd000-0xd0ff irq 12 at device 2.7
on pci0
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xc800-0xc81f mem
0xcfe00000-0xcfefffff,0xbd9ff000-0xbd9fffff irq 11 at device 11.0 on
pci0
fxp0: Ethernet address 00:08:c7:8c:3d:39
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
atapci1: <HighPoint HPT366 ATA66 controller> port
0xbc00-0xbcff,0xc000-0xc003,0xc400-0xc407 irq 12 at device 13.0 on pci0
ata2: at 0xc400 on atapci1
atapci2: <HighPoint HPT366 ATA66 controller> port
0xd400-0xd4ff,0xd800-0xd803,0xdc00-0xdc07 irq 12 at device 13.1 on pci0
ata3: at 0xdc00 on atapci2
atapci3: <Promise ATA66 controller> port
0xa800-0xa83f,0xac00-0xac03,0xb000-0xb007,0xb400-0xb403,0xb800-0xb807
mem 0xcffc0000-0xcffdffff irq 5 at device 15.0 on pci0
ata4: at 0xb800 on atapci3
ata5: at 0xb000 on atapci3
sym0: <896> port 0xa000-0xa0ff mem
0xc6000000-0xc6001fff,0xc8000000-0xc80003ff irq 11 at device 17.0 on
pci0
sym0: No NVRAM, ID 7, Fast-40, SE, parity checking
sym1: <896> port 0xa400-0xa4ff mem
0xca000000-0xca001fff,0xcc000000-0xcc0003ff irq 12 at device 17.1 on
pci0
sym1: No NVRAM, ID 7, Fast-40, LVD, parity checking
pcib1: <SiS 5591 host to AGP bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem
0xc0000-0xc7fff,0xc8000-0xc87ff,0xc8800-0xc9fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 14664MB <IBM-DJNA-351520> [29795/16/63] at ata0-master UDMA66
ad1: DMA limited to UDMA33, non-ATA66 cable or device
ad1: 16500MB <FUJITSU MPD3173AT> [33525/16/63] at ata0-slave UDMA33
ad2: 76319MB <MAXTOR 4K080H4> [155061/16/63] at ata1-master UDMA100
ad3: 39266MB <IBM-DTLA-305040> [79780/16/63] at ata1-slave UDMA100
ad4: 58623MB <Maxtor 96147U8> [119108/16/63] at ata2-master UDMA66
ad5: 78167MB <Maxtor 98196H8> [158816/16/63] at ata2-slave UDMA66
ad6: 78167MB <Maxtor 4D080H4> [158816/16/63] at ata3-master UDMA66
ad7: 78167MB <Maxtor 4D080H4> [158816/16/63] at ata3-slave UDMA66
ad8: 117246MB <Maxtor 4G120J6> [238216/16/63] at ata4-master UDMA66
Waiting 5 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s1a
da0 at sym0 bus 0 target 0 lun 0
da0: <SEAGATE ST150176LC 0002> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
da0: 47702MB (97693755 512 byte sectors: 255H 63S/T 6081C)

Hopefully someone could look at the ata stuff and perhaps finds more
infos for my problems.  

ah, btw, my ata-settings:

obie@interruptus$ sysctl hw | grep ata
hw.ata.ata_dma: 1
hw.ata.wc: 0
hw.ata.tags: 0

I tried hw.ata.wc=1, too, but it has nothing to do with the problem
(I get READ timeout, not WRITE timeouts)

Ok, I think thats it..
Thank you guys

obie
-- 
---------------------------------------
- Oliver Biermann                     -
- Leibnizstrasse 20 Zimmer 139        -
- 38678 Clausthal-Zellerfeld          -
- mobile: 0171-1174913                -
- mail: obie@bmarkt.de                -
---------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1030020619.1710.35.camel>