search for: pci_pm_ctrl_state_mask

Displaying 3 results from an estimated 3 matches for "pci_pm_ctrl_state_mask".

2017 Nov 21
2
[PATCH v2] drm: don't continue with anything after the GPU couldn't be woken up
On Tue, Nov 21, 2017 at 6:46 PM, Thierry Reding <thierry.reding at gmail.com> wrote: > On Tue, Nov 21, 2017 at 04:01:16PM +0100, Karol Herbst wrote: >> This should make systems more stable where resuming the GPU fails. This >> can happen due to bad firmware or due to a bug within the kernel. The >> last thing which should happen in either case is an unusable system.
2017 Nov 22
0
[PATCH v2] drm: don't continue with anything after the GPU couldn't be woken up
...my patch and didn't > complain about it. Hopefully he knows more. pci_raw_set_power_state(), called by pci_set_power_state(), contains this, which looks to me like it would be the only case where the problem you're describing could be coming from: dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); if (dev->current_state != state && printk_ratelimit()) dev_info(&dev->dev, "Refused to change power state, currently in D%d\n", dev->current_state); Do you happen to see this in the kernel logs? Perhaps this should be considered an error rather than just an...
2007 Mar 26
3
[PATCH] pciback: restore PCI BARs on D3->D0 transition
...onf_space_capability_pm.c Mon Mar 26 13:13:23 2007 -0600 @@ -33,7 +33,7 @@ static int pm_ctrl_write(struct pci_dev { int err; u16 cur_value; - pci_power_t new_state; + pci_power_t new_state, old_state; /* Handle setting power state separately */ new_state = (pci_power_t)(new_value & PCI_PM_CTRL_STATE_MASK); @@ -52,9 +52,20 @@ static int pm_ctrl_write(struct pci_dev /* Let pci core handle the power management change */ dev_dbg(&dev->dev, "set power state to %x\n", new_state); + old_state = dev->current_state; err = pci_set_power_state(dev, new_state); if (err) err =...