From owner-freebsd-current@FreeBSD.ORG Tue Jul 31 17:10:03 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 DFACE16A418 for ; Tue, 31 Jul 2007 17:10:03 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 6AC8B13C4E7 for ; Tue, 31 Jul 2007 17:10:03 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so250894nfb for ; Tue, 31 Jul 2007 10:10:02 -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=O8h4wjLEuG+kpgQ1iwcDN83Fy/ns04WmT71ewv85RILs/yV0nUv5BVV4cIbXCLXp6aVCkhVU55B39QphuUPKiFaeppIhKDxdI6QbJJFR5FYOf6dupMAJpMwcAFrZLGjd1Xf7sisDPJ0QK/gkkA8n+56MWkp4/yf00js+R1mvsT0= 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=jamk9Hc9uf5S2+kPjK+82YQRvWqtgCOpTdk75b9JwJNJXEvHqTY7wtsiEGY41v8I65BuQecNLD0i6JJSgnjqQ+L2vRMCKyKAgdKVrbeRY44sUeGBC2t/l8lOYbWUtV2MDOaZA/t51iJRPoZmZzX4EwnqhvqERincc1iuD5/AzxY= Received: by 10.86.57.9 with SMTP id f9mr4848123fga.1185901802215; Tue, 31 Jul 2007 10:10:02 -0700 (PDT) Received: by 10.86.63.16 with HTTP; Tue, 31 Jul 2007 10:10:02 -0700 (PDT) Message-ID: Date: Tue, 31 Jul 2007 10:10:02 -0700 From: "Maksim Yevmenkin" To: "Dmitry Morozovsky" In-Reply-To: <20070731123820.T29245@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> <20070728173355.O42349@woozle.rinet.ru> <20070731123820.T29245@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: Tue, 31 Jul 2007 17:10:04 -0000 On 7/31/07, Dmitry Morozovsky wrote: > On Mon, 30 Jul 2007, Maksim Yevmenkin wrote: > > MY> > MY> > on some of my mobos -current hangs early (when starning init) if kbdmux is > MY> > MY> > included in kernel (both on i386 and amd64); this seems to be some race, as > MY> > MY> > hangs are not 100% reproducible. What info should I provide to debug? > MY> > MY> > MY> > MY> the usual suspects are > MY> > MY> > MY> > MY> 1) while (KBDMUX_CHECK_CHAR(kbd)) { ... } loop in kbdmux_kbd_event(). > MY> > MY> could you please try to put some debug printf's into it and make sure > MY> > MY> it does not stuck there. > MY> > > MY> > errrm. Added two printfs with ppsratecheck - and, as usual, 'specialist > MY> > presense effect' is in place: no single hang since, both on stock GENERIC and > MY> > my own stripped down kernel so far (approx 20 reboots). > MY> > > MY> > Will try further. > MY> > MY> if you remove your debug code and recompile kbdmux(4), does your > MY> problem re-appear? > > Grrm. It does not (yet). ok. i have to ask. 1) are you using any non-standard compiler options? 2) how are you building new kernel? (or rather do you use NO_CLEAN or something like that?) kbdmux(4) has not been changed for awhile. while i completely accept possibility of bug in kbdmux(4), i find it somewhat strange that it does not manifest itself all the time. thanks, max