From owner-freebsd-current Mon Apr 3 19: 0:50 2000 Delivered-To: freebsd-current@freebsd.org Received: from henry.cs.adfa.edu.au (henry.cs.adfa.edu.au [131.236.21.158]) by hub.freebsd.org (Postfix) with ESMTP id E69AA37B758 for ; Mon, 3 Apr 2000 19:00:36 -0700 (PDT) (envelope-from wkt@henry.cs.adfa.edu.au) Received: (from wkt@localhost) by henry.cs.adfa.edu.au (8.9.2/8.9.3) id MAA00911 for freebsd-current@freebsd.org; Tue, 4 Apr 2000 12:00:29 +1000 (EST) From: Warren Toomey Message-Id: <200004040200.MAA00911@henry.cs.adfa.edu.au> Subject: ATA & 82C596 bug in 4.0-RELEASE? To: freebsd-current@freebsd.org Date: Tue, 4 Apr 2000 12:00:29 +1000 (EST) Reply-To: wkt@cs.adfa.edu.au X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ Hope this is the right mailing list. I'm expecting I need some patches in - current to fix my problem. ] I tried to install 4.0-RELEASE on a completely new PC system, but the install failed with ATA write errors and resets. I moved the disk to another PC and installed 4.0 via manual disklabels, newfs, bin + src extraction. 4.0 booted fine on this system (a Dell Optiplex GX1). Back on the new system, a 993AS motherboard with VIA 82C596 ATA33 controller, and [25232/16/63] 13Gig disk at ata0-master using UDMA33. It boots and then takes out the root partition, again with ATA write errors and resets. I searched through the -current mailing list archives, rebuilt /, and added this command near the top of /etc/rc: # Ensure stupid IDE controller doesn't do DMA and stuff the filesystem /sbin/sysctl -w hw.atamodes="pio,dma" I see that Soren added some 89C596 support to ata/ata-disk.c on Jan 3, 2000. It looks like this code is in the 4.0-RELEASE support tree. Can anybody tell me if this 89C596 support is still experimental, or alternatively are there any recent patches/changes which I should pick up? I'm happy to cvsup either from 4.0-stable or 4.0-current if it would help to fix this problem. Many thanks in advance for any suggestions! Warren P.S Attached is the dmesg from a successful boot where I set pio mode in /etc/rc. 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-RELEASE #0: Mon Mar 20 22:50:22 GMT 2000 root@monster.cdrom.com:/usr/src/sys/compile/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x651 Stepping = 1 Features=0x183f9ff real memory = 67043328 (65472K bytes) avail memory = 61100032 (59668K bytes) Preloaded elf kernel "kernel" at 0xc03c0000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 pci1: at 0.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xe000-0xe00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 pci0: at 7.2 irq 11 fxp0: port 0xe800-0xe83f mem 0xdd000000-0xdd0fffff,0xdd100000-0xdd100fff irq 10 at device 9.0 on pci0 fxp0: Ethernet address 00:90:27:a4:6a:d2 fxp0: supplying EUI64: 00:90:27:ff:fe:a4:6a:d2 pcib1: on motherboard pci2: on pcib1 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60-0x6f on isa0 atkbd0: irq 1 on atkbdc0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppi0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port plip0: on ppbus0 ad0: 12419MB [25232/16/63] at ata0-master using UDMA33 Mounting root from ufs:/dev/ad0a fxp0: starting DAD for fe80:0001::0290:27ff:fea4:6ad2 fxp0: DAD complete for fe80:0001::0290:27ff:fea4:6ad2 - no duplicates found To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message