public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pci/runtime-pm: respect devices autosuspend timeout on config access
@ 2012-11-07  5:30 Dave Airlie
  2012-11-07  5:58 ` Huang Ying
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Airlie @ 2012-11-07  5:30 UTC (permalink / raw)
  To: linux-pci
  Cc: linux-kernel, Dave Airlie, Huang Ying, Bjorn Helgaas,
	Rafael J. Wysocki

So I've been adding runtime pm to nouveau/radeon, and on X start it does a
lot of pci accesses. Now because the pm on these devices is equivalent
to D3cold, we have to resume them which involves a heavy latency due to
POSTing the cards. The driver configures the autosuspend timeout to 5s for
this reason, and I think the PCI layer config accesses should respect
the autosuspend.

Cc: Huang Ying <ying.huang@intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/pci/pci-sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 02d107b..12d3d52 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -487,7 +487,7 @@ pci_config_pm_runtime_put(struct pci_dev *pdev)
 	struct device *dev = &pdev->dev;
 	struct device *parent = dev->parent;
 
-	pm_runtime_put(dev);
+	pm_runtime_put_autosuspend(dev);
 	if (parent)
 		pm_runtime_put_sync(parent);
 }
-- 
1.7.12.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-07  6:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07  5:30 [PATCH] pci/runtime-pm: respect devices autosuspend timeout on config access Dave Airlie
2012-11-07  5:58 ` Huang Ying
2012-11-07  6:15   ` David Airlie
2012-11-07  6:26     ` Huang Ying
2012-11-07  6:31       ` David Airlie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox