Bug 31967

Summary: reboot/shutdown hangs on Sony VAIO 505 w/FreeBSD-4.4
Product: Base System Reporter: phiber <phiber>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description phiber 2001-11-14 05:10:00 UTC
Since doing a full "make world" upgrade from 4.3 to 4.4, neither shutdown
nor reboot act as expected.  My Sony VAIO 505EX shuts down cleanly, it
syncs the disk, prints the uptime, then locks SOLID.  Ctrl-Alt-Del won't
work, and I have to hard power-cycle the laptop.  This is affecting reboot
as well as shutdown -p and shutdown -h.  All freeze after the uptime is
displayed.  This didn't happen with 4.3, nor as far back as I can remember
(2.2.x and 3.x always shutdown/rebooted fine with PAO, FWIW).  Turning off
APM made no difference, so I doubt that's related...

How-To-Repeat: Try shutting down or rebooting, and it will hang solid after printing
the uptime, every single time without fail.
Comment 1 phiber 2001-11-15 19:44:15 UTC
Just a little update...  I've discovered that this problem ONLY occurs if a
PCMCIA card is in the machine during reboot or shutdown.  If the slot is empty,
the laptop will reboot or shutdown as normal.  If the slot is full (e.g. with
my 3C589), the machine will hang on reboot or shutdown.
This is the only time I've experienced PCMCIA related hangs with 4.4-RELEASE.
My ethernet card works fine during normal system use.  Suffice to say this did
NOT happen with previous versions of FreeBSD.  Also of note is that I had to
add...

hw.pcic.intr_path="1"
hw.pcic.irq="0"

...to /boot/loader.conf after doing my initial install, since the machine would
panic otherwise.  But everything seemed fine after this, only the reboot and
shutdown weirdness remains.
In adding some printf's to /sys/kern/kern_shutdown.c, it would appear that
when the PCMCIA slot is occupied on shutdown, the machine hangs when
EVENTHANDLER_INVOKE(shutdown_post_sync, howto)
is called on line 310.
Comment 2 iedowse freebsd_committer freebsd_triage 2002-12-01 20:28:51 UTC
State Changed
From-To: open->feedback


Does this still happen with more recent releases?
Comment 3 iedowse 2002-12-01 20:54:07 UTC
Adding to the audit trail:

In message <20021201154108.B11526@mail.radicalmedia.com>, Mark Abene writes:
>I had been using a "pccardc power" command in my /etc/rc.shutdown for so long
>that I had forgotten about this.  It now appears to be working fine during
>shutdown/reboot without any help from pccardc.
>
>Thanks,
>-Mark
Comment 4 iedowse freebsd_committer freebsd_triage 2002-12-01 21:15:23 UTC
State Changed
From-To: feedback->closed


Submitter says that the problem has been fixed.