freebsd-dev/sys/dev/ata
Poul-Henning Kamp 72d945abcc Add a "spindown" facility to ata-disks: If no requests have been received
for a configurable number of seconds, spin the disk down.  Spin it back
up on the next request.

Notice that the timeout is only armed by a request, so to spin down a
disk you may have to do:

	atacontrol spindown ad10 5
	dd if=/dev/ad10 of=/dev/null count=1

To disable spindown, set timeout to zero:

	atacontrol spindown ad10 0

In order to debug any trouble caused, this code is somewhat noisy on the
console.

Enabling spindown on a disk containing / or /var/log/messages is not
going to do anything sensible.

Spinning a disk up and down all the time will wear it out, use sensibly.

Approved by:	sos
2008-03-17 10:33:23 +00:00
..
ata_if.m Add support for 64bit addressing to AHCI and Marvell controllers. 2007-04-06 16:18:59 +00:00
ata-all.c Add a "spindown" facility to ata-disks: If no requests have been received 2008-03-17 10:33:23 +00:00
ata-all.h Add a "spindown" facility to ata-disks: If no requests have been received 2008-03-17 10:33:23 +00:00
ata-card.c Update copyright headers. 2007-02-21 19:07:19 +00:00
ata-cbus.c o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +00:00
ata-chipset.c Add proper support for the SATA/AHCI part of IXP[67]00 2008-03-07 09:29:19 +00:00
ata-disk.c Add a "spindown" facility to ata-disks: If no requests have been received 2008-03-17 10:33:23 +00:00
ata-disk.h Add a "spindown" facility to ata-disks: If no requests have been received 2008-03-17 10:33:23 +00:00
ata-dma.c Implement a workaround of the datacorruption problem on serverworks HT1000 chipsets. 2007-12-13 11:47:36 +00:00
ata-isa.c Update copyright headers. 2007-02-21 19:07:19 +00:00
ata-lowlevel.c Implement a workaround of the datacorruption problem on serverworks HT1000 chipsets. 2007-12-13 11:47:36 +00:00
ata-pci.c Add generic support for chipsets that say they support AHCI. This should catch new chipsets that we dont know but that we should support. 2007-11-18 14:44:52 +00:00
ata-pci.h Add proper support for the SATA/AHCI part of IXP[67]00 2008-03-07 09:29:19 +00:00
ata-queue.c (ata_completed): When REQUEST SENSE is automatically issued after a failed 2007-03-13 20:31:56 +00:00
ata-raid.c Expand the data structure returned by the ATA RAID status ioctl to include 2007-08-13 18:46:31 +00:00
ata-raid.h Update copyright headers. 2007-02-21 19:07:19 +00:00
ata-usb.c Include usb_port.h 2007-06-23 21:52:05 +00:00
atapi-cam.c Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
atapi-cd.c Dont fumble the ivars on reinit, avoids panic on suspend/resume om some systems that looses thier devices. 2007-11-19 21:11:26 +00:00
atapi-cd.h Update the way we get the mode pages on probe. 2007-10-26 08:59:23 +00:00
atapi-fd.c Dont fumble the ivars on reinit, avoids panic on suspend/resume om some systems that looses thier devices. 2007-11-19 21:11:26 +00:00
atapi-fd.h Update copyright headers. 2007-02-21 19:07:19 +00:00
atapi-tape.c Dont fumble the ivars on reinit, avoids panic on suspend/resume om some systems that looses thier devices. 2007-11-19 21:11:26 +00:00
atapi-tape.h Update copyright headers. 2007-02-21 19:07:19 +00:00