Re: PCI: Revert "PCI: Add runtime PM support for PCIe ports"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 03, 2017 at 10:38:24PM +0100, Rafael J. Wysocki wrote:
> On Tuesday, January 03, 2017 12:12:21 PM Bjorn Helgaas wrote:
> > On Tue, Jan 03, 2017 at 05:31:30PM +0100, Peter Wu wrote:
> > > On Tue, Jan 03, 2017 at 05:11:23PM +0100, Lukas Wunner wrote:
> > > > [cc += Dave Airlie:
> > > > 
> > > > Dave, we're about to lose support for newer Optimus laptops which use
> > > > _PR3 to cut power to the discrete GPU because Bjorn Helgaas has queued
> > > > a commit on his for-linus branch to remove runtime PM for PCIe ports.
> > > > This fixes a regression on Kilian Singer's laptop on which locking the
> > > > screen breaks USB and PS/2 input devices:  Mouse movements are still
> > > > visible, but button or key presses no longer have any effect.  The GPU
> > > > is powered down upon locking the screen and the current theory is that
> > > > this causes the issues.]
> > > 
> > > (+cc Alex: this might affect amdgpu/radeon too.]
> > > 
> > > Bjorn, please reconsider the rpm patch. Reverting support would
> > > introduce other regressions (see issues below) and make future
> > > Thunderbolt work harder (according to Lukas). If Kilian's laptop has
> > > issues, what about a "temporary" quirk?
> > 
> > As I mentioned at the beginning, the outcome I'm hoping for is a patch
> > that fixes Kilian's laptop while preserving the runtime PM support.
> > 
> > As I also mentioned at the beginning, preserving the runtime PM
> > support at the expense of breaking Kilian's laptop is not one of the
> > options.
> 
> But the revert doesn't really help.
> 
> It doesn't fix system suspend/resume on that laptop, which also breaks when
> PCIe ports PM is enabled on it.
> 
> If you really want to use a sledgehammer approach here (which I don't recommend,
> but that's your call), you can change the initial value of pci_bridge_d3_disable to
> "true" (and update the pcie_ports_pm= command line to take "on" in case
> someone wants to enable the feature).  That at least will take care of the
> regression entirely and not just partly.

What the heck is the problem here?  I'm not trying to be difficult,
but I didn't write this code and I'm not really interested in figuring
out how to fix it, so my only real option is to solicit fixes and, if
none appear, revert changes that break things.

As I've said more than once, I hope and expect that there is a better
solution than reverting the patch.  But *I* am not going to write it.
As soon as somebody proposes a better patch, I'll use it instead of
the revert.

If you want to fix the regression by changing the
pci_bridge_d3_disable value, all you have to do is post a patch doing
that.

I really don't understand why people are so wrapped around the axle
about this.  This is just the way Linux works -- we try really hard
not to cause regressions on platforms that used to work.  I *SAID* in
the very first posting of the revert that I assume Mika will have a
better solution soon.

When a better patch appears, I'll take that and drop the revert.
What's the problem with that?

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux