Subject: port-hpcmips/11049: NetBSD can't access IBM microdrive on NEC Mobilepro 770
To: None <gnats-bugs@gnats.netbsd.org>
From: None <riede@security.kpnqwest.com>
List: netbsd-bugs
Date: 09/20/2000 10:39:27
>Number:         11049
>Category:       port-hpcmips
>Synopsis:       NetBSD can't access IBM microdrive on NEC Mobilepro 770
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 20 10:45:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dr. Christian Riede
>Release:        1.5_ALPHA2/snapshot 20000914
>Organization:
KPNQwest Germany GmbH
>Environment:
Nec Mobilepro 770, IBM Microdrive in CF Slot, NE2000-Ethernet in PCMCIA slot

NetBSD 1.5_ALPHA2 (GENERIC) #13: Thu Sep 14 16:07:32 JST 2000
    shin@touji.localnet:/u/obj/release/sys/arch/hpcmips/compile/GENERIC
NEC MobilePro 770 (NEC VR4121 rev0.0 131.072MHz)
total memory = 32768 KB
avail memory = 27760 KB                                                         

>Description:
while booting, the kernel finds 2 disks instead of one. 
It can't access any of them. Here the boot output:

mem_cluster_cnt = 2
mem_clusters[0] = {0x0,0x25d000}
mem_clusters[1] = {0x25d000,0x1da3000}
loading 0x25d000,0x1da3000
Copyright (c) 1996, 1997, 1998, 1999, 2000
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.
 
NetBSD 1.5_ALPHA2 (GENERIC) #13: Thu Sep 14 16:07:32 JST 2000
    shin@touji.localnet:/u/obj/release/sys/arch/hpcmips/compile/GENERIC
NEC MobilePro 770 (NEC VR4121 rev0.0 131.072MHz)
total memory = 32768 KB
avail memory = 27760 KB
using 435 buffers containing 1740 KB of memory
/u/src/release/src/sys/arch/hpcmips/vr/vr.c(294): vr_bus_reset() not implemented.
mainbus0 (root)
cpu0 at mainbus0: NEC VR4100 CPU (0xc60) Rev. 6.0 with software emulated floating point Rev. 0.0
cpu0: L1 cache: 16KB/16B instruction, 8KB/16B data, direct mapped
cpu0: No L2 cache
cpu0: install VR specific idle routine
vrip0 at mainbus0
vrcmu0 at vrip0 addr 0xb000060-0xb00007f
vrgiu0 at vrip0 addr 0xb000100-0xb00011f intr 8
pwctl0 at vrgiu0 port=14 id=0 on=1
vrbcu0 at vrip0 addr 0xb000000-0xb00001f
vrbcu: cpu 131.072MHz, bus 32.768MHz, ram 65.536MHz
com0 at vrip0 addr 0xc000000-0xc000007 intr 9: ns16550a, working fifo
com0: console
vrrtc0 at vrip0 addr 0xb0000c0-0xb0000df intr 2
vrkiu0 at vrip0 addr 0xb000180-0xb00019f intr 7
wskbd0 at vrkiu0 mux 1
vrpmu0 at vrip0 addr 0xb0000a0-0xb0000bf intr 1
vrpmu: GPIO[3] activation
vrdsu0 at vrip0 addr 0xb0000e0-0xb0000e7
vrpiu0 at vrip0 addr 0xb000120-0xb0002bf intr 5
wsmouse0 at vrpiu0 mux 0
vrisab0 at vrgiu0:ISA port 0x14000000-0x18000000 mem 0x10000000-0x20000000
isa0 at vrisab0
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0x70000-0x73fff irq 589827
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has socket A only
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
pcmcia at pcic0 controller 1 socket 0 not configured
bivideo0 at mainbus0: pseudo video controller
hpcfb0 at bivideo0: hpcrasops 640x240 pixels, 65536 colors, 80x24 chars: tvram redraw
wsdisplay0 at hpcfb0
wsdisplay0: screen 0 added (std, vt100 emulation)
btnmgr0 at mainbus0
wskbd1 at btnmgr0 mux 1
hpcapm0 at mainbus0: pseudo power management module
apmdev0 at hpcapm0: Power Management spec V1.2
/u/src/release/src/sys/arch/hpcmips/vr/vr.c(294): vr_bus_reset() not implemented.
pcic0: using irq 589827 for socket events
wdc1 at pcmcia0 function 0 port 0x14000400-0x1400040f                           
wd0 at wdc1 channel 0 drive 0: <IBM-DMDM-10340>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 342 MB, 695 cyl, 16 head, 63 sec, 512 bytes/sect x 700560 sectors
wd1 at wdc1 channel 0 drive 1: <ST506>
wd1: drive supports 1-sector pio transfers, chs addressing
wd1: 69632 KB, 1024 cyl, 8 head, 17 sec, 512 bytes/sect x 139264 sectors
ne0 at pcmcia1 function 0 port 0x300-0x30f port 0x310-0x31f
ne0: I-O DATA PCLA/TE Ethernet
ne0: Ethernet address 00:00:e8:6a:8e:06
boot device: wd0
root on wd0a dumps on wd0b
pcmcia0: card irq 3
wdc1:0:0: recal drive fault
wd0d: device fault reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: not ready, st=0xff, err=0x00
wd0d: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: not ready, st=0x00, err=0x00
wd0d: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: not ready, st=0x00, err=0x00
wd0d: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: not ready, st=0xff, err=0x00
wd0d: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: not ready, st=0x00, err=0x00
wd0d: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0)
wdc1:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: recal timed out
wd0d: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying        



>How-To-Repeat:

Boot System with PBSDBOOT.EXE and 
generic kernel with microdrive installed
>Fix:

unknown. Might have to do with wrong interrupt setup 
(Watch "pcmcia0: card irq 3" line)

>Release-Note:
>Audit-Trail:
>Unformatted: