0xdeadc0de panic after plugging in USB CompactFlash reader/writer on 5.0-RELEASE

Bernd Walter ticso at cicely12.cicely.de
Thu Jun 5 07:06:17 PDT 2003


On Thu, Jun 05, 2003 at 03:32:54PM +0200, Poul-Henning Kamp wrote:
> In message <20030605132553.GQ3231 at cicely12.cicely.de>, Bernd Walter writes:
> >On Wed, Jun 04, 2003 at 10:44:53PM -0700, Brian O'Shea wrote:
> >> System panics after PQI Travel Flash (USB Compact Flash reader/writer mass
> >> storage device) is plugged in.
> >> 
> >> This is 5.0-RELEASE on i386.
> >
> >Many things have been changed since 5.0.
> >Please retry with 5.1-RC1 or wait the few days for 5.1-RELEASE.
> 
> Actually, he probably wants this patch which I just sent to the
> QuirkMeister:
> 
> 
> Index: scsi_da.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v
> retrieving revision 1.143
> diff -u -r1.143 scsi_da.c
> --- scsi_da.c	15 May 2003 17:35:35 -0000	1.143
> +++ scsi_da.c	5 Jun 2003 12:47:54 -0000
> @@ -507,6 +507,16 @@
>  		 */
>  		{T_DIRECT, SIP_MEDIA_REMOVABLE, "OTi", "Flash Disk", "*"},
>  		/*quirks*/ DA_Q_NO_6_BYTE
> +	},
> +	{
> +		/*
> +		 * PQI Travel Flash, rev 1.10/2.05, addr 2
> +		 * General Flash Disk Drive 2.05
> +		 * Serial Number ST92163-2000
> +		 */
> +		{T_DIRECT, SIP_MEDIA_REMOVABLE, "General Flash Disk Drive",
> +		     "*", "*"},
> +		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
>  	}
>  };

Mine works fine without quirks:
  port 3 addr 3: full speed, power 100 mA, config 1, Travel Flash(0x1307), PQI(0x0483), rev 2.05
[53]cicely13# camcontrol devlist
<General Flash Disk Drive 2.05>    at scbus0 target 0 lun 0 (da0,pass0)
<General Flash Disk Drive 2.05>    at scbus0 target 0 lun 1 (da1,pass1)
<General Flash Disk Drive 2.05>    at scbus0 target 0 lun 2 (da2,pass2)
[54]cicely13# uname -a
FreeBSD cicely13.cicely.de 5.1-BETA FreeBSD 5.1-BETA #1: Sun May 11 12:58:37 CEST 2003     ticso at cicely5.cicely.de:/var/d9/obj/var/d7/builder/FreeBSD-2003-05-11-cicely13/src/sys/CICELY13  i386

It's possible that the 4 slot version require quirks and share the
version number, but things really shouldn't panic without.
If they do on -current I'm interested.

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso at bwct.de                                  info at bwct.de



More information about the freebsd-hackers mailing list