From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: SCSI dynamic power management Date: Tue, 20 Nov 2007 09:42:02 -0600 Message-ID: <1195573322.3131.31.camel@localhost.localdomain> References: <200711201607.06317.oliver@neukum.org> <1195572119.3131.21.camel@localhost.localdomain> <200711201636.30767.oliver@neukum.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from accolon.hansenpartnership.com ([64.109.89.108]:42768 "EHLO accolon.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755409AbXKTPmI (ORCPT ); Tue, 20 Nov 2007 10:42:08 -0500 In-Reply-To: <200711201636.30767.oliver@neukum.org> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Oliver Neukum Cc: Alan Stern , "Salyzyn, Mark" , Matthew Wilcox , Oliver Neukum , SCSI development list On Tue, 2007-11-20 at 16:36 +0100, Oliver Neukum wrote: > Am Dienstag 20 November 2007 schrieb James Bottomley: > > > > On Tue, 2007-11-20 at 16:07 +0100, Oliver Neukum wrote: > > > Am Dienstag 20 November 2007 schrieb James Bottomley: > > > > I don't understand why you want to do this. Power management is a > > > > layered issue on SCSI, divided (as always) into host, device and > > > > transport. The idle you're talking about is a pure device thing, so it > > > > can be managed by the ULD (and currently is). When a unit is stopped, > > > > > > The lower layers don't know how to correctly suspend a device. sd_suspend() > > > may know how to do it. It would also mean the LLD having to detect idleness. > > > > You really mean you want to involve the transport as well, right? So > > Yes, we cannot avoid that. Some device drop their caches unless they are > flushed. So that would be fixed by having the ULD send a flush before START STOP UNIT? > > ipso facto this is more than simple idleness management. Thus, you > > really need to look into the full solution (host, transport and ULD). > > Only detecting idleness without doing anything with that knowledge would > be pointless :-) > What is the right kind of sequence? I don't really know ... I don't have a clear idea of what you're trying to do. I know Alan said it was something simple, but from what you're saying it sounds like you need a full blown power management infrastructure in all three places. James