Hdparm setting causes SAS drive attached on LSI 1068E HBA to freeze

Bug #847003 reported by Spica SJTU
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hdparm (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hdparm will try to set APM even on SAS drives.
In /lib/hdparm/hdparm-functions, hdparm_try_apm() only filters out USB/FireWire devices.
SAS drive will be thought of APM-capable.
This behavior might not cause problems on most HBA/SAS drive combinations.
But with LSI 1068E+SAS drive, it freeze the SAS drive. Any I/O request to the SAS drive will return I/O error.
If I replace /sbin/hdparm with a fake script, everything works fine.
It might be a bug of ATA pass-through with mptsas (LSI 1068E's driver), but I think add some code in hdparm_try_apm() will be a much easier fix, given the fact that that function is already filtering out USB/FireWire devices anyway.

I would suggest searching ATA-specific features from udevadm's output to see if the target device is really an ATA device.
Like 'ID_ATA_FEATURE_SET_PM=1'.

I've tried Ubuntu LTS 10.04, 11.04, 11.10 beta. All of them suffered from this issue. I think LSI 1068E is kind of popular in servers.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: hdparm 9.32-1ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
Uname: Linux 3.0.0-10-generic x86_64
Architecture: amd64
Date: Sun Sep 11 19:13:44 2011
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: hdparm
UpgradeStatus: Upgraded to natty on 2011-09-11 (0 days ago)

Revision history for this message
Spica SJTU (spica-sjtu) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.