Project

General

Profile

Bug #2091

sd fails to power up some disks

Added by Albert Lee over 7 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2012-02-08
Due date:
% Done:

0%

Estimated time:
Difficulty:
Hard
Tags:
needs-triage

Description

The firmware in some newer drives (2TB+) apparently have limited power management support. sd attempts to use power management on attach and the PM framework produces:
"WARNING: Device /scsi_vhci/disk@g5000c50034f6d347 failed to power up."
The device is not accessible if this happens.

Disabling the use of the POWER CONDITION parameter for START STOP UNIT in sd via sd-config-list = "<vendor and product strings from format(1) inquiry including spaces>", "power-condition:false";' is sufficient to resolve this.

There is probably something wrong with sd.


Related issues

Related to illumos gate - Bug #2087: sd needs to detect and handle SBC-3 correctlyFeedback2012-02-08

Actions

History

#1

Updated by Albert Lee over 7 years ago

  • Assignee set to Albert Lee

If the "pm-capable" property was set by the HBA driver, sd_pm_setup tests START STOP UNIT, POWER CONDITION, and LOG SENSE, and will disable support for them if necessary. It does not perform these tests if "pm-capable" was not set (but support may be enabled by sd_set_unit_attributes earlier). Not clear if this has anything to do with the affected devices.

sd_create_pm_components will always set "pm-components" (to 3 or 5 depending on whether we have POWER CONDITION) and attempt to raise power.

#2

Updated by Albert Lee almost 6 years ago

A hardware vendor has investigated this and determined that we were sending START STOP UNIT with PC set to 1 and the START bit set to 0. The problem is this is interpreted as a spin down by a device not supporting power management.

The device's VPD 8Ah and mode page 1Ah were zeroes so our PC check is not properly parsing them.

#3

Updated by Yuri Pankov over 2 years ago

  • Description updated (diff)

Also available in: Atom PDF