NetBSD Problem Report #33459

From www@netbsd.org  Wed May 10 19:52:44 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 013AD63B898; Wed, 10 May 2006 19:52:44 +0000 (UTC)
Message-Id: <20060510195244.013AD63B898@narn.netbsd.org>
Date: Wed, 10 May 2006 19:52:44 +0000 (UTC)
From: omote@sapmed.ac.jp
Reply-To: omote@sapmed.ac.jp
To: gnats-bugs@netbsd.org
Subject: Cannot recognize capacity of Sandisk SDCFB-128 via PCMCIA properly.
X-Send-Pr-Version: www-1.0

>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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.