From owner-freebsd-usb@FreeBSD.ORG Mon Feb 16 22:54:08 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74EDE1065695 for ; Mon, 16 Feb 2009 22:54:08 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 00FA48FC1F for ; Mon, 16 Feb 2009 22:54:07 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by nf-out-0910.google.com with SMTP id e27so230476nfd.33 for ; Mon, 16 Feb 2009 14:54:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XuA3g4P+5NoEiadMbUr2c3lo7EQ9to62zfeeNx3qHbY=; b=mtUpLNswSYplOD+bj2vodDzvrAJ0D8CLYcdPZh69IlF5OA27RnCz6wnK850DWpSEDe 2N1vkAFoPml2rsnUsev0gM8CDsAJoFJVMKtKZ1uVKJg43cClL/QWuBlAgGBg2kgRAulB AeA7dU/plNV47zhFQQ/L3Y/OVTgCBHe73C0S8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=OhxeJFc0G4s2rvwQ5ZzZ5Byst6EfG1sHeyE1IOa4fjxurLJOHUCzR63cIEDzCxQ+IY 3pmOF5Hv3t6zEJU5X2x+StjW91E91Leng2GtYdqkSCZAAlbbC8blt2i/iAG9zruYrHTd 9xLcsStHgxcEF6DxdQkgSNHoghNf1jpTqEpy4= MIME-Version: 1.0 Received: by 10.210.52.15 with SMTP id z15mr1248748ebz.179.1234823549156; Mon, 16 Feb 2009 14:32:29 -0800 (PST) In-Reply-To: <200902162127.12209.hselasky@c2i.net> References: <20090216153519.GB4723@citylink.fud.org.nz> <200902161755.07491.hselasky@freebsd.org> <200902162127.12209.hselasky@c2i.net> Date: Mon, 16 Feb 2009 23:32:29 +0100 Message-ID: <3a142e750902161432m15d8c316g6a409d216e9c7053@mail.gmail.com> From: "Paul B. Mahol" To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org, weongyo@freebsd.org, Robert Watson , Andrew Thompson , freebsd-usb@freebsd.org Subject: Re: USB support in NDIS -- IFF_NEEDSGIANT? 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: Mon, 16 Feb 2009 22:54:10 -0000 On 2/16/09, Hans Petter Selasky wrote: > Hi, > > As long as there are locking mechanisms like this: > > void > KeAcquireSpinLockAtDpcLevel(kspin_lock *lock) > { > while (atomic_cmpset_acq_int((volatile u_int *)lock, 0, 1) == 0) > /* sit and spin */; > > return; > } > > inside if_ndis, the whole of NDIS needs to run under one lock. What is the > name of the "NDIS Giant Lock" after that "Giant" is removed from NDIS? > > --HPS > > On Monday 16 February 2009, Hans Petter Selasky wrote: >> On Monday 16 February 2009, Andrew Thompson wrote: >> > On Mon, Feb 16, 2009 at 11:33:18AM +0000, Robert Watson wrote: >> > > Dear all: >> > >> > I had promised Weongyo that I would convert ndis to USB2 but have been a >> > bit busy. Anyone else welcome to pick this up in the mean time. >> >> I can take care of it. Will be back in some hours or tomorrow with >> patches. >> >> How can I test the if_ndis is working USB-wise? >> >> I assume the latest files are in -current. >> >> --HPS > > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > The whole purpose of IFF_NEEDSGIANT is because usb1 *needs* it. I'm currenly using my own custom if_ndis/ndis code with usb stuff removed and it works fine without that flag. Anyway, usb2 is going to replace usb1 very soon and in that case if_ndis & ndis will stop working. So comment out whole ndisulator from build until it get ported to usb2. -- Paul