Project

General

Profile

Bug #3333

USCSI ioctl: SCSI passthrough of ATA command: "0xe5: check power mode" wakes up sleeping drive

Added by Thomas Geppert about 8 years ago. Updated about 4 years ago.

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

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Sending a "0xe5: check power mode" ATA command via "0x85: SCSI pass through" using the USCSI ioctl to a SATA drive behind a LSI SAS2008 controller wakes up a sleeping drive.

According to the ATA/ATAPI command set specification "The CHECK POWER MODE command shall not cause the device to change power or affect the operation of the Standby timer."

Using the LSI utility program "lsiutil" to send the following CDB to a SATA drive in sleep or standby mode behind a LSI SAS2008 controller does NOT wake up the drive and properly reports the power mode in the returned sense data block.

CDB: "0x85 0x06 0x2c 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xe5 0x00"

Sending the same CDB via the USCSI ioctl to the drive using the device node under /dev/rdsk wakes up the drive.
The power mode reported in the sense data block is then always Active/Idle.

This affects for example smartmontools and renders the -n option useless.
On Solaris derived operating systems the smartctl utility is for example using the USCSI ioctl to send commands to SATA devices behind a SAT layer.
The "-n standby"option of smartctl is intended to prevent waking up sleeping devices just for a SMART test.
This does currently not work under Illumos.

#1

Updated by Thomas Geppert almost 8 years ago

I've tested this under Openindiana and OmniOS.

#2

Updated by Thomas Geppert over 7 years ago

What additional information can I provide to help assign this bug ?

#3

Updated by Thomas Geppert about 7 years ago

  • Assignee set to Kevin Crowe
#4

Updated by Joshua M. Clulow about 4 years ago

  • Assignee deleted (Kevin Crowe)

Also available in: Atom PDF