From owner-freebsd-current@FreeBSD.ORG Tue Nov 9 09:35:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D0E716A4CE for ; Tue, 9 Nov 2004 09:35:37 +0000 (GMT) Received: from chantry.devlix.dk (chantry.devlix.dk [195.41.43.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49CD143D48 for ; Tue, 9 Nov 2004 09:35:36 +0000 (GMT) (envelope-from spamtrap1@devlix.dk) Received: by chantry.devlix.dk (Postfix, from userid 1002) id D166E62E8; Tue, 9 Nov 2004 10:35:33 +0100 (CET) Received: from localhost (localhost.devlix.dk [127.0.0.1]) by chantry.devlix.dk (Postfix) with ESMTP id 50618621A for ; Tue, 9 Nov 2004 10:35:18 +0100 (CET) Received: from chantry.devlix.dk ([127.0.0.1]) by localhost (chantry.devlix.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00502-01 for ; Tue, 9 Nov 2004 10:35:13 +0100 (CET) Received: from 192.168.1.175 (unknown [192.168.1.175]) by chantry.devlix.dk (Postfix) with ESMTP id 4876E6218 for ; Tue, 9 Nov 2004 10:35:12 +0100 (CET) From: Jimmy Selgen To: freebsd-current@freebsd.org Content-Type: text/plain Date: Tue, 09 Nov 2004 10:34:51 +0100 Message-Id: <1099992891.5398.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at devlix.dk X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on chantry.devlix.dk X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=ham version=3.0.1 Subject: ata power save broken in 5.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2004 09:35:37 -0000 Hi. Somewhere around BETA7 ATA power save stopped working. When trying to access a disk that has spun down i get the following in /var/log/messages : Nov 9 03:01:06 chantry kernel: ad1: TIMEOUT - READ_DMA retrying (2 retries left) LBA=575 Nov 9 03:01:07 chantry kernel: ad1: FAILURE - READ_DMA timed out These are "normal". The server has been running with ata powersave for 3 years or so, and I've always gotten those messages when trying to access a drive that is not spinning. The new thing(s) are, when i access the disks again by a "ls" it shows me the contents of each directory within the mount location, i.e. : ls /mnt/disk1 should show : docs/ src/ Instead i get a listing of each dir like i had done a "ls /mnt/disk1/*" After this the disk runs normal again. The other scenario is that i simply get the following when accessing the mount point : mount: /mnt/disk1: Bad file descriptor On both scenarios i get a page fault panic when rebooting the machine (as the last thing after syncing buffers). The first one who tells me it's because my disk is dying gets a free "pie in the face". I've been hearing that for 3 years now, and it's worked fine from <5.0 to 5.3-BETA6. It _still_ works fine with 5.2.1 /Jimmy Output from dmesg : Copyright (c) 1992-2004 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 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (348.49-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff real memory = 402653184 (384 MB) avail memory = 384331776 (366 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 agp0: mem 0x44000000-0x47ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) fxp0: port 0x1000-0x101f mem 0x41000000-0x410fffff,0x41200000-0x41200fff irq 11 at device 13.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:90:27:42:fd:fe fxp1: port 0x1020-0x103f mem 0x41100000-0x411fffff,0x41300000-0x41300fff irq 11 at device 14.0 on pci0 miibus1: on fxp1 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:a0:c9:de:52:f8 isab0: at device 20.0 on pci0 isa0: on isab0 atapci0: port 0x1060-0x106f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 20.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 uhci0: port 0x1040-0x105f irq 11 at device 20.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 20.3 (no driver attached) cpu0 on motherboard orm0: at iomem 0xe0000-0xe7fff,0xc0000-0xcc7ff on isa0 pmtimer0 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 fdc0: [FAST] ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> 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 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 348486888 Hz quality 800 Timecounters tick every 10.000 msec ad0: 114473MB [232581/16/63] at ata0-master UDMA33 ad1: 156334MB [317632/16/63] at ata0-slave UDMA33 acd0: CDRW at ata1-master UDMA33 ad3: 152627MB [310101/16/63] at ata1-slave UDMA33Mounting root from ufs:/dev/ad0s1a