Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2000 15:03:38 -0800
From:      Guolin Cheng <Guolin@alexa.com>
To:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>, "'gallatin@cs.duke.edu'" <gallatin@cs.duke.edu>
Cc:        Jad DeFanti <jad@alexa.com>
Subject:   ccd problem on FreeBSD
Message-ID:  <2A2825AC1334D411A922005004E0CD203F2C15@exchange.alexa.com>

next in thread | raw e-mail | index | archive | help
Hi, Andrew,

 I searched Archives on FreeBSD.org, and find that you have endured the the
same ccd/Promise ATA  read/write problem. Have you found any solution to it?

 We Setup more than 10 ccd stripes on FreeBSD, ccd has problems due to
harddisk read problem and disk access mode will fallback to PIO mode.. The
harddisks are connected with Promise ATA33/66 controllers.

When this happens, some time I have to use sysctl command to manually change
the access mode to dma mthod as the following:

 /sbin/sysctl -w
hw.atamodes="dma,dma,dma,dma,dma,dma,dma,dma,dma,dma,dma,dma"
 
Can we prevent the disk access mode fallback from DMA to PIO mode? Because
when the mode fallback to PIO, ccd has problems at once. 

 The following are are from /var/log/messages:



 Dec 15 07:45:02 sr19 /kernel: ad6: HARD READ ERROR blk# 5114352ata3-master:
WARNING: WAIT_READY active=ATA_ACTIVE_ATA
Dec 15 07:45:02 sr19 /kernel: ad6: DMA problem fallback to PIO mode
Dec 15 07:45:08 sr19 /kernel: ad6: HARD READ ERROR blk# 5114368 status=59
error=40
Dec 15 07:45:08 sr19 /kernel: ad6: DMA problem fallback to PIO mode
Dec 15 07:45:08 sr19 /kernel: ccd0: error 5 on component 6 block 5114336
(ccd block 56259024)
Dec 15 07:45:14 sr19 /kernel: ad6: HARD READ ERROR blk# 5114496 status=59
error=40
Dec 15 07:45:14 sr19 /kernel: ccd0: error 5 on component 6 block 5114464
(ccd block 56259152)
Dec 15 07:45:19 sr19 /kernel: ad6: HARD READ ERROR blk# 5114368 status=59
error=40
Dec 15 07:45:19 sr19 /kernel: ccd0: error 5 on component 6 block 5114352
(ccd block 56259040)
Dec 15 07:45:25 sr19 /kernel: ad6: HARD READ ERROR blk# 5114368 status=59
error=40
Dec 15 07:45:25 sr19 /kernel: ccd0: error 5 on component 6 block 5114352
(ccd block 56259040)
Dec 15 07:45:31 sr19 /kernel: ad6: HARD READ ERROR blk# 5114384 status=59
error=40
Dec 15 07:45:31 sr19 /kernel: ccd0: error 5 on component 6 block 5114368
(ccd block 56259056)

Dec 15 10:57:31 sr19 /kernel: Copyright (c) 1992-2000 The FreeBSD Project.
Dec 15 10:57:31 sr19 /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988,
1989, 1991, 1992, 1993, 1994
Dec 15 10:57:31 sr19 /kernel: The Regents of the University of California.
All rights reserved.
Dec 15 10:57:31 sr19 /kernel: FreeBSD 4.1-RELEASE #2: Thu Nov  9 18:15:02
PST 2000
Dec 15 10:57:31 sr19 /kernel: root@sr19.alexa.com:/usr/src/sys/compile/ALEXA
Dec 15 10:57:31 sr19 /kernel: Timecounter "i8254"  frequency 1193182 Hz
Dec 15 10:57:31 sr19 /kernel: CPU: Pentium III/Pentium III Xeon/Celeron
(701.59-MHz 686-class CPU)
Dec 15 10:57:31 sr19 /kernel: Origin = "GenuineIntel"  Id = 0x683  Stepping
= 3  
Dec 15 10:57:31 sr19 /kernel:
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,MMX,FXSR,XMM>
Dec 15 10:57:31 sr19 /kernel: real memory  = 536854528 (524272K bytes)
Dec 15 10:57:31 sr19 /kernel: avail memory = 518565888 (506412K bytes)
Dec 15 10:57:31 sr19 /kernel: Preloaded elf kernel "kernel" at 0xc02c6000.
Dec 15 10:57:31 sr19 /kernel: ccd0-11: Concatenated disk drivers
Dec 15 10:57:31 sr19 /kernel: Pentium Pro MTRR support enabled
Dec 15 10:57:31 sr19 /kernel: md0: Malloc disk
Dec 15 10:57:31 sr19 /kernel: npx0: <math processor> on motherboard
Dec 15 10:57:31 sr19 /kernel: npx0: INT 16 interface
Dec 15 10:57:31 sr19 /kernel: pcib0: <Intel 82443BX (440 BX) host to PCI
bridge> on motherboard
Dec 15 10:57:31 sr19 /kernel: pci0: <PCI bus> on pcib0
Dec 15 10:57:31 sr19 /kernel: pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP)
bridge> at device 1.0 on pci0
Dec 15 10:57:31 sr19 /kernel: pci1: <PCI bus> on pcib1
Dec 15 10:57:31 sr19 /kernel: pci1: <ATI Mach64-GZ graphics accelerator> at
0.0 irq 11
Dec 15 10:57:31 sr19 /kernel: isab0: <Intel 82371AB PCI to ISA bridge> at
device 4.0 on pci0
Dec 15 10:57:31 sr19 /kernel: isa0: <ISA bus> on isab0
Dec 15 10:57:31 sr19 /kernel: atapci0: <Intel PIIX4 ATA33 controller> port
0xb800-0xb80f at device 4.1 on pci0
Dec 15 10:57:31 sr19 /kernel: ata0: at 0x1f0 irq 14 on atapci0
Dec 15 10:57:31 sr19 /kernel: ata1: at 0x170 irq 15 on atapci0
Dec 15 10:57:31 sr19 /kernel: pci0: <Intel 82371AB/EB (PIIX4) USB
controller> at 4.2 irq 5
Dec 15 10:57:31 sr19 /kernel: chip1: <Intel 82371AB Power management
controller> port 0xe800-0xe80f at device 4.3 on pci0
Dec 15 10:57:31 sr19 /kernel: fxp0: <Intel Pro 10/100B/100+ Ethernet> port
0xb000-0xb03f mem 0xcd000000-0xcd0fffff,0xcd800000-0xcd800fff irq 12
at device 10.0 on pci0
Dec 15 10:57:31 sr19 /kernel: fxp0: Ethernet address 00:d0:b7:7f:57:9b
Dec 15 10:57:31 sr19 /kernel: atapci1: <Promise ATA66 controller> port
0x9400-0x943f,0x9800-0x9803,0xa000-0xa007,0xa400-0xa403,0xa800-0xa807 mem
 0xcc800000-0xcc81ffff irq 10 at device 11.0 on pci0
Dec 15 10:57:31 sr19 /kernel: ata2: at 0xa800 on atapci1
Dec 15 10:57:31 sr19 /kernel: ata3: at 0xa000 on atapci1
Dec 15 10:57:31 sr19 /kernel: atapci2: <Promise ATA66 controller> port
0x7800-0x783f,0x8000-0x8003,0x8400-0x8407,0x8800-0x8803,0x9000-0x9007 mem
 0xcc000000-0xcc01ffff irq 11 at device 12.0 on pci0
Dec 15 10:57:31 sr19 /kernel: ata4: at 0x9000 on atapci2
Dec 15 10:57:31 sr19 /kernel: ata5: at 0x8400 on atapci2
Dec 15 10:57:31 sr19 /kernel: fdc0: <NEC 72065B or clone> at port
0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
Dec 15 10:57:31 sr19 /kernel: fdc0: FIFO enabled, 8 bytes threshold
Dec 15 10:57:31 sr19 /kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0
Dec 15 10:57:31 sr19 /kernel: atkbdc0: <Keyboard controller (i8042)> at port
0x60,0x64 on isa0
Dec 15 10:57:31 sr19 /kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Dec 15 10:57:31 sr19 /kernel: vga0: <Generic ISA VGA> at port 0x3c0-0x3df
iomem 0xa0000-0xbffff on isa0
Dec 15 10:57:31 sr19 /kernel: sc0: <System console> on isa0
Dec 15 10:57:31 sr19 /kernel: sc0: VGA <16 virtual consoles, flags=0x200>
Dec 15 10:57:31 sr19 /kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on
isa0
Dec 15 10:57:31 sr19 /kernel: sio0: type 16550A
Dec 15 10:57:31 sr19 /kernel: sio1 at port 0x2f8-0x2ff irq 3 on isa0
Dec 15 10:57:31 sr19 /kernel: sio1: type 16550A
Dec 15 10:57:31 sr19 /kernel: ppc0: <Parallel port> at port 0x378-0x37f irq
7 on isa0
Dec 15 10:57:31 sr19 /kernel: ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in
COMPATIBLE mode
Dec 15 10:57:31 sr19 /kernel: ppc0: FIFO with 16/16/9 bytes threshold
Dec 15 10:57:31 sr19 /kernel: ppi0: <Parallel I/O> on ppbus0
Dec 15 10:57:31 sr19 /kernel: lpt0: <Printer> on ppbus0
Dec 15 10:57:31 sr19 /kernel: lpt0: Interrupt-driven port
Dec 15 10:57:31 sr19 /kernel: plip0: <PLIP network interface> on ppbus0
Dec 15 10:57:31 sr19 /kernel: ad0: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata0-master using UDMA33  
Dec 15 10:57:31 sr19 /kernel: ad1: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata0-slave using UDMA33
Dec 15 10:57:31 sr19 /kernel: ad2: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata1-master using UDMA33
Dec 15 10:57:31 sr19 /kernel: ad3: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata1-slave using UDMA33
Dec 15 10:57:31 sr19 /kernel: ad4: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata2-master using UDMA66
Dec 15 10:57:31 sr19 /kernel: ad5: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata2-slave using UDMA66
Dec 15 10:57:31 sr19 /kernel: ad6: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata3-master using UDMA66
Dec 15 10:57:31 sr19 /kernel: ad7: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata3-slave using UDMA66
Dec 15 10:57:31 sr19 /kernel: ad8: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata4-master using UDMA66
Dec 15 10:57:31 sr19 /kernel: ad9: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata4-slave using UDMA66
Dec 15 10:57:31 sr19 /kernel: ad10: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata5-master using UDMA66
Dec 15 10:57:31 sr19 /kernel: ad11: 73308MB <IBM-DTLA-307075> [148945/16/63]
at ata5-slave using UDMA66
Dec 15 10:57:31 sr19 /kernel: Mounting root from ufs:/dev/ad0s1a 

Thanks.



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




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