Bug 5599

Summary: HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device
Product: IO/Storage Reporter: Nicolas Mailhot (Nicolas.Mailhot)
Component: Serial ATAAssignee: Jeff Garzik (jgarzik)
Status: REJECTED DOCUMENTED    
Severity: low CC: bunk, bzolnier, mlord
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.14-git14 - 2.6.21-rc2-mm1 Subsystem:
Regression: --- Bisected commit-id:

Description Nicolas Mailhot 2005-11-13 03:23:31 UTC
Most recent kernel where this bug did not occur: N/A

Distribution: Fedora Core Devel (Rawhide)

Hardware Environment: GA-K8N Ultra 9 mobo
(http://www.giga-byte.com.tw/MotherBoard/Products/Products_GA-K8N%20Ultra-9.htm)
Maxtor DiamondMax 10 drives on Silicon Image, Inc. SiI 3114 [SATALink/SATARaid]
Serial ATA Controller (rev 02)

Software Environment: hdparm-6.3-1

Problem Description:

When I try to get/set AAM on the disk drives, I get a :

# /sbin/hdparm -M /dev/sda

/dev/sda:
 HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device

Don't know if it's a bug or a RFE
Comment 1 Bartlomiej Zolnierkiewicz 2006-01-19 01:04:39 UTC
this is RFE
Comment 2 Nicolas Mailhot 2006-11-25 04:40:47 UTC
still in 2.6.19-rc6-mm1
Comment 3 Nicolas Mailhot 2007-03-03 04:35:34 UTC
still in 2.6.21-rc2-git3
Comment 4 Jeff Garzik 2007-03-03 04:42:22 UTC
Indeed, this is a low priority RFE.  Preferred path would be to update hdparm to
support setting acoustic levels via SG_IO.
Comment 5 Jools Wills 2007-07-07 03:27:29 UTC
I wish it was a higher priority :/ I'm having the same problem (2.6.21-rc6)
and I've heard my diamondmax disks can be quietened down a lot with this.
Comment 6 Nicolas Mailhot 2007-07-07 04:41:13 UTC
Diamondmax drives have good AAM (or written another way the default benchmark-friendly Diamondmax mode is very noisy)

I've managed to change the mode of my drives, don't remember how, it was a long quest. Using hdparm would have been *so* much easier
Comment 7 Mark Lord 2007-07-09 13:53:59 UTC
Newer versions of hdparm from spring 2007 use S.A.T. for acoustic functions, as well as most other functions, and thus work just fine with libata.

No fix required -- Redhat/Fedora should update their included copy of hdparm instead.

-ml
Comment 8 Mark Lord 2007-07-09 13:59:37 UTC
Note:  hdparm-7.6 is the current version, and is available from http://sourceforge.net/projects/hdparm/

Most distro maintainers have an automatic "watch" on this project
to be auto-notified as updates become available.

Cheers
Comment 9 Adrian Bunk 2007-07-09 18:11:14 UTC
Works with latest hdparm.