Date: Fri, 21 Sep 2001 23:49:37 -0600 From: Warner Losh <imp@harmony.village.org> To: Andy Sparrow <spadger@best.com> Cc: mobile@FreeBSD.ORG Subject: Re: Hang on reboot in 4.4-*? Message-ID: <200109220549.f8M5nb725305@harmony.village.org> In-Reply-To: Your message of "Fri, 21 Sep 2001 22:03:55 CDT." <20010922030356.187F03E29@CRWdog.demon.co.uk> References: <20010922030356.187F03E29@CRWdog.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010922030356.187F03E29@CRWdog.demon.co.uk> Andy Sparrow writes: : HP Omnibook 6000 with kernel cvsup'd today goes into a weird hang on reboot : (immediately after "Uptime: " is printed) if pccard enabled in the kernel. I have two patches for you to try. First one doesn't power down the card: Index: pcic_pci.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pcic_pci.c,v retrieving revision 1.99 diff -u -r1.99 pcic_pci.c --- pcic_pci.c 2001/09/21 06:45:35 1.99 +++ pcic_pci.c 2001/09/22 05:47:13 @@ -1069,7 +1069,7 @@ */ sp->putb(sp, PCIC_INT_GEN, 0); sp->putb(sp, PCIC_STAT_INT, 0); - sp->putb(sp, PCIC_POWER, 0); +/* sp->putb(sp, PCIC_POWER, 0); */ /* * Writing to INT_GEN can cause an interrupt, so we blindly The second one waits a while after powering down the card: Index: pcic_pci.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pcic_pci.c,v retrieving revision 1.99 diff -u -r1.99 pcic_pci.c --- pcic_pci.c 2001/09/21 06:45:35 1.99 +++ pcic_pci.c 2001/09/22 05:49:18 @@ -1070,6 +1070,7 @@ sp->putb(sp, PCIC_INT_GEN, 0); sp->putb(sp, PCIC_STAT_INT, 0); sp->putb(sp, PCIC_POWER, 0); + DELAY(4000); /* * Writing to INT_GEN can cause an interrupt, so we blindly Please let me know how they work. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109220549.f8M5nb725305>