Date: Sun, 16 Mar 2003 19:30:50 +1100 From: "J.'LoneWolf' Mattsson" <lonewolf@earthmagic.org> To: freebsd-stable@freebsd.org, sos@freebsd.org Subject: Sil 0680 ATA133 not attaching properly Message-ID: <5.1.0.14.2.20030316190631.01c67ac0@helios.earthmagic.org>
next in thread | raw e-mail | index | archive | help
Hi all/Soren, Quite a few months ago I purchased what turned out to be a Silicon Image Sil 0680 ATA133 pci controller card. At the time it wasn't even supported by the ATA driver, but that was quickly remedied by Soren - much to my delight :) Today, I finally got around to swap out the motherboard/cpu/ram from under the setup I was using (an old P120 system), to an ABIT BE6, P3-450, 768MB which until very recently was my windoze box. Unfortunately, for some reason the Silicon Image controller is not attaching properly under the new system, and hence I've lost access to 140gig worth of storage. I've fiddled with the BIOS settings with no luck. In the BIOS summary screen I see that there's a "Mass storage controller" sitting on IRQ 5 (which is what I specified in the BIOS with the last set of changes). When I boot FreeBSD however, the Sil0680 is detected at irq 0, and then reports "Busmastering DMA not configured", followed by a "probe allocation failed" message. Of worth noting could be that the card does not appear to be initialized by the BIOS - I see the Adaptec controller do its bits, the worthless HPT366 on-board IDE controller initialize, but nothing in regards to the Sil0680. I'm not a 100% sure if it used to show anything before (the system doesn't normally have a monitor attached), but I find it a bit suspect never the less. Could it by any chance be that the HPT366 is interfering and blocking the initialization of the Sil? I should probably mention that when I was using this system for windows, I did have an external IDE controller connected to it as well, and that was working just fine (a WinFast-100, IIRC). Is there anyone who might have a good idea of what's going on here? I'd really, really like to get access to those two drives hanging off this controller again... :) Below are the verbose dmesg, and a pciconf -v -l listing. The system is of 4.7-RC level. I'd prefer not having to make build/installworld, but if there have been any changes that you believe would resolve this issue, I'll of course have to do so. I'll go and try plugging the card into a different PCI slot now. The system is a pain to access physically, so I thought I'd send out this email before I spent the next couple of hours swapping the controller card around. And before someone suggests it, the HPT366 is not possible to disable (to my knowledge at least). I've already been over the motherboard for a jumper to kill it off, but with no luck. If someone knows how to get rid of it from a BE6 board, please feel free to tell me! And no, it's not capable of handling the two drives hanging off the Sil controller either. It says it is, and it can write to the disks, but then there's the small issue of reading back what was just written - which it can't do. Many thanks in advance, /Johny Verbose dmesg: 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.7-RC #0: Sun Mar 16 18:15:52 EST 2003 root@sarah.zone2.earthmagic.org:/usr/src/sys/compile/TANK Calibrating clock(s) ... TSC clock: 515505330 Hz, i8254 clock: 1193300 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 III/Pentium III Xeon/Celeron (515.46-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x673 Stepping = 3 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory = 805306368 (786432K bytes) Physical memory chunk(s): 0x00001000 - 0x0009ffff, 651264 bytes (159 pages) 0x00341000 - 0x2fff7fff, 801861632 bytes (195767 pages) avail memory = 779919360 (761640K bytes) bios32: Found BIOS32 Service Directory header at 0xc00faf90 bios32: Entry = 0xfb410 (c00fb410) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xb440 pnpbios: Found PnP BIOS data at 0xc00fc010 pnpbios: Entry = f0000:c038 Rev = 1.0 Other BIOS signatures found: ACPI: 00000000 Preloaded elf kernel "kernel" at 0xc031a000. Pentium Pro MTRR support enabled Creating DISK md0 md0: Malloc disk pci_open(1): mode 1 addr port (0x0cf8) is 0x8000005c pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=71908086) Using $PIR table, 8 entries at 0xc00fdef0 apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard found-> vendor=0x8086, dev=0x7190, revid=0x03 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base e0000000, size 26 found-> vendor=0x8086, dev=0x7191, revid=0x03 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=1 secondarybus=1 found-> vendor=0x8086, dev=0x7110, revid=0x02 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x8086, dev=0x7111, revid=0x01 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[20]: type 1, range 32, base 0000f000, size 4 found-> vendor=0x8086, dev=0x7112, revid=0x01 class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=12 map[20]: type 1, range 32, base 0000c000, size 5 found-> vendor=0x8086, dev=0x7113, revid=0x02 class=06-80-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[90]: type 1, range 32, base 00005000, size 4 found-> vendor=0x10ec, dev=0x8139, revid=0x10 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=15 map[10]: type 1, range 32, base 0000c400, size 8 map[14]: type 1, range 32, base e9000000, size 8 found-> vendor=0x102b, dev=0x0519, revid=0x01 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 map[10]: type 1, range 32, base e4000000, size 14 map[14]: type 1, range 32, base e5000000, size 23 found-> vendor=0x9004, dev=0x6178, revid=0x03 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base 0000c800, size 8 map[14]: type 1, range 32, base e9001000, size 12 found-> vendor=0x1095, dev=0x0680, revid=0x01 class=01-01-85, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=0 map[10]: type 1, range 32, base 00000000, size 3 map[14]: type 1, range 32, base 00000000, size 2 map[18]: type 1, range 32, base 00000000, size 3 map[1c]: type 1, range 32, base 00000000, size 2 map[20]: type 1, range 32, base 0000f000, size 4 found-> vendor=0x1103, dev=0x0004, revid=0x01 class=01-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=a, irq=15 map[10]: type 1, range 32, base 0000cc00, size 3 map[14]: type 1, range 32, base 0000d000, size 2 map[20]: type 1, range 32, base 0000d400, size 8 found-> vendor=0x1103, dev=0x0004, revid=0x01 class=01-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=b, irq=15 map[10]: type 1, range 32, base 0000d800, size 3 map[14]: type 1, range 32, base 0000dc00, size 2 map[20]: type 1, range 32, base 0000e000, size 8 pci0: <PCI bus> on pcib0 pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xf000 ata0: mask=03 ostat0=50 ostat2=02 ata0-master: ATAPI 00 00 ata0-slave: ATAPI 22 22 ata0: mask=03 stat0=50 stat1=22 ata0-master: ATA 01 a5 ata0-slave: ATA 0f 0f ata0: devices=01 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xf008 ata1: at 0x170 irq 15 on atapci0 pci0: <Intel 82371AB/EB (PIIX4) USB controller> (vendor=0x8086, dev=0x7112) at 7.2 irq 12 chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at device 7.3 on pci0 rl0: <RealTek 8139 10/100BaseTX> port 0xc400-0xc4ff mem 0xe9000000-0xe90000ff irq 15 at device 11.0 on pci0 using shared irq15. rl0: Ethernet address: 00:40:f4:28:9d:20 miibus0: <MII bus> on rl0 rlphy0: <RealTek internal media interface> on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: rl0 attached pci0: <Matrox MGA Millennium 2064W graphics accelerator> (vendor=0x102b, dev=0x0519) at 13.0 irq 10 ahc_pci0: <Adaptec 2940A Ultra SCSI adapter> port 0xc800-0xc8ff mem 0xe9001000-0xe9001fff irq 11 at device 15.0 on pci0 ahc_pci0: Reading SEEPROM...done. ahc_pci0: internal 50 cable is present ahc_pci0: external cable not present ahc_pci0: BIOS eeprom not present ahc_pci0: Low byte termination Enabled ahc_pci0: Downloading Sequencer Program... 450 instructions downloaded aic7860: Ultra Single Channel A, SCSI Id=0, 3/253 SCBs atapci1: <Sil 0680 ATA133 controller> port 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 17.0 on pci0 atapci1: Busmastering DMA not configured ata2: probe allocation failed atapci2: <HighPoint HPT366 ATA66 controller> port 0xd400-0xd4ff,0xd000-0xd003,0xcc00-0xcc07 irq 15 at device 19.0 on pci0 ata-: ata2 exists, using next available unit number ata3: iobase=0xcc00 altiobase=0xd002 bmaddr=0xd400 ata3: mask=03 ostat0=20 ostat2=30 ata3-master: ATAPI 20 20 ata3-slave: ATAPI 30 30 ata3: mask=03 stat0=20 stat1=30 ata3-master: ATA 25 25 ata3-slave: ATA 25 25 ata3: devices=00 ata3: at 0xcc00 on atapci2 atapci3: <HighPoint HPT366 ATA66 controller> port 0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 15 at device 19.1 on pci0 ata-: ata2 exists, using next available unit number ata4: iobase=0xd800 altiobase=0xdc02 bmaddr=0xe000 ata4: mask=03 ostat0=20 ostat2=30 ata4-master: ATAPI 20 20 ata4-slave: ATAPI 30 30 ata4: mask=03 stat0=20 stat1=30 ata4-master: ATA 25 25 ata4-slave: ATA 25 25 ata4: devices=00 ata4: at 0xd800 on atapci3 ata-: ata0 exists, using next available unit number ata-: ata1 exists, using next available unit number Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc87ff on isa0 ata5 failed to probe at port 0x1f0 irq 14 on isa0 ata6 failed to probe at port 0x170 irq 15 on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0067 atkbd: keyboard ID 0x41ab (2) kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000 psm0: current command byte:0067 psm0: failed to reset the aux device. vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k VGA parameters upon power-up 50 18 10 00 00 00 03 00 02 67 60 4f 50 83 55 81 bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff VGA parameters in BIOS for mode 24 50 18 10 00 10 00 03 00 02 67 60 4f 50 83 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff EGA/VGA parameters to be used for mode 24 50 18 10 00 10 00 03 00 02 67 60 4f 50 83 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) sio0: irq maps: 0x1 0x11 0x1 0x1 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: irq maps: 0x1 0x9 0x1 0x1 sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: parallel port found at 0x378 ppc0: using extended I/O port range ppc0: ECP SPP ECP+EPP SPP ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port isa_probe_children: probing PnP devices BIOS Geometries: 0:020c3f3f 0..524=525 cylinders, 0..63=64 heads, 1..63=63 sectors 0 accounted for Device configuration finished. bpf: lo0 attached ad0: success setting WDMA2 on Intel chip Creating DISK ad0 ar: FreeBSD check1 failed ad0: <ST51080A/09.09.01> ATA-0 disk at ata0-master ad0: 1033MB (2116800 sectors), 2100 C, 16 H, 63 S, 512 B ad0: 1 secs/int, 1 depth queue, WDMA2 ad0: piomode=4 dmamode=2 udmamode=-1 cblid=0 Waiting 3 seconds for SCSI devices to settle (noperiph:ahc0:0:-1:-1): SCSI bus reset delivered. 0 SCBs aborted. (probe4:ahc0:0:5:0): INQUIRY. CDB: 12 1 80 0 ff 0 (probe4:ahc0:0:5:0): ILLEGAL REQUEST asc:24,0 (probe4:ahc0:0:5:0): Invalid field in CDB ((ahc_pci0:A:5:0): Sending SDTR period c, offset f probe3:ahc0:0:4:0): INQUIRY. CDB: (ahc_pci0:A:5:0): Received SDTR period c, offset f Filtered to period c, offset f ahc_pci0: target 5 synchronous at 20.0MHz, offset = 0xf 12 1 80 0 ff 0 (probe3:ahc0:0:4:0): ILLE(ahc_pci0:A:5:0): Sending SDTR period c, offset f GAL REQUEST asc:24,0 (ahc_pci0:A:5:0): Received SDTR period c, offset f Filtered to period c, offset f (probe3:ahc0:0:4:0): Invalid field in CDB sks:cf,2 (ahc_pci0:A:4:0): Sending SDTR period c, offset f (ahc_pci0:A:4:0): Received SDTR period 32, offset 8 Filtered to period 32, offset 8 ahc_pci0: target 4 synchronous at 5.0MHz, offset = 0x8 (ahc_pci0:A:4:0): Sending SDTR period 32, offset 8 (ahc_pci0:A:4:0): Received SDTR period 32, offset 8 Filtered to period 32, offset 8 sa0 at ahc0 bus 0 target 4 lun 0 sa0: <HP HP35470A 1009> Removable Sequential Access SCSI-2 device sa0: 5.000MB/s transfers (5.000MHz, offset 8) Creating DISK cd0 pass0 at ahc0 bus 0 target 4 lun 0 pass0: <HP HP35470A 1009> Removable Sequential Access SCSI-2 device pass0: 5.000MB/s transfers (5.000MHz, offset 8) pass1 at ahc0 bus 0 target 5 lun 0 pass1: <TEAC CD-ROM CD-532S 1.0A> Removable CD-ROM SCSI-2 device pass1: 20.000MB/s transfers (20.000MHz, offset 15) Mounting root from ufs:/dev/ad0s1a (ahc_pci0:A:5:0): Sending SDTR period c, offset f (ahc_pci0:A:5:0): Received SDTR period c, offset f Filtered to period c, offset f (ahc_pci0:A:5:0): Sending SDTR period c, offset f (ahc_pci0:A:5:0): Received SDTR period c, offset f Filtered to period c, offset f (cd0:ahc0:0:5:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (cd0:ahc0:0:5:0): NOT READY asc:3a,0 (cd0:ahc0:0:5:0): Medium not present cd0 at ahc0 bus 0 target 5 lun 0 cd0: <TEAC CD-ROM CD-532S 1.0A> Removable CD-ROM SCSI-2 device cd0: 20.000MB/s transfers (20.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present ad0s1: type 0xa5, start 63, end = 2116799, size 2116737 : OK start_init: trying /sbin/init pciconf -v -l: chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x71908086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82443BX/ZX 440BX/ZX CPU to PCI Bridge (AGP Implemented)' class = bridge subclass = HOST-PCI pcib1@pci0:1:0: class=0x060400 card=0x00000000 chip=0x71918086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge' class = bridge subclass = PCI-PCI isab0@pci0:7:0: class=0x060100 card=0x00000000 chip=0x71108086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M ISA Bridge' class = bridge subclass = PCI-ISA atapci0@pci0:7:1: class=0x010180 card=0x00000000 chip=0x71118086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M IDE Controller' class = mass storage subclass = ATA none0@pci0:7:2: class=0x0c0300 card=0x00000000 chip=0x71128086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M USB Interface' class = serial bus subclass = USB chip1@pci0:7:3: class=0x068000 card=0x00000000 chip=0x71138086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82371AB/EB/MB PIIX4/4E/4M Power Management Controller' class = bridge subclass = PCI-unknown rl0@pci0:11:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RT8139 (A/B/C/8130) Fast Ethernet Adapter' class = network subclass = ethernet none1@pci0:13:0: class=0x030000 card=0x00000000 chip=0x0519102b rev=0x01 hdr=0x00 vendor = 'Matrox Graphics Inc' device = 'MGA-2064W Storm (Millennium board)' class = display subclass = VGA ahc_pci0@pci0:15:0: class=0x010000 card=0x78619004 chip=0x61789004 rev=0x03 hdr=0x00 vendor = 'Adaptec Inc' device = 'AIC-7861 AHA-2940AU PCI SCSI Controller' class = mass storage subclass = SCSI atapci1@pci0:17:0: class=0x010185 card=0x06801095 chip=0x06801095 rev=0x01 hdr=0x00 vendor = 'CMD Technology Inc.' device = 'PCI-0680 Ultra ATA133 EIDE Controller' class = mass storage subclass = ATA atapci2@pci0:19:0: class=0x018000 card=0x00000000 chip=0x00041103 rev=0x01 hdr=0x00 vendor = 'HighPoint Technologies Inc.' device = 'HPT366/368/370/372 UDMA66/100 EIDE Controller' class = mass storage atapci3@pci0:19:1: class=0x018000 card=0x00000000 chip=0x00041103 rev=0x01 hdr=0x00 vendor = 'HighPoint Technologies Inc.' device = 'HPT366/368/370/372 UDMA66/100 EIDE Controller' class = mass storage Differences between what the dmesg used to look like and what it looks like now: From old dmesg: atapci1: <Sil 0680 ATA133 controller> port 0xc400-0xc40f,0xc800-0xc803,0xd000-0xd007,0xd400-0xd403,0xd800-0xd807 mem 0xfbeed000-0xfbeed0ff irq 11 at device 11.0 on pci0 ata2: at 0xd800 on atapci1 ata3: at 0xd000 on atapci1 New dmesg: atapci1: <Sil 0680 ATA133 controller> port 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 17.0 on pci0 atapci1: Busmastering DMA not configured ata2: probe allocation failed The port numbers look completely stuffed up, there's no mem area, and the irq is 0... #-----------------------------------# . Johny Mattsson / \__/\ lonewolf@earthmagic.org /' , : http://www.earthmagic.org ; ( o o irc.sorcery.net:9000 as LoneWolf / , ~. \ System Designer / Support Engineer / ( `- ..__" #-----------------------------------# ' /' 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?5.1.0.14.2.20030316190631.01c67ac0>