*BSD News Article 25536


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:7691 comp.os.386bsd.bugs:1964
Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!news.sprintlink.net!clark.net!clark.net!not-for-mail
From: ack@clark.net (Eric S. Hvozda)
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.bugs
Subject: [NetBSD 0.9] patch to wd.c for IDE controller weirdnesses
Date: 3 Jan 1994 17:02:15 -0500
Organization: Clark Internet Services, Inc.
Lines: 72
Message-ID: <2ga4l7$i75@explorer.clark.net>
NNTP-Posting-Host: explorer.clark.net
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Ok, I got it on, but now I keep getting this during boot:


Jan  3 13:03:35 DECpc /netbsd: NetBSD 0.9 (DECPC) #0: Mon Jan  3 11:07:50 EST 1994
Jan  3 13:03:35 DECpc /netbsd:   ack@DECpc:/usr/src/sys/arch/i386/compile/DECpc
Jan  3 13:03:35 DECpc /netbsd: CPU: i486DX (486-class CPU)
Jan  3 13:03:35 DECpc /netbsd: real mem  = 12578816
Jan  3 13:03:35 DECpc /netbsd: avail mem = 11190272
Jan  3 13:03:35 DECpc /netbsd: using 89 buffers containing 733184 bytes of memory
Jan  3 13:03:35 DECpc /netbsd: pc0 at 0x60-0x6f irq 1 on isa
Jan  3 13:03:35 DECpc /netbsd: pc0: color
Jan  3 13:03:35 DECpc /netbsd: com0 at 0x3f8-0x3ff irq 4 on isa
Jan  3 13:03:36 DECpc /netbsd: com1 at 0x2f8-0x2ff irq 3 on isa
Jan  3 13:03:36 DECpc /netbsd: PS/2 AUX mouse found.  Installing driver
Jan  3 13:03:36 DECpc /netbsd: pms0 at 0x60 irq 12 on isa
Jan  3 13:03:36 DECpc /netbsd: lpt0 at 0x378-0x37f irq 7 on isa
Jan  3 13:03:36 DECpc /netbsd: wdc0 at 0x1f0-0x1f7 irq 14 on isa
Jan  3 13:03:36 DECpc /netbsd: wd0 at wdc0 targ 0: 234MB 723 cyl, 13 head, 51 sec <QUANTUM LP240A GM240A01X>
Jan  3 13:03:36 DECpc /netbsd: wd1 at wdc0 targ 1: 234MB 967 cyl, 16 head, 31 sec <Maxtor 7245 AT>
Jan  3 13:03:36 DECpc /netbsd: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
Jan  3 13:03:36 DECpc /netbsd: fd0 at fdc0 targ 0: 1.44MB 80 cyl, 2 head, 18 sec
Jan  3 13:03:36 DECpc /netbsd: fd1 at fdc0 targ 1: 1.2MB 80 cyl, 2 head, 15 sec
Jan  3 13:03:36 DECpc /netbsd: npx0 at 0xf0-0xff on isa
Jan  3 13:03:36 DECpc /netbsd: npx0: using exception 16
Jan  3 13:03:36 DECpc /netbsd: biomask 4040 ttymask 109a netmask 8000 impmask 109a
Jan  3 13:03:36 DECpc /netbsd: lpt0: stray interrupt sts=0x87
Jan  3 13:03:36 DECpc /netbsd: wdc0: extra interrupt
Jan  3 13:03:36 DECpc /netbsd: wdc0: timeout in wdintr WDCS_BUSY
Jan  3 13:03:36 DECpc /netbsd: wdc0: timeout in wdintr WDCS_DRQ
Jan  3 13:03:36 DECpc /netbsd: wdc0: timeout in wdintr WDCS_DRQ
Jan  3 13:03:36 DECpc /netbsd: wd0d: hard error reading fsbn 1 (wd0 bn 1; cn 0 tn 0 sn 1)<4>wd0: cannot find label (disk label I/O error)

After this it complains about needing to fsck wd0a by hand and drops to
single user.  If I fsck, it locks.  If I just exit to multi-user, it
hangs, but ^C brings it back and it continues and bootstraps Ok.  However
any attempt to mount, fsck, or otherwise touch wd0 period results in a lock.
Lock is (a lock is defined as being inactive for 10+ mins).

Also as a attempt to look at what is going on, I reverted to the orginal source
and turned WDCNDELAY_DEBUG on.  Now it doesn't appear to lock any longer,
but it's bit amazing how often it will time out for 30000us+.  If I do the same 
with the patched wd.c, I have the same problems outlined as above.

It's apparent It's having problems with two IDE drives, but I don't know
why.  Is it because of the patch?  It would appear so since backing the patch 
off makes the problem go away.  Does this imply I have to choose between
no more IDE lock ups and having two IDE drives?  It would seem that way, but
tell me it isn't so.  

My set up is:

DECPC 450D2LP with two 234Mb IDE drives partitioned as follows:

wd0:
0	DOS (50% of drive)
1	NetBSD (with boot blocks defalting to wd1a)

wd1:
0	DOS (5Mb)
1	NetBSD (everythign resides here)

I basically use wd0a as a space to work and compile things.  There is no
swap defined on wd0; it resides on wd1 and if defined properly in the kernel.
I basically have a need to be able to pull wd1 out at anytime and have all
of NetBSD on it, ergo my current mess :-)

I'd really like to track this problem and lick it, so if anyone has ideas of
where to start or to go, I'm all ears.
-- 
Ack!
Creek, not creek; Pop not soda; Car needs washed...