Re: FreeBSD panic with umass

2003-01-28 Thread Kenneth Culver
I've only had time to do minimal testing, but no panics anymore with this patch. Ken On Mon, 27 Jan 2003, MIHIRA Sanpei Yoshiro wrote: > I forgot to add below changes. > > Please apply this patch and > # make -f Makefile.usbdevs > > Cheers > > - sanpei > > > Index: sys/dev/usb/usbdevs > ==

Re: FreeBSD panic with umass

2003-01-26 Thread MIHIRA Sanpei Yoshiro
I forgot to add below changes. Please apply this patch and # make -f Makefile.usbdevs Cheers - sanpei Index: sys/dev/usb/usbdevs === RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.106 diff -u -r1.106

Re: FreeBSD panic with umass

2003-01-26 Thread Kenneth Culver
I actually just went and got a sandisk card reader instead but I'll test your changes anyway, since I still have the genesys one. Ken On Mon, 27 Jan 2003, MIHIRA Sanpei Yoshiro wrote: > I have GENESYS USB2IDE Interface Card(GL641). And I also have > same problem(umass0: BBB bulk-in clear stall

Re: FreeBSD panic with umass

2003-01-26 Thread MIHIRA Sanpei Yoshiro
I have GENESYS USB2IDE Interface Card(GL641). And I also have same problem(umass0: BBB bulk-in clear stall failed, IOERROR) NetBSD was aleady fixed http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=19971 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/umass_scsipi.c I created patch fo

Re: FreeBSD panic with umass

2003-01-20 Thread Kenneth Culver
here are a few pointers when you look at the linux driver: several devices in linux/drivers/usb/storage/unusual_devs.h have the quirk flag: US_FL_FIX_INQUIRY. in the same directory, searching for USB_FL_FIX_INQUIRY yields the following in usb.c: /* Handle those devices which need us to fake * th

Re: FreeBSD panic with umass

2003-01-20 Thread Nate Lawson
On Tue, 21 Jan 2003, Kenneth Culver wrote: > Basically in linux, in order for this device to work, the INQUIRY data has > to be faked. Just in case you forgot, this is the Genesys Logic Compact > Flash reader/writer. There is some whole big set of crap the driver goes > through in linux just to fak

Re: FreeBSD panic with umass

2003-01-20 Thread Kenneth Culver
I figured out something new on this device: Basically in linux, in order for this device to work, the INQUIRY data has to be faked. Just in case you forgot, this is the Genesys Logic Compact Flash reader/writer. There is some whole big set of crap the driver goes through in linux just to fake the

Re: FreeBSD panic with umass

2003-01-20 Thread Kenneth Culver
On Mon, 20 Jan 2003, Matthew Dillon wrote: > :Hmm, good stuff, but shouldn't something be committed anyway? I mean if it > :causes a panic just by plugging in the device that's totally unacceptable. > :I'll provide a backtrace of the crash on my computer tomorrow I suppose (I > :won't be home un

Re: FreeBSD panic with umass

2003-01-20 Thread Matthew Dillon
:Hmm, good stuff, but shouldn't something be committed anyway? I mean if it :causes a panic just by plugging in the device that's totally unacceptable. :I'll provide a backtrace of the crash on my computer tomorrow I suppose (I :won't be home until then) and let people know if that's what's causing

Re: FreeBSD panic with umass

2003-01-20 Thread Kenneth Culver
> :Backtrace would be useful since you shouldn't be getting a panic. At the > :worst, your usb reader just wouldn't work. > : > :-Nate > > At worse the system will crash. The problem is that USB devices > sometimes return total garbage for the READ CAPACITY command. This > isn't CAM'

Re: FreeBSD panic with umass

2003-01-20 Thread Matthew Dillon
:Backtrace would be useful since you shouldn't be getting a panic. At the :worst, your usb reader just wouldn't work. : :-Nate At worse the system will crash. The problem is that USB devices sometimes return total garbage for the READ CAPACITY command. This isn't CAM's fault, it is

Re: FreeBSD panic with umass

2003-01-20 Thread Trish Lynch
On Mon, 20 Jan 2003, Nate Lawson wrote: > To start, copy a quirk entry and wildcard a lot: > "Genesys*", "*", "*" > > Then do camcontrol inquiry daX and change the quirk to be more specific. > > Backtrace would be useful since you shouldn't be getting a panic. At the > worst, your usb reader ju

Re: FreeBSD panic with umass

2003-01-20 Thread Kenneth Culver
> To start, copy a quirk entry and wildcard a lot: > "Genesys*", "*", "*" > > Then do camcontrol inquiry daX and change the quirk to be more specific. > > Backtrace would be useful since you shouldn't be getting a panic. At the > worst, your usb reader just wouldn't work. > > -Nate > > That was

Re: FreeBSD panic with umass

2003-01-20 Thread Nate Lawson
On Mon, 20 Jan 2003, Kenneth Culver wrote: > > > Hi, > > > I just tried to use a Genesys Logic USB Compact Flash card reader, > > > and the following messages come up, followed by a panic: > > > > > > Jan 19 19:41:30 kenshin kernel: umass0: Genesys Logic USB Storage Device, > > > rev 1. > > > 10/

Re: FreeBSD panic with umass

2003-01-20 Thread Kenneth Culver
> > Hi, > > I just tried to use a Genesys Logic USB Compact Flash card reader, > > and the following messages come up, followed by a panic: > > > > Jan 19 19:41:30 kenshin kernel: umass0: Genesys Logic USB Storage Device, > > rev 1. > > 10/1.13, addr 2 > > Jan 19 19:41:30 kenshin kernel: umass0

Re: FreeBSD panic with umass

2003-01-20 Thread Trish Lynch
On Sun, 19 Jan 2003, Kenneth Culver wrote: > Hi, > I just tried to use a Genesys Logic USB Compact Flash card reader, > and the following messages come up, followed by a panic: > > Jan 19 19:41:30 kenshin kernel: umass0: Genesys Logic USB Storage Device, > rev 1. > 10/1.13, addr 2 > Jan 19 1

FreeBSD panic with umass

2003-01-19 Thread Kenneth Culver
Hi, I just tried to use a Genesys Logic USB Compact Flash card reader, and the following messages come up, followed by a panic: Jan 19 19:41:30 kenshin kernel: umass0: Genesys Logic USB Storage Device, rev 1. 10/1.13, addr 2 Jan 19 19:41:30 kenshin kernel: umass0: Get Max Lun not supported