]> git.baikalelectronics.ru Git - kernel.git/commit
PCI / PM: Tune down retryable runtime suspend error messages
authorImre Deak <imre.deak@intel.com>
Mon, 30 Nov 2015 19:02:55 +0000 (21:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 2 Dec 2015 14:24:21 +0000 (15:24 +0100)
commit8a0c4ac858bbe44636d4b1ab0cb05725bb08b3c0
tree11890bf9fb7e0419e65f0718f42d61878d007a33
parent7843c087c7a7bdfbf24a9e660bd8000f88727ce8
PCI / PM: Tune down retryable runtime suspend error messages

The runtime PM core doesn't treat EBUSY and EAGAIN retvals from the driver
suspend hooks as errors, but they still show up as errors in dmesg. Tune
them down. See rpm_suspend() for details of handling these return values.

Note that we use dev_dbg() for the retryable retvals, so after this
change you'll need either CONFIG_DYNAMIC_DEBUG or CONFIG_PCI_DEBUG
for them to show up in the log.

One problem caused by this was noticed by Daniel: the i915 driver
returns EAGAIN to signal a temporary failure to suspend and as a request
towards the RPM core for scheduling a suspend again. This is a normal
event, but the resulting error message flags a breakage during the
driver's automated testing which parses dmesg and picks up the error.

Reported-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://bugs.freedesktop.org/show_bug.cgi?id=92992
Signed-off-by: Imre Deak <imre.deak@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci-driver.c