Subject: kern/8476: LS-120 drive doesn't work with -current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <enami@but-b.or.jp>
List: netbsd-bugs
Date: 09/22/1999 23:05:49
>Number:         8476
>Category:       kern
>Synopsis:       LS-120 drive doesn't work with -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 22 23:05:00 1999
>Last-Modified:
>Originator:     enami tsugutomo
>Organization:
>Release:        NetBSD-current as of 1999 sep 23
>Environment:
System: NetBSD plants-doll.enami.but-b.or.jp 1.4K NetBSD 1.4K (PLANTS_DOLL) #105: Thu Sep 23 13:48:55 JST 1999 enami@euphoria.enami.but-b.or.jp:/a/netbsd/kernel/compile/PLANTS_DOLL i386

Notebook (DEC HiNote UltraII) with LS-120 drive (Panasonic LK-RM120)
and network card (I/O data PCLA-TE).  Both connected via pcmcia inserted
already before boot.  1.4M floppy media is inserted in LS-120.

>Description:
With -current, I can't use LS-120 drive anymore.  I remember that I could
use it half or a year ago.

1. On startup, it attaches but failed to get inserted media parameters.
2. After startup, I can't open the sd0.  For example, if I do disklabel sd0,
system says:

# disklabel sd0
pcmcia1: card irq 11
wdc_atapi_start: not ready, st = 80
disklabel: /dev/rsd0d: Input/output error

Here is dmesg output:
NetBSD 1.4K (PLANTS_DOLL) #105: Thu Sep 23 13:48:55 JST 1999
    enami@euphoria.enami.but-b.or.jp:/a/netbsd/kernel/compile/PLANTS_DOLL
cpu0: family 5 model 7 step 0
cpu0: Intel Pentium (P54C) (586-class)
total memory = 40576 KB
avail memory = 35816 KB
using 532 buffers containing 2128 KB of memory
mainbus0 (root)
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 channel 0 drive 0: <IBM-DSOA-21080>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 1033MB, 2100 cyl, 16 head, 63 sec, 512 bytes/sect x 2116800 sectors
wd0: drive supports PIO mode 4, DMA mode 2
lpt0 at isa0 port 0x378-0x37b irq 7
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex
midi0 at sb0: <SB MIDI UART>
opl0 at sb0: model OPL3
midi1 at opl0: <SB Yamaha OPL3>
pcppi0 at isa0 port 0x61
midi2 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
opms0 at pc0 irq 12
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: using irq 3
pcic0: controller 0 (Cirrus PD672X) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: MELCO, LPC2-T, ETHERNET-CARD-UE-2216, R02
pcmcia0: Manufacturer code 0x1bf, product 0x2216
pcmcia0: function 0: network adapter, ccr addr 3f8 mask 3
pcmcia0: function 0, config table entry 32: I/O card; irq mask ffff; iomask a, iospace 300; mwait_required rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia0: function 0, config table entry 33: I/O card; irq mask ffff; iomask a, iospace 320; mwait_required rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia0: function 0, config table entry 34: I/O card; irq mask ffff; iomask a, iospace 340; mwait_required rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia0: function 0, config table entry 35: I/O card; irq mask ffff; iomask a, iospace 360; mwait_required rdybsy_active wp_active bvd_active io8 io16 irqlevel
ne0 at pcmcia0 function 0 port 0x340-0x34f port 0x350-0x35f
ne0: I-O DATA PCLA/T Ethernet
ne0: Ethernet address 00:40:26:4f:28:4d
pcmcia1 at pcic0 controller 0 socket 1
pcmcia1: CIS version PC Card Standard 5.0
pcmcia1: CIS info: Panasonic, LMEK0406
pcmcia1: Manufacturer code 0x32, product 0x306
pcmcia1: function 0: fixed disk, ccr addr 3e0 mask f
pcmcia1: function 0, config table entry 32: I/O card; irq mask ffff; iomask 4, iospace 0; mwait_required rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia1: function 0, config table entry 33: I/O card; irq mask ffff; iomask a, iospace 1f0 3f6; mwait_required rdybsy_active wp_active bvd_active io8 io16 irqlevel
pcmcia1: function 0, config table entry 34: I/O card; irq mask ffff; iomask a, iospace 170 376; mwait_required rdybsy_active wp_active bvd_active io8 io16 irqlevel
wdc1 at pcmcia1 function 0 port 0x330-0x33f
pcmcia1: card irq 9
atapibus0 at wdc1 channel 0
sd0 at atapibus0 drive 0: <LS-120 COSM   02              UHD Flopp, 7328ACA00278, 025AM0A> type 0 direct removable
sd0(wdc1:0:0):  Check Condition on CDB: 0x23 00 00 00 00 00 00 00 0c 00
    SENSE KEY:  Unit Attention
     ASC/ASCQ:  Not Ready To Ready Transition (Medium May Have Changed)

sd0: drive offline
apm0 at mainbus0: Power Management spec V1.1 (BIOS managing devices)
apm0: battery life expectancy: 1%
apm0: A/C state: on
apm0: battery charge state: no battery
apm0: estimated 0m
biomask 4040 netmask 4040 ttymask 50ca
stray interrupt 9
boot device: wd0
root on wd0a dumps on wd0b
WARNING: old BSD partition ID!
root file system type: ffs
pcmcia0: card irq 9
pcmcia1: card irq 11
wdc_atapi_start: not ready, st = 80
stray interrupt 2
pcmcia1: card irq 11
wdc_atapi_start: not ready, st = 80
stray interrupt 11

>How-To-Repeat:
	See above.
>Fix:
	Increasing timeout in wdc_atapi_start seems solve the problem 2
	but it may be a workaround.
>Audit-Trail:
>Unformatted: