From owner-freebsd-stable@FreeBSD.ORG Fri Oct 17 06:41:51 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90F3316A4B3 for ; Fri, 17 Oct 2003 06:41:51 -0700 (PDT) Received: from mail.classy.jp (mail.classY.jp [202.33.21.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A85943FAF for ; Fri, 17 Oct 2003 06:41:50 -0700 (PDT) (envelope-from fbsdml@typhoon.co.jp) Received: from typhoon.co.jp (waterfall.typhoon.co.jp [202.33.21.60]) (authenticated bits=0)h9HDfT1J000741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Oct 2003 22:41:46 +0900 (JST) Message-ID: <3F8FF186.9010501@typhoon.co.jp> Date: Fri, 17 Oct 2003 22:41:26 +0900 From: N Fung User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: checked by Vexira Milter 1.0.4; VAE 6.22.0.1; VDF 6.22.0.8 Subject: ATA -> xDMA mode corrupts files. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 13:41:51 -0000 Hello! I think I just came across a bug (?) for for device ATA. Please excuse me if this has been reported already for I have just joined this list. I've googled for it but found no mention of this. I installed 4.8-RELEASE on a DELL PE600SC (see dmesg below) a few weeks ago. Everything was fine until a routine check on things by doing "gunzip -t" on some .gz files, when I found that ALL of the gzip-ed files had CRC errors, i.e. none of the gzipped files could be unzipped:( (I do daily "dump" onto a spare hard disk and then gzip the files.) There were NO error messages whatsoever in syslog. I tried manually gzipping some files. Gzip would finish WITHOUT errors. However, none of the zipped filed can be unzipped! To cut to the chase, I had to insert hw.ata.ata_dma=0 into /boot/loader.conf before things would work properly! I have tried this with 4.7R, 4.8R and 4.9RC2; same thing, must say hw.ata.ata_hw=0 (the drives would then be in PIO4 mode) before files can be written properly. Hopefully this will save other PE600SC owners some time in figuring what's happening to their files! Regards, N. Fung ---dmesg starts--- 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.8-RELEASE #0: Thu Apr 3 13:07:15 GMT 2003 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Celeron(R) CPU 2.00GHz (1999.79-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff real memory = 268369920 (262080K bytes) avail memory = 255901696 (249904K bytes) pnpbios: Bad PnP BIOS data checksum Preloaded elf kernel "kernel" at 0xc051d000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 7 entries at 0xc00fc2c0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 em0: port 0xecc0-0xecff mem 0xfe120000-0xfe13ffff irq 10 at device 2.0 on pci0 em0: Speed:10 Mbps Duplex:Half fxp0: port 0xec80-0xecbf mem 0xfe100000-0xfe11ffff,0xfe142000-0xfe142fff irq 5 at device 3.0 on pci0 fxp0: Ethernet address 00:02:b3:d4:b2:35 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 8.0 atapci0: port 0x900-0x90f,0x36c-0x36f,0x168-0x16f,0x3ec-0x3ef,0x1e8-0x1ef irq 11 at device 14.0 on pci0 ata2: at 0x1e8 on atapci0 ata3: at 0x168 on atapci0 atapci1: port 0x8b0-0x8bf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 ohci0: mem 0xfe140000-0xfe140fff irq 3 at device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered isab0: at device 15.3 on pci0 isa0: on isab0 pcib255: on motherboard pci255: on pcib255 pcib1: on motherboard pci1: on pcib1 orm0: