Subject: kern/26717: PCMCIA HDD is not working
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 08/20/2004 00:23:55
>Number:         26717
>Category:       kern
>Synopsis:       PCMCIA HDD is not working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 19 15:39:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     ITOH Yasufumi
>Release:        NetBSD 2.0_BETA, NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD mei.my.domain 2.0G NetBSD 2.0G (MEI_TEST) #373: Thu Aug 19 00:24:32 JST 2004 itohy@pino.my.domain:/w/src/sys/arch/i386/compile/MEI_TEST i386
Architecture: i386
Machine: i386

>Description:
	PCMCIA-IDE converter and IDE HDD is not detected.

	I have two PCMCIA-IDE converter devices:
		novac device
		Microtech device

	Neither of them are working on 2.0_BETA and -current (2.0G).
	I thought the devices were usable on older releases.

	Here are kernel logs.  Note the wdc is detected but no wd.

novac device:

2.0_BETA
[[ insert card ]]
wdc2 at pcmcia0 function 0: Novac PCCARD-IDE
atabus1 at wdc2 channel 0
[[ remove card ]]
atabus1 detached
wdc2 detached

2.0G with PCMCIAVERBOSE and ATADEBUG
[[ insert card ]]
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: PCMCIA, PnPIDE, D6
pcmcia0: Manufacturer code 0xffffffff, product 0xffffffff
pcmcia0: function 0: unspecified, ccr addr 100 mask 3
pcmcia0: function 0, config table entry 1: I/O card; irq mask ceb8; iomask a, io
space 320-32f; mwait_required io16 irqlevel
pcmcia0: function 0, config table entry 2: I/O card; irq mask ceb8; iomask a, io
space 340-34f; mwait_required io16 irqlevel
pcmcia0: function 0, config table entry 3: I/O card; irq mask ceb8; iomask a, io
space 360-36f; mwait_required io16 irqlevel
wdc1 at pcmcia0 function 0: <PCMCIA, PnPIDE, D6>
wdc1: i/o mapped mode
atabus1 at wdc1 channel 0
wdc1:0: before reset, st0=0x0, st1=0x0
wdc1:0 drive 0 wd_cyl_lo(2): got 0x2 != 0x01
wdc1:0 drive 1 wd_cyl_lo(2): got 0x2 != 0x01
atabusattach: ch_drive_flags 0x0 0x0
[[ remove card ]]
wdcdetach: wdc1: detaching atabus1
atabus1 detached
wdc1 detached


Microtech device:

2.0_BETA
[[ insert card ]]
wdc2 at pcmcia0 function 0
atabus1 at wdc2 channel 0
[[ remove card ]]
atabus1 detached
wdc2 detached

2.0G with PCMCIAVERBOSE and ATADEBUG
[[ insert card ]]
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: Microtech International Inc., IDE PCCARD, (C) ARCHOS S.A. 199
5-98 Fax +33 1 60 13 99 18
pcmcia0: Manufacturer code 0x5241, product 0x43
pcmcia0: function 0: fixed disk(ata), ccr addr 200 mask 1
pcmcia0: function 0, config table entry 0: I/O card; irq mask ffff; iomask a, io
space 1f0-1f7 3f6-3f7; mwait_required io8 io16 irqlevel
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, io
space 0-f; mwait_required io8 io16 irqlevel
wdc1 at pcmcia0 function 0: <Microtech International Inc., IDE PCCARD, (C) ARCHO
S S.A. 1995-98 Fax +33 1 60 13 99 18>
wdc1: i/o mapped mode
atabus1 at wdc1 channel 0
wdc1:0: before reset, st0=0x80, st1=0x0
wdc1:0 drive 0 wd_cyl_lo: got 0x80 != 0x02
wdc1:0 drive 0 wd_cyl_lo: got 0x80 != 0x01
wdc1:0 drive 0 wd_sector: got 0x80 != 0x01
wdc1:0 drive 0 wd_sector: got 0x80 != 0x02
wdc1:0 drive 0 wd_cyl_lo(2): got 0x80 != 0x01
wdc1:0:0: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
wdc1:0:1: after reset, sc=0x1 sn=0x2 cl=0x1 ch=0x0
wdc1:0: wdcwait_reset() end, st0=0x0 st1=0x0
wdc1:0: after reset, ret_value=0x2
wdc1:0:1: after reset, sc=0x1 sn=0x2 cl=0x1 ch=0x0
wdc1:0: wait DRDY st0 0x0 st1 0x0
atabusattach: ch_drive_flags 0x0 0x0
[[ remove card ]]
wdcdetach: wdc1: detaching atabus1
atabus1 detached
wdc1 detached

>How-To-Repeat:
	boot kernel and insert a PCMCIA-IDE HDD card.

>Fix:
	ENOCLUE.
>Release-Note:
>Audit-Trail:
>Unformatted: