Subject: Re: CCD error under 1.6.2
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Rui-Xiang Guo <rxg@myrealbox.com>
List: port-i386
Date: 11/01/2004 17:05:01
> > What controllers and drives ?
>
> pciide2 at pci0 dev 20 function 0: CMD Technology PCI0649 (rev. 0x02)
> pciide2: bus-master DMA support present
> pciide2: primary channel configured to native-PCI mode
> pciide2: using irq 5 for native-PCI interrupt
Change pciide to cmdide seems to fix this problem.
I re-compile the kernel with 2.0_RC4(for SMP), here is the dmesg message -
NetBSD 2.0_RC4 (GENERIC.MPDEBUG) #0: Mon Nov 1 18:36:32 CST 2004
rxg@ftp:/usr/src/sys/arch/i386/compile/GENERIC.MPDEBUG
total memory = 1023 MB
avail memory = 985 MB
BIOS32 rev. 0 found at 0xfdb60
mainbus0 (root)
mainbus0: scanning 0x9fc00 to 0x9fff0 for MP signature
mainbus0: scanning 0x9f400 to 0x9f7f0 for MP signature
mainbus0: scanning 0xf0000 to 0xffff0 for MP signature
mainbus0: MP floating pointer found in bios at 0xfb4f0
mainbus0: MP config table at 0xf2440, 268 bytes long
mainbus0: Intel MP Specification (Version 1.4) (INTEL 440BX )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium II (686-class), 400.94 MHz, id 0x652
cpu0: features 183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 183fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 183fbff<FXSR>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 512 KB 32B/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 100 MHz
cpu0: 32 page colors
cpu0: kstack at 0xcbff3000 for 16384 bytes
cpu0: idle pcb at 0xcbff3000, idle sp at 0xcbff6f98
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium II (686-class), 400.91 MHz, id 0x652
cpu1: features 183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 183fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu1: features 183fbff<FXSR>
cpu1: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu1: L2 cache 512 KB 32B/line 4-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu1: kstack at 0xcc080000 for 16384 bytes
cpu1: idle pcb at 0xcc080000, idle sp at 0xcc083f98
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type ISA
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, virtual wire mode, version 11, 24 pins
ioapic0: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
ioapic0: int1 attached to isa0 irq 1 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int2 attached to isa0 irq 0 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int3 attached to isa0 irq 3 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int4 attached to isa0 irq 4 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int6 attached to isa0 irq 6 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int7 attached to isa0 irq 7 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int8 attached to isa0 irq 8 (type 0<type=0> flags 5<pol=1=Act Hi,trig=1
=Edge>)
ioapic0: int12 attached to isa0 irq 12 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int13 attached to isa0 irq 13 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int14 attached to isa0 irq 14 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int15 attached to isa0 irq 15 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int16 attached to isa0 irq 10 (type 0<type=0> flags f<pol=3=Act Lo,trig
=3=Level>)
ioapic0: int17 attached to isa0 irq 11 (type 0<type=0> flags f<pol=3=Act Lo,trig
=3=Level>)
ioapic0: int18 attached to isa0 irq 9 (type 0<type=0> flags f<pol=3=Act Lo,trig=
3=Level>)
ioapic0: int19 attached to isa0 irq 5 (type 0<type=0> flags f<pol=3=Act Lo,trig=
3=Level>)
ioapic0: int23 attached to SMI (type 2<type=2=SMI> flags 0<pol=0,trig=0>)
local apic: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>
)
local apic: int1 attached to NMI (type 1<type=1=NMI> flags 0<pol=0,trig=0>)
mainbus0: MP WARNING: 16 bytes of extended entries not examined
pnpbios0 at mainbus0: nodes 16, max len 194
pckbc0 at pnpbios0 index 5 (PNP0303): kbd port
com0 at pnpbios0 index 11 (PNP0501)
com0: io 3f8-3ff, irq 4
com0: ns16550a, working fifo
com1 at pnpbios0 index 12 (PNP0501)
com1: io 2f8-2ff, irq 3
com1: ns16550a, working fifo
lpt0 at pnpbios0 index 13 (PNP0400)
lpt0: io 378-37f, irq 7
fdc0 at pnpbios0 index 14 (PNP0700)
fdc0: io 3f2-3f5, irq 6, DMA 2
fdc0: ctl io 3f7 didn't probe. Forced attach
pckbc1 at pnpbios0 index 15 (PNP0F13): aux port
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x02)
agp0 at pchb0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: Silicon Integrated System 6326 AGP VGA (rev. 0x0b
)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
piixide0 at pci0 dev 7 function 1
piixide0: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev.
0x01)
uhci0: can't map i/o space
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revisio
n 0x02) at pci0 dev 7 function 3 not configured
ahc0 at pci0 dev 14 function 0: Adaptec aic7895 Ultra SCSI adapter
ahc0: interrupting at ioapic0 pin 16 (irq 10)
ahc0: aic7895C: Ultra Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci0 dev 14 function 1: Adaptec aic7895 Ultra SCSI adapter
ahc1: interrupting at ioapic0 pin 16 (irq 10)
ahc1: aic7895C: Ultra Wide Channel B, SCSI Id=7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
ex0 at pci0 dev 15 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0
x6c)
ex0: interrupting at ioapic0 pin 16 (irq 10)
ex0: MAC address 00:50:da:8c:2c:b0
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cmdide0 at pci0 dev 16 function 0
cmdide0: CMD Technology PCI0649 (rev. 0x02)
cmdide0: bus-master DMA support present
cmdide0: primary channel configured to native-PCI mode
cmdide0: using ioapic0 pin 17 (irq 11) for native-PCI interrupt
atabus2 at cmdide0 channel 0
cmdide0: secondary channel configured to native-PCI mode
atabus3 at cmdide0 channel 1
ex1 at pci0 dev 18 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0
x6c)
ex1: interrupting at ioapic0 pin 18 (irq 9)
ex1: MAC address 00:50:da:87:e3:d3
bmtphy1 at ex1 phy 24: Broadcom 3c905C internal PHY, rev. 4
bmtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cmdide1 at pci0 dev 20 function 0
cmdide1: CMD Technology PCI0649 (rev. 0x02)
cmdide1: bus-master DMA support present
cmdide1: primary channel configured to native-PCI mode
cmdide1: using ioapic0 pin 19 (irq 5) for native-PCI interrupt
atabus4 at cmdide1 channel 0
cmdide1: secondary channel configured to native-PCI mode
atabus5 at cmdide1 channel 1
isa0 at pcib0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
cpu0: prelint0 700<vector=0,delmode=7,dest=0> 0<target=0>
cpu0: prelint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: timer0 300c0<vector=c0,delmode=0,masked,dest=0> 0<target=0>
cpu0: pcint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu0: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu0: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: err0 1000f<vector=f,delmode=0,masked,dest=0> 0<target=0>
ioapic0: enabling
ioapic0: int1 191<vector=91,delmode=1,dest=0> 0<target=0>
ioapic0: int3 1d1<vector=d1,delmode=1,dest=0> 0<target=0>
ioapic0: int4 1d0<vector=d0,delmode=1,dest=0> 0<target=0>
ioapic0: int6 160<vector=60,delmode=1,dest=0> 0<target=0>
ioapic0: int7 190<vector=90,delmode=1,dest=0> 0<target=0>
ioapic0: int12 192<vector=92,delmode=1,dest=0> 0<target=0>
ioapic0: int14 161<vector=61,delmode=1,dest=0> 0<target=0>
ioapic0: int15 162<vector=62,delmode=1,dest=0> 0<target=0>
ioapic0: int16 a163<vector=63,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int17 a164<vector=64,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int18 a170<vector=70,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int19 a165<vector=65,delmode=1,actlo,level,dest=0> 0<target=0>
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
raidattach: Asked for 8 units
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
wd0 at atabus0 drive 0: <MAXTOR 6L080J4>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 76345 MB, 155114 cyl, 16 head, 63 sec, 512 bytes/sect x 156355584 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1 at atabus0 drive 1: <MAXTOR 6L080J4>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 76345 MB, 155114 cyl, 16 head, 63 sec, 512 bytes/sect x 156355584 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd1(piixide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd2 at atabus2 drive 0: <ST380021A>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd3 at atabus2 drive 1: <ST380021A>
wd3: drive supports 16-sector PIO transfers, LBA addressing
wd3: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd3: 32-bit data port
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd2(cmdide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
wd3(cmdide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd4 at atabus3 drive 0: <ST380021A>
wd4: drive supports 16-sector PIO transfers, LBA addressing
wd4: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd4: 32-bit data port
wd4: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd5 at atabus3 drive 1: <ST380021A>
wd5: drive supports 16-sector PIO transfers, LBA addressing
wd5: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd5: 32-bit data port
wd5: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd4(cmdide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd5(cmdide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd6 at atabus4 drive 0: <ST380021A>
wd6: drive supports 16-sector PIO transfers, LBA addressing
wd6: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd6: 32-bit data port
wd6: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd7 at atabus4 drive 1: <ST380021A>
wd7: drive supports 16-sector PIO transfers, LBA addressing
wd7: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd7: 32-bit data port
wd7: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd6(cmdide1:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd7(cmdide1:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd8 at atabus5 drive 0: <ST380021A>
wd8: drive supports 16-sector PIO transfers, LBA addressing
wd8: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd8: 32-bit data port
wd8: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd9 at atabus5 drive 1: <ST380021A>
wd9: drive supports 16-sector PIO transfers, LBA addressing
wd9: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd9: 32-bit data port
wd9: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd8(cmdide1:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd9(cmdide1:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
sd0 at scsibus0 target 0 lun 0: <IBM, DDRS-39130D, DC1B> disk fixed
sd0: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors
sd0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers, tagged queueing
Searching for RAID components...
findroot: can't open dev wd1a (6)
boot device: sd0
root on sd0a dumps on sd0b
mountroot: trying smbfs...
mountroot: trying coda...
mountroot: trying msdos...
mountroot: trying cd9660...
mountroot: trying ntfs...
mountroot: trying nfs...
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
cpu1: prelint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: prelint1 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: timer0 200c0<vector=c0,delmode=0,dest=0> 0<target=0>
cpu1: pcint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu1: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu1: err0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: CPU 1 running
init: copying out path `/sbin/init' 11
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
> > > ftp# disklabel /dev/wd6
> > > disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
> > >
> > > only if I type 'disklabel /dev/wd6d'.
> > >
> > > Could someone please help me resolve it?
> >
> > I geuss you have a file called /dev/wd6. What does ls -l /dev/wd6 say ?
>
> Yes, you are right.
> Maybe I make mistakes during 'sh MAKEDEV'.
> Should I just remove them?
>
> Thanks.