From owner-freebsd-current@FreeBSD.ORG Wed Jan 7 09:41:15 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18F1E16A4CE for ; Wed, 7 Jan 2004 09:41:15 -0800 (PST) Received: from smtp.web.de (smtp05.web.de [217.72.192.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AA9543D3F for ; Wed, 7 Jan 2004 09:41:11 -0800 (PST) (envelope-from nakal@web.de) Received: from [80.135.117.107] (helo=[80.135.117.107]) by smtp.web.de with esmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.99 #566) id 1AeHfv-0004tC-00; Wed, 07 Jan 2004 18:40:59 +0100 From: Martin To: Jay Cornwall In-Reply-To: <3FFB41DE.7030607@evilrealms.net> References: <3FFB4150.2020601@evilrealms.net> <3FFB41DE.7030607@evilrealms.net> Content-Type: text/plain Message-Id: <1073497253.715.27.camel@klotz.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 07 Jan 2004 18:40:53 +0100 Content-Transfer-Encoding: 7bit Sender: nakal@web.de cc: Bruce Cran cc: Bernd Walter cc: FreeBSD Current Subject: Re: [PATCH] Fix for USB ugen panics X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 17:41:15 -0000 On Wed, 2004-01-07 at 00:16, Jay Cornwall wrote: > I can't remember the last time I actually remembered to attach a patch that I > was talking about. > > My apologies. :) Can happen :) Good news: the panic is gone. But, there are still some minor problems. Maybe I should explain what I'm doing first, so you don't get confused. I'm _trying_ to write a small capture program for my webcam (Creative Videoblaster Webcam Go). I'm not very successful. I managed to get a stream of black(?) pixels from my webcam, using the so-called isochronous transfer mode. The program is called "camtest". I was doing some experiments with ugen to check out why only black pixels are coming from the interface and so I tried out a sysctl "USB_SET_CONFIG". That caused a panic instantly. I removed all unnecessary code around the sysctl-call to submit a PR and called the program "camtest-panic". The behavior of the 2 programs can be described like this (now, after the patching of the ugen-code; earlier I got a panic, of course): - you can start "camtest" as many times as you want after fresh reboot and the isochronous transfer can be established successfully - after starting "camtest-panic", first time there is no error - after starting "camtest-panic" only one time, you will not get past the sysctl-call "USB_SET_ALTINTERFACE" in "camtest", it stops with the message (from perror): "Invalid argument" - after starting "camtest-panic" first time, you get an error when starting it (e.a. "camtest-panic") more times after the sysctl-call "USB_SET_CONFIG", it stops with the message (perror): "Input/output error" I hope you can see from my description that there is still something weird going on with ugen. I wish I could help, but I don't know much about USB and just started my first program. It just looks for me like there is something not being cleaned up correctly after the USB_SET_CONFIG-sysctl in "camtest-panic". Thanks for the patch, Martin