public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.de>
To: "Morales, Alejandra" <alejandra.morales@tum.de>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Questions about Runtime Power Management
Date: Mon, 10 Jun 2013 10:39:01 +0200	[thread overview]
Message-ID: <8961845.QtBW1c5NsD@linux-5eaq.site> (raw)
In-Reply-To: <9E3F9C2076C45D4783F09B90D5BE77CE16B4E6@BADWLRZ-SWMBX13.ads.mwn.de>

On Sunday 09 June 2013 16:28:21 Morales, Alejandra wrote:

> I did a test with an external USB hard drive, checking the runtime power state before and after issuing a sleep command with hdparm -Y. The drive effectively spinned down, but the runtime power state didn't change from active to suspended.

Hard disks, as opposed to USB storage devices, don't do kernel based runtime PM.
If you give a drive commands by hdparm, implementation is the job of the disk and
nothing else in the system learns about it.

> - Do scsi device drivers implement the runtime_status updates when drives effectively change their state?
> - Is runtime power management supported by net devices?
> 
> Any answer would be really appreciated. Thanks in advance.

You are approaching this from the wrong side. "net device" is the function of
a device. It is effectively impossible to even define what runtime PM would mean
in that case. You need to approach the question from the side of implementation.
Is your device USB, PCI, SCSI, FibreChannel, ... ?

As far as SCSI is concerned, yes SCSI devices can do runtime PM (in principle)
The most mature implementation is USB.

You need to furthermore realise that there are forms of runtime PM independent
of the generic kernel based runtime PM (hdparm, USB LPM, ...)

	HTH
		Oliver


  reply	other threads:[~2013-06-10  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-09 16:28 Questions about Runtime Power Management Morales, Alejandra
2013-06-10  8:39 ` Oliver Neukum [this message]
2013-06-11  7:53   ` Morales, Alejandra
2013-06-11  8:21     ` Oliver Neukum
2013-06-16 15:07 ` Ming Lei
2013-06-16 22:15   ` Oliver Neukum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8961845.QtBW1c5NsD@linux-5eaq.site \
    --to=oneukum@suse.de \
    --cc=alejandra.morales@tum.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox