From owner-freebsd-current@FreeBSD.ORG Fri Jul 27 17:18:36 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5BB416A417 for ; Fri, 27 Jul 2007 17:18:36 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 60AAC13C4B0 for ; Fri, 27 Jul 2007 17:18:36 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so826670uge for ; Fri, 27 Jul 2007 10:18:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YNe3zBDMtqoBMCpL0V/RJDz3kYbhbTtDUMbuK+A5WRETkgSbxgX7VnzM2m/HEeVfwo0IFYWlUMZd80cfbUN27wK9hXMh31y48xresbuSepmNKHSpdxivm0biYFETo/0qa7N1G1mr46RZyyJlNPyWVRHJtCB8npREduSOOfBKXug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WeVbPurNVO4l0y5c8ZzfxAN5e2VHqeliLBN4Soei8Js5XMuBDmvddYk27gwVo1Z8m5jehEa4B8zDLCRgY1tgJBRmme2lIujdV2o52hpEttpvxyiAUwWjFGk45gbcMgyiWsABnomRJXnBXPtPey7QQxTciP6+buiOouJuBDR6ESY= Received: by 10.86.100.7 with SMTP id x7mr2128170fgb.1185556715055; Fri, 27 Jul 2007 10:18:35 -0700 (PDT) Received: by 10.86.31.8 with HTTP; Fri, 27 Jul 2007 10:18:35 -0700 (PDT) Message-ID: Date: Fri, 27 Jul 2007 10:18:35 -0700 From: "Maksim Yevmenkin" To: "Dmitry Morozovsky" In-Reply-To: <20070727141421.H42349@woozle.rinet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070727141421.H42349@woozle.rinet.ru> Cc: current@freebsd.org Subject: Re: possible showstopper: kbdmux hangs -current 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: Fri, 27 Jul 2007 17:18:36 -0000 On 7/27/07, Dmitry Morozovsky wrote: > Hi there, > > on some of my mobos -current hangs early (when starning init) if kbdmux is > included in kernel (both on i386 and amd64); this seems to be some race, as > hangs are not 100% reproducible. What info should I provide to debug? the usual suspects are 1) while (KBDMUX_CHECK_CHAR(kbd)) { ... } loop in kbdmux_kbd_event(). could you please try to put some debug printf's into it and make sure it does not stuck there. 2) callout. kbdmux callout initialized as non mp-safe to make sure giant is held. 3) task queue. kbdmux(4) uses taskqueue_swi_giant. you might want to try uncomment section at line 81 in kbdmux.c. this should add private lock for kbdmux(4). not sure it will work though - many things has changed since i tried it. > I'm using only PS2 keyboards, and have no other format keyboards handy; > however, I can obtain USB keyb if needed. are you using ps/2 mouse? if so, try to disconnect it and see if this helps. as you said, you could try to use usb keyboard instead of ps/2. thanks, max