Re: Trouble with APM suspend in 5.3-R

Andrew Belashov <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Organization ORIS
Message-ID <[email protected]>
Hello, Dave!

Dave Walton wrote:
> On 9 Nov 2004, Gleb Smirnoff wrote:
>  >
>  > Please try the following and report whether this helped.
>  >
>  > 1) Merge revision 1.233 of ata-all.c to your 5.3-RELEASE ata-all.c
>  > 2) Apply patch I've sent to this list yesterday (Subject was 'CURRENT
>  >    patchset for Thinkpad').
>  > 3) Rebuild your kernel with new ata-all.c
>  > 4) Reboot and try suspend/resume.
> 
> I've been unable to get APM suspend/resume to work with 5.3-R on my 
> Thinkpad 770Z.  As released, 'apm -z' causes a lockup (it worked fine in 
> 4.x).  Revision 1.233 of ata-all.c fixes that, and 'apm -z' now causes 
> the system to properly suspend to disk, as it had before.  However, when 
> the system resumes, it spits out three errors regarding pir0, then 
> panics.  This happens with or without your patch applied to ata-all.c.
> 
> Any suggestions?
> Any other info I can provide that might be helpful?

Try attached patch as workaround.

With Best Regards,
Andrew Belashov.

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
pci_pir.c.diff (text/plain, 524 B)
--- sys/i386/pci/pci_pir.c.orig	Fri Jul 30 19:51:30 2004
+++ sys/i386/pci/pci_pir.c	Sun Nov 14 21:47:33 2004
@@ -717,8 +717,12 @@ pir_resume(device_t dev)
 			    "Using %d.%d.INT%c to route link %#x to IRQ %d\n",
 				    pd.bus, pd.device, pd.pin + 'A',
 				    pci_link->pl_id, pci_link->pl_irq);
+#if 0
 			error = pci_pir_biosroute(pd.bus, pd.device, 0, pd.pin,
 			    pci_link->pl_irq);
+#else
+			error = 0;
+#endif
 			if (error)
 				device_printf(dev,
 			    "ROUTE_INTERRUPT on resume for link %#x failed.\n",
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.