From owner-freebsd-usb@FreeBSD.ORG Tue May 16 19:46:05 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B45416A4BF; Tue, 16 May 2006 19:46:05 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFE6943D53; Tue, 16 May 2006 19:46:04 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [IPv6:::1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k4GJjfL5051037; Tue, 16 May 2006 13:45:41 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 16 May 2006 13:45:41 -0600 (MDT) Message-Id: <20060516.134541.115955424.imp@bsdimp.com> To: sem@FreeBSD.org From: Warner Losh In-Reply-To: <446A14B1.8090607@FreeBSD.org> References: <44699796.40206@FreeBSD.org> <20060516.093014.41680320.imp@bsdimp.com> <446A14B1.8090607@FreeBSD.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org Subject: Re: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 19:46:05 -0000 From: Sergey Matveychuk Subject: Re: all usb-ethernet adapters are borked? Date: Tue, 16 May 2006 22:06:41 +0400 > Warner Losh wrote: > > From: Sergey Matveychuk > > Subject: all usb-ethernet adapters are borked? > > Date: Tue, 16 May 2006 13:12:54 +0400 > > > >> After I've explored my problem with rue(4) I've found out our USB stack > >> is incompatible with our current TCP/IP implementation (6.0+) ("Trying > >> sleep, but thread marked as sleeping prohibited" problem). > >> > >> I've discussed it with glebius and he told me, it's complete USB problem. > >> > >> As I understand USB transfer should be rewritten to use no mspleep calls. > >> > >> Any comments? Any quick fixes? > > > > Have you tried marking the rue driver as requing giant? > > I'm not sure how to do it. But let me make an assumption the driver > already do it: > > ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | > IFF_NEEDSGIANT; > > Is it what do you mean? Or you mean another mark? No. that's what I mean. Can you post a traceback to the sleeping with the sleep lock issue? Warner