ata power save broken in 5.3

From: Jimmy Selgen <spamtrap1_at_devlix.dk>
Date: Tue, 09 Nov 2004 10:34:51 +0100
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_at_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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 402653184 (384 MB)
avail memory = 384331776 (366 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> pcibus 0 on
motherboard
pir0: <PCI Interrupt Routing Table: 6 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem
0x44000000-0x47ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x1000-0x101f mem
0x41000000-0x410fffff,0x41200000-0x41200fff irq 11 at device 13.0 on
pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:90:27:42:fd:fe
fxp1: <Intel 82558 Pro/100 Ethernet> port 0x1020-0x103f mem
0x41100000-0x411fffff,0x41300000-0x41300fff irq 11 at device 14.0 on
pci0
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:a0:c9:de:52:f8
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> 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: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1040-0x105f irq
11 at device 20.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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: <bridge, PCI-unknown> at device 20.3 (no driver attached)
cpu0 on motherboard
orm0: <ISA Option ROMs> at iomem 0xe0000-0xe7fff,0xc0000-0xcc7ff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on
isa0
fdc0: [FAST]
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/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> 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: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
Timecounter "TSC" frequency 348486888 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 114473MB <WDC WD1200JB-00DUA0/65.13G65> [232581/16/63] at
ata0-master UDMA33
ad1: 156334MB <Maxtor 6Y160P0/YAR41BW0> [317632/16/63] at ata0-slave
UDMA33
acd0: CDRW <SONY CD-RW CRX140E/1.0c> at ata1-master UDMA33
ad3: 152627MB <WDC WD1600JB-00EVA0/15.05R15> [310101/16/63] at
ata1-slave UDMA33Mounting root from ufs:/dev/ad0s1a
Received on Tue Nov 09 2004 - 08:35:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC