Thread (15 messages) 15 messages, 4 authors, 2016-10-05

Re: [PATCH v2 5/5] PCI: Avoid unnecessary resume on shutdown

From: Oliver Neukum <oneukum@suse.com>
Date: 2016-09-19 09:17:51
Also in: linux-acpi, linux-pci

On Sun, 2016-09-18 at 05:39 +0200, Lukas Wunner wrote:
We currently perform a mandatory runtime resume of all PCI devices on
->shutdown.  However it is pointless to wake devices only to immediately
power them down afterwards.  (Or have the firmware reset them, in case
of a reboot.)

It seems there are only two cases when a runtime resume is actually
necessary:  If the driver has declared a ->shutdown callback or if kexec
is in progress.

Constrain resume of a device to these cases and let it slumber
otherwise, thereby conserving energy and speeding up shutdown.
What happens if you get a wakeup event while going down?
Will it lead to a reboot when a shutdown has been requested?

	Regards
		Oliver

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help