From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 16:02:29 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 2A8511065676; Tue, 17 Feb 2009 16:02:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB968FC22; Tue, 17 Feb 2009 16:02:28 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=q9aMRUVe28QA:10 a=Tt-RQtgY3TAA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=bCvvmm9C1JGzoZ3TFlgA:9 a=i-owtd1LMAKyLyGElVIA:7 a=Lq5oy7pyXRO6pxnerIMogtDI2L4A:4 a=50e4U0PicR4A:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 454740320; Tue, 17 Feb 2009 17:02:26 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org, Andrew Thompson Date: Tue, 17 Feb 2009 17:04:47 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902171704.48860.hselasky@c2i.net> Cc: Subject: USB2 + kdb support (UMASS disk dump + USB keyboard) 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, 17 Feb 2009 16:02:29 -0000 Hi, With USB1 it was possible to use the USB keyboard in the debugger. With USB2 this is also possible, but not as long as the keyboard driver is using Giant. Currently USB2 supports a special mode called polling mode, which is going to be removed, because even on a micro embedded system polling mode is not useful, which was my thought keeping this behaviour. Instead I want to enforce normal running mode where USB and timer callbacks are handled like normal when in the kernel debugger. Question: When the CPU is in the debugger and is asking for USB devices to be polled, is there a way to get the USB threads running again so that callbacks can be handled? --HPS