Re: [linux-pm] Power management for SCSI

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Monday, August 25, 2008 - 11:39 am

On Mon, 25 Aug 2008, Oliver Neukum wrote:


I don't know -- it would depend on the particular transport.  In any 
case, it's a decision the transport class can make.


Possibly.


Also possible, although I don't think your example is a good one since 
sd.c wouldn't be aware of vendor-specific commands.


To my mind, if the driver has to do something special to prepare for
the link going down (such as draining the cache), then afterward the
device is in a special state -- not the same as the active state.  The
difference between the two states is that in one the link may be
autosuspended and in the other it mustn't.

I see the driver making the transition between these states in response 
to autosuspend and autoresume calls.

This means a driver such as sd.c has to respond in different sorts of
ways to various autosuspend scenarios, either doing a real power-down
or merely preparing for the link to go down.  The implication is that
we might want to send the driver two different autosuspend calls: One
to prepare for the link to go down (after, say, a couple of seconds of
idleness) and another to power-down the device (after, say, 15 minutes
of idleness).

Thus, there would be two "autosuspended" states: a shallow autosuspend
(cache is drained) and a deep autosuspend (disk is spun down).  Such an
approach could be made to work, even though it seems slightly
artificial.

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Power management for SCSI, Pavel Machek, (Wed Aug 13, 2:50 am)
Re: Power management for SCSI, Alan Stern, (Wed Aug 13, 7:31 am)
Re: Power management for SCSI, Oliver Neukum, (Wed Aug 13, 7:47 am)
Re: Power management for SCSI, Alan Stern, (Wed Aug 13, 7:59 am)
Re: Power management for SCSI, Oliver Neukum, (Wed Aug 13, 8:21 am)
Re: Power management for SCSI, Oliver Neukum, (Wed Aug 13, 8:24 am)
Re: Power management for SCSI, Stefan Richter, (Wed Aug 13, 8:44 am)
Re: Power management for SCSI, Alan Stern, (Wed Aug 13, 8:44 am)
Re: Power management for SCSI, Alan Stern, (Wed Aug 13, 8:46 am)
Re: Power management for SCSI, Stefan Richter, (Wed Aug 13, 9:14 am)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Wed Aug 13, 9:21 am)
Re: Power management for SCSI, Alan Stern, (Wed Aug 13, 9:23 am)
Re: Power management for SCSI, Oliver Neukum, (Wed Aug 13, 9:25 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Wed Aug 13, 12:34 pm)
Re: Power management for SCSI, Alan Stern, (Wed Aug 13, 12:37 pm)
Re: Power management for SCSI, James Bottomley, (Wed Aug 13, 12:42 pm)
RE: [linux-pm] Power management for SCSI, Leisner, Martin, (Wed Aug 13, 1:03 pm)
Re: Power management for SCSI, Alan Stern, (Wed Aug 13, 1:16 pm)
RE: [linux-pm] Power management for SCSI, Alan Stern, (Wed Aug 13, 1:38 pm)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Wed Aug 13, 11:08 pm)
Re: Power management for SCSI, Pavel Machek, (Thu Aug 14, 6:08 am)
Re: [linux-pm] Power management for SCSI, Pavel Machek, (Thu Aug 14, 6:50 am)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Thu Aug 14, 7:08 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Thu Aug 14, 8:40 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Thu Aug 14, 8:47 am)
Re: Power management for SCSI, Pavel Machek, (Thu Aug 14, 8:56 am)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Thu Aug 14, 2:43 pm)
Re: Power management for SCSI, Stefan Richter, (Thu Aug 14, 3:11 pm)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Thu Aug 14, 3:25 pm)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Fri Aug 15, 12:16 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Fri Aug 15, 8:25 am)
Re: Power management for SCSI, Pavel Machek, (Tue Aug 19, 12:38 am)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Tue Aug 19, 12:50 am)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Tue Aug 19, 6:33 am)
Re: Power management for SCSI, Alan Stern, (Tue Aug 19, 7:32 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Tue Aug 19, 8:28 am)
RE: [linux-pm] Power management for SCSI, Leisner, Martin, (Tue Aug 19, 2:08 pm)
Re: [linux-pm] Power management for SCSI, Stefan Richter, (Tue Aug 19, 4:22 pm)
Re: [linux-pm] Power management for SCSI, Pavel Machek, (Fri Aug 22, 3:52 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Fri Aug 22, 3:14 pm)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Mon Aug 25, 5:50 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Mon Aug 25, 7:45 am)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Mon Aug 25, 8:05 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Mon Aug 25, 9:18 am)
Re: [linux-pm] Power management for SCSI, Oliver Neukum, (Mon Aug 25, 10:34 am)
Re: [linux-pm] Power management for SCSI, Alan Stern, (Mon Aug 25, 11:39 am)