From owner-freebsd-usb@FreeBSD.ORG Mon Aug 3 19:27:35 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D40C106564A for ; Mon, 3 Aug 2009 19:27:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.tele2.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 147308FC13 for ; Mon, 3 Aug 2009 19:27:34 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=JSugyDF0xdykX_uO55IA:9 a=X-TCkzkH8Umi39ujzItX07LXyUcA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1117480937; Mon, 03 Aug 2009 21:27:33 +0200 From: Hans Petter Selasky To: Alexander Best Date: Mon, 3 Aug 2009 21:27:30 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908032127.32353.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: kernel debugger and usb keyboard 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, 03 Aug 2009 19:27:35 -0000 On Monday 03 August 2009 20:55:16 Alexander Best wrote: > just tried settings `sysctl debug.kdb.panic = 1`. if i use this way to > enter the kernel debugger my usb keyboard works. if i type "continue" > however the kernel panics and the kernel debugger gets yet entered again, > but without the keyboard working. The USB controller which the keyboard is hooked onto will not work after panic has been entered, due to some state not being cleaned up. To increase the chance of the keyboard working on a panic, connect the keyboard to a separate USB controller. > i don't know how to produce backtraces since the keyboard doesn't work. Ok. > > the other way of entering the debugger without my keyboard working was to > simple press "ctrl+ast+esc". Yes, because most likely the DDB is entered directly from the USB keyboard code, and the USB stack does not allow function recursion in that case! --HPS