lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091222083001.10ce3948@jbarnes-x200>
Date:	Tue, 22 Dec 2009 08:30:01 -0800
From:	Jesse Barnes <jbarnes@...tuousgeek.org>
To:	"Rafael J. Wysocki" <rjw@...k.pl>
Cc:	Linux PCI <linux-pci@...r.kernel.org>, Greg KH <gregkh@...e.de>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Alan Stern <stern@...land.harvard.edu>,
	ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
	pm list <linux-pm@...ts.linux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Matthew Garrett <mjg@...hat.com>
Subject: Re: [RFD] Asynchronous suspend/resume of PCI devices

On Sun, 20 Dec 2009 00:31:38 +0100
"Rafael J. Wysocki" <rjw@...k.pl> wrote:

> Hi,
> 
> I'd like to know your opinions about the viability of suspending and
> resuming PCI devices asynchronously during system-wide PM transitions
> (suspend to RAM and hibernation).
> 
> Linus says it's generally dangerous, because some PCI devices may
> indirectly depend on the others, but if that's the case, I wonder if
> we really can power manage PCI devices at run time.
> 
> It follows from my experiments that suspending and resuming PCI
> devices asynchronously doesn't lead to problems as long as we make
> sure that every PCI device is suspended before and resumed after its
> ACPI "shadow" partner. However, I'm not sure if this is generally
> correct.
> 
> What are possible problems we can run into while doing asynchronous
> suspend and resume of PCI devices?  What do we need to do in general
> to avoid that problems?
> 
> Please tell me what you think.

AFAIK it should be *mostly* safe.  Individual drivers are generally
independent of one another.  However, there are quite a few
multifunction devices (some exposed as such, some exposed as multiple
busses and devices on the same device) where interdependencies are
possible.  In some cases, we just won't see power savings until the
whole chip is powered down (which may require extra code in the form of
a "bus" driver of some sort), in other cases a driver may inadvertently
power down a piece of a device needed by another driver.

That said, the best practice for those sorts of devices is to create a
bus driver anyway, that binds to the master device and has a few
child drivers, so maybe even that case won't be much trouble...

Jesse
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ