Re: FDC/ACPI/GEOM problems

From: Gavin Atkinson <gavin.atkinson_at_ury.york.ac.uk>
Date: Tue, 28 Sep 2004 17:04:53 +0100
On Tue, 2004-09-28 at 16:04, M. Warner Losh wrote:
> In message: <1096380248.911.7.camel_at_buffy.york.ac.uk>
>             Gavin Atkinson <gavin.atkinson_at_ury.york.ac.uk> writes:
> : 
> : I have spent a little time today looking at this problem in more detail.
> : The hangs on BETA5 that several people have reported are indeed related
> : to the above file revisions. Apparently systems only hang with ACPI
> : enabled, and seem to hang in g_waitidle(), presumably waiting for the
> : floppy drive to become idle.
> : 
> : db> tr 1
> : sched_switch(c1501320,0,1) at sched_switch+0x14f
> : mi_switch(1,0) at mi_switch+0x264
> : sleepq_switch(c08b7980,1,cbc81c90,c060ee72,c08b7980) at
> : sleepq_switch+0xe0
> : sleepq_timedwait(c08b7980,0,0,0,0) at sleepq_timedwait+0x34
> : msleep(c08b7980,0,68,c07f4bb1,14) at msleep+0x2ca
> : g_waitidle(c1500e00,c05e7600,0,cbc81d1c,c05e7652) at g_waitidle+0x48
> : vfs_mountroot(0,c1500e00,c1501320,0,0) at vfs_mountroot+0x10
> : start_init(0,cbc81d48,0,c05e7600,0) at start_init+0x52
> : fork_exit(c05e7600,0,cbc81d48) at fork_exit+0xa4
> : fork_trampoline() at fork_trampoline+0x8
> : --- trap 0x1, eip = 0, esp = 0xcbc81d7c, ebp = 0 ---
> : 
> : On my system, I can't prove that the issue is related to ACPI but others
> : have reported this issue goiung away with ACPI disabled. On my system,
> : the floppy drive LED comes on at the point of the hang. Having a floppy 
> : disk in the drive makes no difference.
> 
> Does removing the fd drive change things?  The fdc worker thread is
> still there in that case...

Unplugging the floppy drive fixes the problem for me.

I don't know if it matters, but even with the floppy drive unplugged, a
drive is still detected as hanging from the controller:

fdc0: <floppy drive controller> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3,0x3f0-0x3f1 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0

Gavin
Received on Tue Sep 28 2004 - 14:05:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:14 UTC