Re: timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
It seems Andreas Klemm wrote: Hi ! I have hangs and timeouts using the EIDE disk in my computer. The controller is a Abit Hot Rod 66 and Maxtor Diamond Max 54098U8. I use the 80 pin cable from the Abit EIDE controller special for UDMA. Messages are: ad4: READ command timeout - resetting ata2: resetting devices ad4: WRITE command timeout - resetting ata2: resetting devices .. done You have a config problem atapci0: Intel PIIX3 ATA controller at device 7.1 on pci0 atapci0: Busmastering DMA not enabled ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x ata0: probe allocation failed ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x0001 ata1: probe allocation failed atapci1: HighPoint HPT366 ATA66 controller port 0xa400-0xa4ff,0xa000-0xa003,0x9c00-0x9c07 irq 15 at device 14.0 on pci0 ata2: iobase=0x9c00 altiobase=0xa000 bmaddr=0xa400 ata2: at 0x9c00 on atapci1 atapci2: HighPoint HPT366 ATA66 controller port 0xb000-0xb0ff,0xac00-0xac03,0xa800-0xa807 irq 15 at device 14.1 on pci0 ata3: iobase=0xa800 altiobase=0xac00 bmaddr=0xb000 ata3: probe allocation failed Now where did this come form: ata4: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x ata4: mask=00 status0=ff status1=ff ata4: probe allocation failed ata2-master: success setting up UDMA4 mode on HPT366 chip ad4: Maxtor 54098U8/DA620CQ0 ATA-5 disk at ata2 as master ad4: 39082MB (80041248 sectors), 79406 cyls, 16 heads, 63 S/T, 512 B/S ad4: 16 secs/int, 1 depth queue, UDMA66 ad4: piomode=4 dmamode=2 udmamode=4 cblid=1 # ATA and ATAPI devices deviceata0at isa? port IO_WD1 irq 14 #device ata1at isa? port IO_WD2 irq 15 deviceata deviceatadisk # ATA disk drives #device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives #device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering #options ATA_ENABLE_ATAPI_DMA#Enable DMA on ATAPI devices make that: deviceata deviceatadisk options ATA_STATIC_ID -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
On Tue, Feb 22, 2000 at 09:32:43AM +0100, Soren Schmidt wrote: You have a config problem Oh ... Now where did this come form: ata4: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x ata4: mask=00 status0=ff status1=ff ata4: probe allocation failed ata2-master: success setting up UDMA4 mode on HPT366 chip ad4: Maxtor 54098U8/DA620CQ0 ATA-5 disk at ata2 as master ad4: 39082MB (80041248 sectors), 79406 cyls, 16 heads, 63 S/T, 512 B/S ad4: 16 secs/int, 1 depth queue, UDMA66 ad4: piomode=4 dmamode=2 udmamode=4 cblid=1 Hmmm... # ATA and ATAPI devices device ata0at isa? port IO_WD1 irq 14 Thought, this would be necessary. #device ata1at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives #device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives #device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering #optionsATA_ENABLE_ATAPI_DMA#Enable DMA on ATAPI devices make that: deviceata deviceatadisk options ATA_STATIC_ID Will try that. BTW, I tried this night (til 5am *sigh*) to make the device run under the Boards IDE controller. To make that happen I did the (probably mistake), to set a cylinder limitation jumper and install a special BIOS on the disk using the MaxBlast software from Maxtors ftp site. Since then the disk only had 4111cyl/255heads/64sectors =66043215 sectors. Now the drive ran fine under Windows and FreeBSD, but when I removed the jumper on the disk and tried again the abit EIDE controller, the disk wasn't recognized anymore. O.k. at 5am I was f***ing tired... Did I do something wrong to my disk using this maxtor utility ? Does somebody know, if there is a magic trick, to remove the BIOS ? I'll now try, what FreeBSD says to the drive, when I install the new kernel and if I remove the jumpers... Andreas /// -- Andreas Klemm http://www.FreeBSD.ORG/~andreas http://www.freebsd.org/~fsmp/SMP/SMP.html powered by Symmetric MultiProcessor FreeBSD Get new songs from our band: http://www.freebsd.org/~andreas/64bits/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
Hi Soren, make that: deviceata deviceatadisk options ATA_STATIC_ID did that: after kernel re-compilation I created a new disklabel on the device I used the whole disk /dev/ad4c /data ufs rw 1 2 just for testing purposes. Newfs'ing and mounting the filesystem went fine. I enabled softupdates prior mounting. But when I tried fire up bonnie -s 100 I soon get after nearly writing the 100 MB characterwise... ad4: READ command timeout - resetting ata2: resetting devices And the whole system hangs - reset Behind dmesg of a verbose boot my new kernel config as reference Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #0: Tue Feb 22 12:11:23 CET 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/TITAN Calibrating clock(s) ... TSC clock: 199426380 Hz, i8254 clock: 1193149 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: Pentium Pro (199.43-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping = 9 Features=0xfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV real memory = 159383552 (155648K bytes) Physical memory chunk(s): 0x1000 - 0x0009efff, 647168 bytes (158 pages) 0x00345000 - 0x097f5fff, 155914240 bytes (38065 pages) avail memory = 150921216 (147384K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 - irq 0 IOAPIC #0 intpin 16 - irq 15 IOAPIC #0 intpin 17 - irq 11 IOAPIC #0 intpin 18 - irq 10 IOAPIC #0 intpin 19 - irq 14 SMP: CPU0 apic_initialize(): lint0: 0x0700 lint1: 0x00010400 TPR: 0x0010 SVR: 0x01ff FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee0 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee0 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec0 bios32: Found BIOS32 Service Directory header at 0xc00fac30 bios32: Entry = 0xfb0b0 (c00fb0b0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xb0e0 pnpbios: Found PnP BIOS data at 0xc00fbc30 pnpbios: Entry = f:bc58 Rev = 1.0 Other BIOS signatures found: ACPI: Preloaded elf kernel "kernel" at 0xc0329000. ccd0-3: Concatenated disk drivers Pentium Pro MTRR support enabled SMP: CPU0 bsp_apic_configure(): lint0: 0x00010700 lint1: 0x0400 TPR: 0x0010 SVR: 0x01ff pci_open(1):mode 1 addr port (0x0cf8) is 0x805c pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class=06] [hdr=00] is there (id=12378086) npx0: math processor on motherboard npx0: INT 16 interface pci_open(1):mode 1 addr port (0x0cf8) is 0x pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class=06] [hdr=00] is there (id=12378086) pcib0: Host to PCI bridge on motherboard found- vendor=0x8086, dev=0x1237, revid=0x02 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 found- vendor=0x8086, dev=0x7000, revid=0x01 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 found- vendor=0x8086, dev=0x7010, revid=0x00 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 found- vendor=0x102b, dev=0x0519, revid=0x01 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 intpin=a, irq=15 map[10]: type 1, range 32, base e000, size 14 map[14]: type 1, range 32, base e100, size 23 found- vendor=0x10b7, dev=0x9001, revid=0x00 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 intpin=a, irq=14 map[10]: type 1, range 32, base 9400, size 6 found- vendor=0x1102, dev=0x0002, revid=0x04 class=04-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 intpin=a, irq=10 map[10]: type 1, range 32, base 9800, size 5 found- vendor=0x1102, dev=0x7002, revid=0x01 class=09-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 map[10]: type 1, range 32, base 9c00, size 3 found- vendor=0x9004, dev=0x8178, revid=0x00 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base a000, size 8 map[14]: type 1, range 32, base e200, size 12 found- vendor=0x1103, dev=0x0004, revid=0x01 class=01-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 intpin=a, irq=15 map[10]: type 1, range 32, base a400, size 3 map[14]: type 1, range 32, base a800, size 2 map[20]: type 1, range 32, base ac00, size 8 found-
Re: timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
It seems Andreas Klemm wrote: Newfs'ing and mounting the filesystem went fine. I enabled softupdates prior mounting. But when I tried fire up bonnie -s 100 I soon get after nearly writing the 100 MB characterwise... ad4: READ command timeout - resetting ata2: resetting devices And the whole system hangs - reset Hmm, this looks very wierd, how is your BIOS setup wrt to onboard ATA channels ?? Try to use a "normal" ie 40pin cable, that will limit the disk to UDMA33 mode, if that works, well... -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
On Tue, Feb 22, 2000 at 01:39:46PM +0100, Soren Schmidt wrote: Hmm, this looks very wierd, Oh yes ;-) BTW no problem with win98 or Win2000 installation. how is your BIOS setup wrt to onboard ATA channels ?? Try to use a "normal" ie 40pin cable, that will limit the disk to UDMA33 mode, if that works, well... Will have to buy that. When I ran with the on board IDE chip I had a drive mode (something like) mdma2. That worked even with FreeBSD. I now tried BIOS setup values. First entered BIOS default values, which are turning off most features, then I enabled SETUP defaults and then changed no performance boosting things. RAM Timing I changed to automatic 70ns, although I have 60 ns RAM. On chip PCI IDE is completely disabled. Then I changed as a last resort method the mode to hw.atamodes: ---,---,---,---,pio,---,---,---, Even with PIO the drive has problems, but is then able to recover: ata2-master: success setting up PIO4 mode on HPT366 chip ad4: invalid primary partition table: no magic this is. because I newfs'd ad4c on the whole ... quick and dirty for testing... now bonnie -s 100 ad4: WRITE command timeout - resetting ata2: resetting devices .. ata2: mask=01 status0=50 status1=00 ata2-master: success setting up PIO4 mode on HPT366 chip done ad4: timeout waiting for DRQ How can I force the driver with kernel modifications to use mdma2 mode or something like this ??? BTW, I have a 5 Slot PCI machine ... in the first slot there is the abit controller in the last the Matrox Millenium card. They share the same IRQ 15... Is this sane ? Or might my problem be SMP related ??? Well, have to go to the supermarket now ... I'll remove one card later, to free one IRQ and will try to use a single cpu kernel... -- Andreas Klemm http://www.FreeBSD.ORG/~andreas http://www.freebsd.org/~fsmp/SMP/SMP.html powered by Symmetric MultiProcessor FreeBSD Get new songs from our band: http://www.freebsd.org/~andreas/64bits/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
It seems Andreas Klemm wrote: On Tue, Feb 22, 2000 at 01:39:46PM +0100, Soren Schmidt wrote: Try to use a "normal" ie 40pin cable, that will limit the disk to UDMA33 mode, if that works, well... Hurray, using a normal cable works. I got 2 cables for $0 from a friend in a computershop ;-) A freebsd user, which I gave a promotion CD last year ;-) dmesg | grep ata: atapci0: Intel PIIX3 ATA controller at device 7.1 on pci0 atapci0: Busmastering DMA not enabled atapci1: HighPoint HPT366 ATA66 controller port 0xac00-0xacff,0xa800-0xa803,0xa400-0xa407 irq 15 at device 14.0 on pci0 ata2: at 0xa400 on atapci1 atapci2: HighPoint HPT366 ATA66 controller port 0xb800-0xb8ff,0xb400-0xb403,0xb000-0xb007 irq 15 at device 14.1 on pci0 ad4: 39082MB Maxtor 54098U8 [79406/16/63] at ata2-master using UDMA33 Do you think there is a chance to get UDMA66 running, although for one disk UDMA/33 should be satisfactory ? There are two posibilities, either the cable is bad or the disk is bad. Since you could talk to it, and you didn't get ICRC errors, my bet is that the particular Maxtor model is just as broken as most of its other family memebers :( However there is no mesurable difference between running ATA66 and ATA33 as long as you have only one disk pr channel, and if you have more than one, the difference is still not worth mentioning... BTW, what mode is MA DMA or something like this ? The abit supports two modes I never heard of before. PIO is known UDMA is known, but something like M DMA or MA DMA ??? That has to me MWDMA that the old 16MB/s mode, ata knows this mode too, but only uses it if no UDMA mdoes are possible... Then an idea. What about something like atacontrol, to overwrite the speed settings, if you have to like in this case ? Would it be much work for you or worth the effort ? Well, there are some pretty tricky things with that, some of the controllers dont like you to step back in mode without serious handholding and special code Would be fine to use the better cable with low speed... As long as you dont get any ICRC errors due to bad cableing there is no difference whatsoever... -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
Hi ! I have hangs and timeouts using the EIDE disk in my computer. The controller is a Abit Hot Rod 66 and Maxtor Diamond Max 54098U8. I use the 80 pin cable from the Abit EIDE controller special for UDMA. Messages are: ad4: READ command timeout - resetting ata2: resetting devices ad4: WRITE command timeout - resetting ata2: resetting devices .. done Sometimes the disk recovers, sometimes the system completely hangs. One time when mounting a 18 GB filesystem I got the panic: ffs_alloc: map corrupted mp_lock=0101; cpuid=1; lapic_id=0100 First I thought, it is related to IRQ sharing. My Matrox Millenium PCI card shared the same interrupt as the Abit EIDE controller (BTW, on board EIDE controller - UDMA/33 - is disabled on my Tyan Titan Pro board). dmesg output and kernel config file: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #0: Mon Feb 21 20:40:55 CET 2000 root@:/usr/src/sys/compile/TITAN Calibrating clock(s) ... TSC clock: 199425363 Hz, i8254 clock: 1193142 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: Pentium Pro (199.43-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping = 9 Features=0xfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV real memory = 159383552 (155648K bytes) Physical memory chunk(s): 0x1000 - 0x0009efff, 647168 bytes (158 pages) 0x00345000 - 0x097f5fff, 155914240 bytes (38065 pages) avail memory = 150917120 (147380K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 - irq 0 IOAPIC #0 intpin 16 - irq 15 IOAPIC #0 intpin 17 - irq 11 IOAPIC #0 intpin 18 - irq 10 IOAPIC #0 intpin 19 - irq 14 SMP: CPU0 apic_initialize(): lint0: 0x0700 lint1: 0x00010400 TPR: 0x0010 SVR: 0x01ff FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee0 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee0 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec0 bios32: Found BIOS32 Service Directory header at 0xc00fac30 bios32: Entry = 0xfb0b0 (c00fb0b0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xb0e0 pnpbios: Found PnP BIOS data at 0xc00fbc30 pnpbios: Entry = f:bc58 Rev = 1.0 Other BIOS signatures found: ACPI: Preloaded elf kernel "kernel" at 0xc0329000. ccd0-3: Concatenated disk drivers Pentium Pro MTRR support enabled SMP: CPU0 bsp_apic_configure(): lint0: 0x00010700 lint1: 0x0400 TPR: 0x0010 SVR: 0x01ff pci_open(1):mode 1 addr port (0x0cf8) is 0x805c pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class=06] [hdr=00] is there (id=12378086) npx0: math processor on motherboard npx0: INT 16 interface pci_open(1):mode 1 addr port (0x0cf8) is 0x pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class=06] [hdr=00] is there (id=12378086) pcib0: Host to PCI bridge on motherboard found- vendor=0x8086, dev=0x1237, revid=0x02 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 found- vendor=0x8086, dev=0x7000, revid=0x01 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 found- vendor=0x8086, dev=0x7010, revid=0x00 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 found- vendor=0x10b7, dev=0x9001, revid=0x00 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 intpin=a, irq=14 map[10]: type 1, range 32, base 9400, size 6 found- vendor=0x102b, dev=0x0519, revid=0x01 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 intpin=a, irq=10 map[10]: type 1, range 32, base e000, size 14 map[14]: type 1, range 32, base e100, size 23 found- vendor=0x9004, dev=0x8178, revid=0x00 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base 9800, size 8 map[14]: type 1, range 32, base e200, size 12 found- vendor=0x1103, dev=0x0004, revid=0x01 class=01-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 intpin=a, irq=15 map[10]: type 1, range 32, base 9c00, size 3 map[14]: type 1, range 32, base a000, size 2 map[20]: type 1, range 32, base a400, size 8 found- vendor=0x1103, dev=0x0004, revid=0x01 class=01-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 intpin=a, irq=15 map[10]: type 1, range 32, base a800, size 3 map[14]: type 1, range 32, base ac00, size 2 map[20]: type 1, range 32, base
Re: timeout problems HighPoint HPT366 ATA66 controller 40 GB Diamond Max Plus
Well, this settings hw.atamodes: ---,---,---,---,pio,---,---,---,---,---, result still in ad4: WRITE command timeout - resetting ata2: resetting devices .. done ad4: timeout waiting for DRQad4: WRITE command timeout - resetting ata2: resetting devices .. done ad4: timeout waiting for DRQ (was a bonnie -s 100) -- Andreas Klemm http://www.FreeBSD.ORG/~andreas http://www.freebsd.org/~fsmp/SMP/SMP.html powered by Symmetric MultiProcessor FreeBSD Get new songs from our band: http://www.freebsd.org/~andreas/64bits/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message