From owner-freebsd-current@FreeBSD.ORG Sat Sep 5 17:40:42 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 9E5E71065698 for ; Sat, 5 Sep 2009 17:40:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 066328FC1A for ; Sat, 5 Sep 2009 17:40:41 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=HZ8Y2r5GBf4A:10 a=hlIU1J3LQChSjWV/CGRL5g==:17 a=Xr4jvITCnfzBP_cAE6QA:9 a=8ALqLP3ezsgIOR3OBISrpix9TGQA:4 a=4EdWEy84jLFuwBtr:21 a=P3xhUJKicS87pXW9:21 Received: from [193.217.167.6] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1202895591; Sat, 05 Sep 2009 19:40:40 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sat, 5 Sep 2009 19:41:02 +0200 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200909051632.55580.shoesoft@gmx.net> <200909051802.37902.hselasky@c2i.net> <200909051847.32946.shoesoft@gmx.net> In-Reply-To: <200909051847.32946.shoesoft@gmx.net> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909051941.03766.hselasky@c2i.net> Cc: Stefan Ehmann Subject: Re: ukbd: short freeze when activating LEDs 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: Sat, 05 Sep 2009 17:40:42 -0000 On Saturday 05 September 2009 18:47:32 Stefan Ehmann wrote: > On Saturday 05 September 2009 18:02:37 you wrote: > > On Saturday 05 September 2009 16:32:55 Stefan Ehmann wrote: > > > Whenever I press capslock/numlock, the system shortly (< 0.5 ms) > > > freezes. > > > > How did you measure this? > > The mouse is not responding and sound also stops during that period. > It's probably much shorter, more likely 0.1-0.2ms. > > > Are you able to figure out why it is hanging? > > > > Has this got anything to do with BIOS or microcode running on the CPU? > > No idea. top shows > 95% interrupt if I'm on the console, in xorg the cpu > goes to system. Interestingly, the number of interrupts displayed by systat > is very moderate (if I just move the mouse, it's much higher) > > > USB keyboard LEDs are set asynchronously. It should not block like you > > explain. > > The keyboard works fine on my notebook. I think the problem is the USB > controller on my PC, not the keyboard driver. dmesg reports it as > uhci0: port 0xb400-0xb41f at device 16.0 on > pci0 uhci0: [ITHREAD] > uhci0: LegSup = 0x003a > usbus0: on uhci0 > > Historically, I've always had lots of trouble with USB on this particular > PC. With the old USB code, I've got lots of issues. scanner didn't work at > all, sometimes even problems with basic things like umass. > > With new USB things are much better, but not always perfect. > > If there's no easy way to debug, it's probably not worth the hassle. The PC > is nearing the end of its life-time anyway. I see. Your observation is interesting and valuable. It might look like some piece of hardware is excessively using the RAM. Maybe an USB recording off the USB cable will give the final answer. There are some relatively cheap USB analyzers from Beagle which you can buy. --HPS