From owner-freebsd-current@FreeBSD.ORG Tue Jul 21 13:43:51 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 782BD106566B; Tue, 21 Jul 2009 13:43:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 474578FC08; Tue, 21 Jul 2009 13:43:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id EC28D46B49; Tue, 21 Jul 2009 09:43:50 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 424188A09F; Tue, 21 Jul 2009 09:43:50 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 21 Jul 2009 08:47:52 -0400 User-Agent: KMail/1.9.7 References: <1280352d0907101020q69f494cdndb01ff14ecf7ea8c@mail.gmail.com> <20090720215141.GL49724@elvis.mu.org> <200907211420.33571.hselasky@c2i.net> In-Reply-To: <200907211420.33571.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907210847.52802.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 21 Jul 2009 09:43:50 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: usb@freebsd.org, Alfred Perlstein , Andrew Thompson , Hans Petter Selasky Subject: Re: USB polling (75% done) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 21 Jul 2009 13:43:52 -0000 On Tuesday 21 July 2009 8:20:32 am Hans Petter Selasky wrote: > On Monday 20 July 2009 23:51:41 Alfred Perlstein wrote: > > * Hans Petter Selasky [090715 13:37] wrote: > > > Hi, > > > > > > I've added minimal polling support to the USB P4 repository now. Patch > > > can be found here: > > > > > > http://perforce.freebsd.org/chv.cgi?CH=166148 > > > > > > Dumping core to USB disk: Tested and works. > > > > > > Using USB keyboard in KDB: Does not work because Giant is not locked when > > > calling into the UKBD's get char routine. UKBD is Giant locked. Someone > > > familiar with the keyboard system on FreeBSD please step forward and fix > > > this so that UKBD gets independent of the Giant mutex. > > > > the ukbd driver needs giant? > > I think the keyboard mux is under Giant, and does not have any concept about > mutexes. Most simple solution would be that DDB locks Giant before entering > into the keyboard code. In general if you are in DDB you should not be using any locks at all. -- John Baldwin