Bug 48201
Summary: | PCIe root port runtime suspend does not keep proper track of VGA child | ||
---|---|---|---|
Product: | Power Management | Reporter: | Kristen (kristen.c.accardi) |
Component: | Run-Time-PM | Assignee: | Rafael J. Wysocki (rjwysocki) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | florian, lenb, rjw, ying.huang |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.6.0 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Debug suspend when children forbidden
Keep runtime PM enabled for unbound PCI devices |
Description
Kristen
2012-10-02 17:59:44 UTC
What's in the VGA's power/control file? on Created attachment 85301 [details]
Debug suspend when children forbidden
Kristen, Could you try the patch?
Created attachment 86621 [details]
Keep runtime PM enabled for unbound PCI devices
Hi, Kristen, Can you try the patch attached?
Kristen, can you respond, please? So, it kind of works. Now when I switch the PCIe root port device control file to auto, the root port stays not suspended. However, it appears that a side effect of this patch is that I can now go and enable runtime PM for the unbound VGA device, and it suspends right away, even while I am using it (i.e. displaying something). I would expect it to stay active while it is being used. I suspect the proper behavior is to mark VGA devices which are unbound as always active. We intentionally let user space control the PM of devices without drivers (in the kernel) and yes, it can do as you describe. And no, we can't generally mark unbound VGA devices as always active, because (1) we don't distinguish between VGA and other devices and (2) users may actually want to power them down (think of a headless machine, for example). So, do I understand correctly that the patch fixes the problem you originally reported? A patch referencing this bug report has been merged in Linux v3.8-rc1: commit 967577b062417b4e4b8e27b711220f4124f5153a Author: Huang Ying <ying.huang@intel.com> Date: Tue Nov 20 16:08:22 2012 +0800 PCI/PM: Keep runtime PM enabled for unbound PCI devices |