Re: Power management for SCSI

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Machek
Date: Thursday, August 14, 2008 - 6:08 am

Hi!


Ok, I see, "its done at the wrong level" sounds pretty serious.

First the general comments/questions:

#
#1. It's done at the wrong level: suspend "device" is actually a target
#function.  There's no way on a multi-lun device we want to keep the
#flags and last_busy anywhere but in the target

So... if there's one device with Lun0==cdrom1 and Lun1==cdrom2, it is a
single target, and we want to keep flags/last busy common to all that?

What is good data structure to add? I see scsi_tgt*.h, but it is very
short, and there does not seem to be good structure to hook into.

#2. As you say in the comment, the thing we're trying to power down is
#the link.  In most SCSI implementations, the link has a rather complex
#relationship to the target, what we want to do in
#periodic_autosuspend_scan() is run over the devices on each link, and
#if
#they're not busy suspend the link?  What's probably needed is a set of
#adjunct helpers for the transport classes to do this.

So the host suspend/resume stuff should go into struct
scsi_transport_template?

#3. The link power down is much faster than device spin down ... in
#your
#patch these two things seem to be coupled ... we really need to keep
#them separate.
#

ACK.

#4. The entanglement with error handling is incredibly problematic
#(since
#eh is a nastily complex state machine in its own right).  What do
#transports that use eh_strategy_handler do about all of this?

/me scared...
								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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)