Subject: kern/33459: Cannot recognize capacity of Sandisk SDCFB-128 via PCMCIA properly.
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <omote@sapmed.ac.jp>
List: netbsd-bugs
Date: 05/10/2006 19:55:00
>Number: 33459
>Category: kern
>Synopsis: Cannot recognize capacity of Sandisk SDCFB-128 via PCMCIA properly.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 10 19:55:00 +0000 2006
>Originator: Masahito Omote
>Release: NetBSD-3.0
>Organization:
>Environment:
NetBSD estelle.omt.local-network 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
When using SDCFB-128 via PCMCIA/CF slot, kernel cannot recognize its capacity properly and I cannot access to this CF any more.
dmesg returns as follows,
cbb1: wait took 0.032523s
wdc2 at pcmcia1 function 0: <SanDisk, SDP, 5/3 0.6>
wdc2: i/o mapped mode
atabus2 at wdc2 channel 0
wd1 at atabus2 drive 0: <SanDisk SDCFB-128>
wd1: drive supports 1-sector PIO transfers, LBA48 addressing
wd1: 0, 0 cyl, 8 head, 32 sec, 512 bytes/sect x 0 sectors
wd1: drive supports PIO mode 4
wd1 detached
atabus2 detached
wdc2 detached
On the other hand, when using MELCO MCR-6U, which is USB multimedia card adapter, kernel returns it's capacity properly.
umass0 at uhub1 port 2 configuration 1 interface 0
umass0: MELCO INC. MCR-6U/U2, rev 2.00/3.00, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <MELCO, CF CARD Reader, 3.00> disk removable
sd0: fabricating a geometry
sd0: 122 MB, 122 cyl, 64 head, 32 sec, 512 bytes/sect x 250880 sectors
sd1 at scsibus0 target 0 lun 1: <MELCO, SM CARD Reader, 3.00> disk removable
sd1: drive offline
sd2 at scsibus0 target 0 lun 2: <MELCO, MS CARD Reader, 3.00> disk removable
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <MELCO, SD CARD Reader, 3.00> disk removable
sd3: drive offline
This CF can use at FreeBSD, Linux and Windows. Filesystems of CF's partition(FAT16, ext2/ext3, ffs) does not have to do with this bug.
Machine environment
ThinkPad X21 with ultrabase X2.
>How-To-Repeat:
1. Insert Sandisk SDCFB-128 to PCMCIA slot or CF slot.
>Fix:
Adding fallback to CHS in dev/ata/wd.c when wd->sc_capacity = 0 solves this problem, but I cannot confident with whether this approach is appropriate or not.
And I do not check -current yet. But as far as checking -current source, this problem still remains.