[Bug 93123] [SNB BAT IGT] pm_rpm fails

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 9 10:28:32 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=93123

--- Comment #9 from Chris Wilson <chris at chris-wilson.co.uk> ---
Can you please apply

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 602eb4223510..916acdd18b15 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -594,8 +594,14 @@ static int pci_raw_set_power_state(struct pci_dev *dev,
pci_power_t state)
        if (dev->current_state == state)
                return 0;

-       if (!dev->pm_cap)
+       dev_info(&dev->dev, "changing power state, from %s [%d] to %s [%d]\n",
+                pci_power_name(dev->current_state) dev->current_state,
+                pci_power_name(state), state);
+
+       if (!dev->pm_cap) {
+               dev_err(&dev->dev, "unable to change power levels (no
pm_cap)\n");
                return -EIO;
+       }

        if (state < PCI_D0 || state > PCI_D3hot)
                return -EINVAL;

and let's confirm that we do get the PCI power change request.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20160309/555a8833/attachment.html>


More information about the intel-gfx-bugs mailing list