linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] agp/intel: remove restore in resume
@ 2009-09-14  2:47 Zhenyu Wang
  2009-09-14  2:47 ` [PATCH 2/2] drm/i915: " Zhenyu Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Zhenyu Wang @ 2009-09-14  2:47 UTC (permalink / raw)
  To: airlied; +Cc: intel-gfx, linux-kernel, Zhenyu Wang, Stable Team, Alan Stern

As early pci resume has already restored config for host
bridge and graphics device, don't need to restore it again,
This removes an original order hack for graphics device restore.

This fixed the resume hang issue found by Alan Stern on 845G,
caused by extra config restore on graphics device.

Cc: Stable Team <stable@kernel.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
---
 drivers/char/agp/intel-agp.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index e8dc75f..6a45365 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -2335,15 +2335,6 @@ static int agp_intel_resume(struct pci_dev *pdev)
 	struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 	int ret_val;
 
-	pci_restore_state(pdev);
-
-	/* We should restore our graphics device's config space,
-	 * as host bridge (00:00) resumes before graphics device (02:00),
-	 * then our access to its pci space can work right.
-	 */
-	if (intel_private.pcidev)
-		pci_restore_state(intel_private.pcidev);
-
 	if (bridge->driver == &intel_generic_driver)
 		intel_configure();
 	else if (bridge->driver == &intel_850_driver)
-- 
1.6.3.3


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

* [PATCH 2/2] drm/i915: remove restore in resume
  2009-09-14  2:47 [PATCH 1/2] agp/intel: remove restore in resume Zhenyu Wang
@ 2009-09-14  2:47 ` Zhenyu Wang
  2009-09-17 21:45   ` [Intel-gfx] " Jesse Barnes
  0 siblings, 1 reply; 3+ messages in thread
From: Zhenyu Wang @ 2009-09-14  2:47 UTC (permalink / raw)
  To: airlied; +Cc: intel-gfx, linux-kernel, Zhenyu Wang, Stable Team, Alan Stern

Don't need extra config restore like for intel_agp, which
might cause resume hang issue found by Alan on 845G.

Cc: Stable Team <stable@kernel.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index dbe568c..e8cf18d 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -97,8 +97,6 @@ static int i915_resume(struct drm_device *dev)
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	int ret = 0;
 
-	pci_set_power_state(dev->pdev, PCI_D0);
-	pci_restore_state(dev->pdev);
 	if (pci_enable_device(dev->pdev))
 		return -1;
 	pci_set_master(dev->pdev);
-- 
1.6.3.3


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

* Re: [Intel-gfx] [PATCH 2/2] drm/i915: remove restore in resume
  2009-09-14  2:47 ` [PATCH 2/2] drm/i915: " Zhenyu Wang
@ 2009-09-17 21:45   ` Jesse Barnes
  0 siblings, 0 replies; 3+ messages in thread
From: Jesse Barnes @ 2009-09-17 21:45 UTC (permalink / raw)
  To: Zhenyu Wang; +Cc: airlied, intel-gfx, Alan Stern, linux-kernel, Stable Team

On Mon, 14 Sep 2009 10:47:07 +0800
Zhenyu Wang <zhenyuw@linux.intel.com> wrote:

> Don't need extra config restore like for intel_agp, which
> might cause resume hang issue found by Alan on 845G.
> 
> Cc: Stable Team <stable@kernel.org>
> Cc: Alan Stern <stern@rowland.harvard.edu>
> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
> ---

Applied to drm-intel-next, thanks.

-- 
Jesse Barnes, Intel Open Source Technology Center

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

end of thread, other threads:[~2009-09-17 21:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14  2:47 [PATCH 1/2] agp/intel: remove restore in resume Zhenyu Wang
2009-09-14  2:47 ` [PATCH 2/2] drm/i915: " Zhenyu Wang
2009-09-17 21:45   ` [Intel-gfx] " Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).