From owner-freebsd-mobile Sun Jan 18 11:11:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA04639 for freebsd-mobile-outgoing; Sun, 18 Jan 1998 11:11:19 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA04635 for ; Sun, 18 Jan 1998 11:11:15 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id MAA05317; Sun, 18 Jan 1998 12:11:05 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id MAA00697; Sun, 18 Jan 1998 12:11:03 -0700 Date: Sun, 18 Jan 1998 12:11:03 -0700 Message-Id: <199801181911.MAA00697@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Ugo Paternostro Cc: Nate Williams , freebsd-mobile@FreeBSD.ORG Subject: Re: Cirrus Logic PD6729 In-Reply-To: References: <199801172040.NAA26567@mt.sri.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Yes, you're right: I was missing a bit in the command mask: I did enable the IO > but didn't enable the memory. Now I enable both 'em and, guess it, it works. > Well, it almost works... :-( > > What I mean is that the kernel boots fine from a cold boot, but if I reboot > with "shutdown -r now" it panics just after printing "Intel Pentium F00F > detected, installing workaround", where it would normally print "Card inserted, > slot 0". I get a "Fatal trap 12: page fault while in kernel mode" and, when I > reboot, it boots ok once more, and so on (all the even boots end with a panic, > but the odd ones work perfectly). Interesting. Any chance of getting a crash dump to see exactly where the fault is occurring? > It is obviously a driver configuration problem, so I tried to disable > interrupts in the init routine, and just moved the panic just below the "apm: > found APM BIOS version 1.2" message, where it would normally print "PC-Card > Cirrus Logic PD672X (5 mem & 2 I/O windows)". Once more, I get a trap 12, but > this time when I reboot the machine does not see the HD any more: I have to > power cycle it. It's possible that the 'poll' is causing the panic. Try disabling the poll of the PCCARD controller in /sys/pccard/pcic.c. A cut-paste uni-diff is appended below (don't apply it, it won't work). [ Patch deleted ] I'll wait until everything is done until I submi this patch, OK? Nate ---------- Index: pcic.c =================================================================== RCS file: /home/CVS/src/sys/pccard/pcic.c,v retrieving revision 1.23.2.5 diff -u -r1.23.2.5 pcic.c --- pcic.c 1997/11/15 14:11:34 1.23.2.5 +++ pcic.c 1998/01/18 19:08:57 @@ -794,8 +794,8 @@ pcic98_probe_end: } #endif /* PC98 */ - if (validslots) - timeout(pcictimeout,0,hz/2); + if (validslots && pcic_irq == 0) + timeout(pcictimeout, 0, hz/2); return(validslots); }