From owner-freebsd-hardware@FreeBSD.ORG Mon Feb 23 03:54:53 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9170816A4CE for ; Mon, 23 Feb 2004 03:54:53 -0800 (PST) Received: from mail016.syd.optusnet.com.au (mail016.syd.optusnet.com.au [211.29.132.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BBC643D1F for ; Mon, 23 Feb 2004 03:54:52 -0800 (PST) (envelope-from tfrank@optushome.com.au) Received: from marvin.home.local (c211-28-241-189.eburwd5.vic.optusnet.com.au [211.28.241.189])i1NBsnw05731 for ; Mon, 23 Feb 2004 22:54:49 +1100 Received: by marvin.home.local (Postfix, from userid 1001) id F00082B9; Mon, 23 Feb 2004 22:54:48 +1100 (EST) Date: Mon, 23 Feb 2004 22:54:48 +1100 From: Tony Frank To: freebsd-hardware@freebsd.org Message-ID: <20040223115448.GA43264@marvin.home.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Any known issues regarding VIA IDE chips? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 11:54:53 -0000 Hi, I am having trouble with a Aplus motherboard I have. Board is based around VIA 82C691 chipset with VIA 82C586B IDE chip. ata(4) shows the chip as being supported. While it's detected and my drives appear I keep getting messages: ad0: WRITE command timeout tag=0 serv=0 - resetting ata0: resetting devices .. ata0: mask=03 ostat0=58 ostat2=00 ad0: ATAPI 00 00 ata0-slave: ATAPI 00 00 ata0: mask=03 stat0=50 stat1=00 ad0: ATA 01 a5 ata0: devices=01 ad0: success setting UDMA2 on VIA chip This happens also for ad2. When this occurs the system 'freezes' until the ATA reset etc is completed. Cables & drives work just fine on intel 440BX board. Have swapped 'basic' cables with UDMA66 rated cables (despite drives & board only being rated for ATA33) dmesg briefly: atapci0: port 0xd000-0xd00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 [ ... ] ad0: success setting UDMA2 on VIA chip Creating DISK ad0 ar: FreeBSD check1 failed ad0: ATA-4 disk at ata0-master ad0: 8063MB (16514064 sectors), 16383 C, 16 H, 63 S, 512 B ad0: 16 secs/int, 1 depth queue, UDMA33 ad0: piomode=4 dmamode=2 udmamode=4 cblid=1 ad2: success setting UDMA2 on VIA chip Creating DISK ad2 ar: FreeBSD check1 failed ad2: ATA-3 disk at ata1-master ad2: 3093MB (6335280 sectors), 6704 C, 15 H, 63 S, 512 B ad2: 16 secs/int, 1 depth queue, UDMA33 ad2: piomode=4 dmamode=2 udmamode=2 cblid=0 FreeBSD version: FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003 root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC In meantime I will attempt disabling dma via sysctl and then I guess also review -STABLE to see how many ATA fixes were made since 4.9-RELEASE. Any extra ideas will be appreciated! Verbose boot messages below: SMAP type=01 base=0000000000000000 len=000000000009fc00 SMAP type=02 base=000000000009fc00 len=0000000000000400 SMAP type=02 base=00000000000f0000 len=0000000000010000 SMAP type=02 base=00000000ffff0000 len=0000000000010000 SMAP type=01 base=0000000000100000 len=0000000007ef0000 SMAP type=03 base=0000000007ff3000 len=000000000000d000 SMAP type=04 base=0000000007ff0000 len=0000000000003000 Copyright (c) 1992-2003 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.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003 root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC Calibrating clock(s) ... TSC clock: 267248865 Hz, i8254 clock: 1193075 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 II/Pentium II Xeon/Celeron (267.27-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x633 Stepping = 3 Features=0x80f9ff real memory = 134152192 (131008K bytes) Physical memory chunk(s): 0x000001000 - 0x00009efff, 647168 bytes (158 pages) 0x000566000 - 0x007fe7fff, 128458752 bytes (31362 pages) config> en apm0 avail memory = 125194240 (122260K bytes) bios32: Found BIOS32 Service Directory header at 0xc00fac60 bios32: Entry = 0xfb0e0 (c00fb0e0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xb110 pnpbios: Found PnP BIOS data at 0xc00fbdf0 pnpbios: Entry = f0000:be18 Rev = 1.0 Other BIOS signatures found: ACPI: 000f7d30 Preloaded elf kernel "kernel" at 0xc053f000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc053f09c. Pentium Pro MTRR support enabled Creating DISK md0 md0: Malloc disk Math emulator present pci_open(1): mode 1 addr port (0x0cf8) is 0x80000060 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=06911106) Using $PIR table, 7 entries at 0xc00fdc40 pcib-: pcib0 exists, using next available unit number apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard found-> vendor=0x1106, dev=0x0691, revid=0x01 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base d0000000, size 26 found-> vendor=0x1106, dev=0x8598, revid=0x00 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=1 secondarybus=1 found-> vendor=0x1106, dev=0x0586, revid=0x41 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x1106, dev=0x0571, revid=0x06 class=01-01-8a, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[20]: type 1, range 32, base 0000d000, size 4 found-> vendor=0x1106, dev=0x3038, revid=0x02 class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=11 map[20]: type 1, range 32, base 0000d400, size 5 found-> vendor=0x1106, dev=0x3040, revid=0x10 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 found-> vendor=0x8086, dev=0x1229, revid=0x08 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 map[10]: type 1, range 32, base d6100000, size 12 map[14]: type 1, range 32, base 0000d800, size 6 map[18]: type 1, range 32, base d6000000, size 20 found-> vendor=0x1002, dev=0x4754, revid=0x48 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base d5000000, size 24 map[14]: type 1, range 32, base 0000dc00, size 8 found-> vendor=0x9004, dev=0x8178, revid=0x01 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base 0000e000, size 8 map[14]: type 1, range 32, base d6101000, size 12 pci0: on pcib0 agp0: mem 0xd0000000-0xd3ffffff at device 0.0 on pci0 agp0: allocating GATT for aperture of size 256M pcib2: at device 1.0 on pci0 pci1: on pcib2 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xd000-0xd00f at device 7.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xd000 ata0: mask=03 ostat0=50 ostat2=00 ata0-master: ATAPI 00 00 ata0-slave: ATAPI 00 00 ata0: mask=03 stat0=50 stat1=00 ata0-master: ATA 01 a5 ata0: devices=01 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xd008 ata1: mask=03 ostat0=50 ostat2=00 ata1-master: ATAPI 00 00 ata1-slave: ATAPI 00 00 ata1: mask=03 stat0=50 stat1=00 ata1-master: ATA 01 a5 ata1: devices=01 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 11 at device 7.2 on pc i0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: (vendor=0x1106, dev=0x3040) at 7.3 fxp0: port 0xd800-0xd83f mem 0xd6000000-0xd60ffff f,0xd6100000-0xd6100fff irq 10 at device 15.0 on pci0 fxp0: using memory space register mapping fxp0: Ethernet address 00:04:ac:e5:d3:59 fxp0: PCI IDs: 8086 1229 1014 305c 0008 fxp0: Dynamic Standby mode is disabled inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: fxp0 attached pci0: (vendor=0x1002, dev=0x4754) at 16.0 ahc0: port 0xe000-0xe0ff mem 0xd6101000-0xd610 1fff irq 5 at device 19.0 on pci0 ahc0: Defaulting to MEMIO off ahc0: Reading SEEPROM...done. ahc0: internal 50 cable not present, internal 68 cable is present ahc0: external cable not present ahc0: BIOS eeprom is present ahc0: High byte termination Enabled ahc0: Low byte termination Enabled ahc0: Downloading Sequencer Program... 440 instructions downloaded ahc0: Features 0x5, Bugs 0x11, Flags 0x20485540 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs pci-: pci1 exists, using next available unit number pcib1: on motherboard pci2: on pcib1 ex_isa_identify() 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: