From owner-freebsd-usb@FreeBSD.ORG Tue Jul 21 13:20:47 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 0342B106564A for ; Tue, 21 Jul 2009 13:20:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.tele2.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 885418FC26 for ; Tue, 21 Jul 2009 13:20:46 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=gg2W7PyvkLb8p4ie143lBA==:17 a=8kQB0OdkAAAA:8 a=6I5d2MoRAAAA:8 a=qDiRO2zrLxbiixRva8cA:9 a=XpQ1n1eJ-zfCsha2FFf-IJxmWUAA:4 a=9aOQ2cSd83gA:10 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 541094400; Tue, 21 Jul 2009 14:20:43 +0200 From: Hans Petter Selasky To: Alfred Perlstein Date: Tue, 21 Jul 2009 14:20:32 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <1280352d0907101020q69f494cdndb01ff14ecf7ea8c@mail.gmail.com> <200907152236.58049.hselasky@c2i.net> <20090720215141.GL49724@elvis.mu.org> In-Reply-To: <20090720215141.GL49724@elvis.mu.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907211420.33571.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-current@freebsd.org, Andrew Thompson Subject: Re: USB polling (75% done) 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, 21 Jul 2009 13:20:47 -0000 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. --HPS