login
Header Space

 
 

Re: i965 testers wanted (Re: intel-agp PM experiences)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pavel Machek <pavel@...>
Cc: <andi@...>, <davej@...>, kernel list <linux-kernel@...>, <seife@...>, Wang Zhenyu <zhenyu.z.wang@...>
Date: Monday, January 29, 2007 - 6:21 pm

Le lundi 29 janvier 2007 à 23:10 +0100, Pavel Machek a écrit :

I inlined the patch I used below. If I'm not mistaken, the maintainer is
Davej which is already in the Cc: list. I think it's exactly the same as
was submitted in http://lkml.org/lkml/2007/1/16/297 (I may have hand
copied it though, can't remember). The above link is more complete as it
contains the Signed-off-by and a description.

diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index ab0a9c0..f64a115 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -1955,6 +1955,15 @@ static int agp_intel_resume(struct pci_d
 
 	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_i810_private.i810_dev)
+		pci_restore_state(intel_i810_private.i810_dev);
+	if (intel_i830_private.i830_dev)
+		pci_restore_state(intel_i830_private.i830_dev);
+
 	if (bridge->driver == &intel_generic_driver)
 		intel_configure();
 	else if (bridge->driver == &intel_850_driver)


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.20-rc5: usb mouse breaks suspend to ram, Pavel Machek, (Tue Jan 16, 9:57 am)
Re: 2.6.20-rc5: usb mouse breaks suspend to ram, Dmitry Torokhov, (Tue Jan 16, 10:08 am)
Re: 2.6.20-rc5: usb mouse breaks suspend to ram, Pavel Machek, (Tue Jan 16, 10:24 am)
Re: 2.6.20-rc5: usb mouse breaks suspend to ram, Dmitry Torokhov, (Tue Jan 16, 5:25 pm)
Re: 2.6.20-rc5: usb mouse breaks suspend to ram, Andreas Mohr, (Tue Jan 16, 8:40 pm)
Re: 2.6.20-rc5: usb mouse breaks suspend to ram, Pavel Machek, (Tue Jan 16, 8:57 pm)
i965 testers wanted (Re: intel-agp PM experiences), Pavel Machek, (Tue Jan 23, 5:44 am)
Re: i965 testers wanted (Re: intel-agp PM experiences), Pavel Machek, (Mon Jan 29, 6:10 pm)
Re: i965 testers wanted (Re: intel-agp PM experiences), Frédéric, (Mon Jan 29, 6:21 pm)
Re: i965 testers wanted (Re: intel-agp PM experiences), Sunil Naidu, (Tue Jan 23, 10:46 am)
Re: 2.6.20-rc5: usb mouse breaks suspend to ram, Pavel Machek, (Tue Jan 16, 5:47 pm)
speck-geostationary