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. Thanks, Rafael -- 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