Re: HEAD memsticks broken? [USB/CAM Problems?]

From: Joel Dahl <joel_at_freebsd.org>
Date: Sat, 16 Feb 2013 11:07:19 +0100
On 14-02-2013 20:37, Joel Dahl wrote:
> On 12-02-2013  8:51, Hans Petter Selasky wrote:
> > On Monday 11 February 2013 23:21:05 Joel Dahl wrote:
> > > On 10-02-2013  0:09, Joel Dahl wrote:
> > > > On 09-02-2013 20:28, Alexander Motin wrote:
> > > > > How long ago that HEAD was built? Could you get full dmesg? I don't
> > > > > think that "PREVENT ALLOW MEDIUM REMOVAL" should cause device drop. "No
> > > > > sense data present" also doesn't look right.
> > > > 
> > > > As I mentioned earlier, I've tried several HEAD snapshots.
> > > 
> > > Just a quick update on this: I've built quite a few releases now and
> > > managed to track down the problem to somewhere between r235789 and
> > > r237855. It'll probably take me another day or two before I know which
> > > commit actually broke it.
> > 
> > Hi,
> > 
> > I don't see any relevant USB+UMASS patches for your issue in this interval, 
> > but many patches in the SCSI/CAM area.
> 
> I finally found it. A r237477 memstick boots fine. A r237478 memstick does not.
> 
> 237478 is the following commit by mav_at_:
> 
> ------------------------------------------------------------------------
> r237478 | mav | 2012-06-23 14:32:53 +0200 (Sat, 23 Jun 2012) | 3 lines
> 
> Add scsi_extract_sense_ccb() -- wrapper around scsi_extract_sense_len().
> It allows to remove number of duplicate checks from several places.
> 
> ------------------------------------------------------------------------

So, mav_at_ haven't replied yet so I did some more investigation. I collected
all the USB sticks I had in the office (5 in total, all Kingston but different
size and models) and tried a memstick installation with each stick. Turns out
r237478 only breaks memstick installation in combination with certain USB
sticks:

# Works:

da0: <Kingston DataTraveler 2.0 1.00> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 7664MB (15695872 512 byte sectors: 255H 63S/T 977C)

da0: <Kingston DataTraveler 2.0 PMAP> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 1906MB (3903488 512 byte sectors: 255H 63S/T 242C)

# Does not work:

da0: <Kingston DataTraveler G3 1.00> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 15295MB (31324160 512 byte sectors: 255H 63S/T 1949C)

da0: <Kingston DataTraveler G3 1.00> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 3690MB (7557704 512 byte sectors: 255H 63S/T 470C)

da0: <Kingston DataTraveler G3 1.00> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 1905MB (3903264 512 byte sectors: 255H 63S/T 242C)

It seems that only USB sticks labeled as "Kingston DataTraveler G3"
are affected by r237478 (in my limited testing, at least). This particular
model is what you get if you buy the cheapest Kingston model on the market
right now.

-- 
Joel
Received on Sat Feb 16 2013 - 09:07:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC