Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178559 - New libata/scsi spindown functionality in 2.6.22 requires changes in userland shutdown(8)
Summary: New libata/scsi spindown functionality in 2.6.22 requires changes in userland...
Status: RESOLVED DUPLICATE of bug 174373
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-05-14 20:03 UTC by Francesco Pretto
Modified: 2007-05-14 20:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Pretto 2007-05-14 20:03:44 UTC
As from linux kernel version 2.6.22-rc1, a refactored suspend and resume support for ata disks has been merged [1] [2]. Lack of feature on prior kernels libata drivers and incorrect behavior on userland tools are causing anomalous head parking noises on a considerably number of hard disks, as various bug reports appeared in the web [3] [4]. This is not only an annoying problem but it's considered a possible risk of reduced hard disk lifespan (especially for laptop users). A page in the linux-ata home site has been set up in the to assist userland init tools developers in the migration [5].

The following extract by Tejun Heo, the author of the concerning kernel patches, illustrate the approach that should adopted in updated shutdown(8)/halt(8) implementations.

>  * Check whether /sys/modules/libata/parameters/spindown_compat
>    exists.  If it does, write 0 to it.
>  * For each libata harddisk {
>        * Check whether /sys/class/scsi_disk/h:c:i:l/manage_start_stop
>          exists.  Iff it doesn't, synchronize cache and spin the disk
>          down as before.
>  }


Reproducible: Always

Steps to Reproduce:
An affected system using libata on a kernel prior to 2.6.22rc1 and an un-updated shutdown(8) implementation, shutting down.
Actual Results:  
Anomalous hard disk head parking noise.

Expected Results:  
Correct hard disk spindown.

A selectable kernel option to alleviate the problem on affected systems until it's has been fully addressed by userland shutdown(8)/halt(8) implementations has been also merged in 2.6.22rc1 . However, as stated by Tejun Heo, author of the concerning patches:

> To accelerate shutdown(8) updates, if the compat mode is in use, this
> patch prints BIG FAT warning for five seconds during shutdown (the
> optimal interval to annoy the user just the right amount discovered by
> hours of tireless usability testing).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-14 20:39:33 UTC
Please, continue in the pending bug. Thanks.

*** This bug has been marked as a duplicate of bug 174373 ***