From owner-freebsd-stable@FreeBSD.ORG Wed Jan 19 13:52:38 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DB7B106566B for ; Wed, 19 Jan 2011 13:52:38 +0000 (UTC) (envelope-from korvus@comcast.net) Received: from mx03.pub.collaborativefusion.com (mx03.pub.collaborativefusion.com [206.83.220.142]) by mx1.freebsd.org (Postfix) with ESMTP id E51118FC0C for ; Wed, 19 Jan 2011 13:52:37 +0000 (UTC) Received: from Internal Mail-Server by mx03 (envelope-from korvus@comcast.net) with SMTP; 19 Jan 2011 08:46:54 -0500 Message-ID: <4D36ECA2.5080204@comcast.net> Date: Wed, 19 Jan 2011 08:52:34 -0500 From: Steve Polyack User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101109 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Jeremy Chadwick References: <4D3608BD.7010604@comcast.net> <20110118225617.GA16727@icarus.home.lan> <4D36EB91.1050406@comcast.net> In-Reply-To: <4D36EB91.1050406@comcast.net> Content-Type: multipart/mixed; boundary="------------060306010205010009040206" Cc: freebsd-stable , User Questions , freebsd-hardware@freebsd.org Subject: Re: Keyboard repeat issues with Dell Optiplex 980s X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 13:52:38 -0000 This is a multi-part message in MIME format. --------------060306010205010009040206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/19/11 08:48, Steve Polyack wrote: > On 1/18/2011 5:56 PM, Jeremy Chadwick wrote: >> On Tue, Jan 18, 2011 at 04:40:13PM -0500, Steve Polyack wrote: >>> We've recently upgraded a few desktop workstations from Dell >>> Optiplex 960s to Optiplex 980s. We were running FreeBSD >>> 8.1-RELEASE. The migration was performed by simply swapping the >>> drives into the new systems. Immediately after switching people >>> over, they all began to report bizarre keyboard issues - things like >>> infinite key repeats (letters, numbers, "enter") for keys they did >>> not hold down. The key repeats continue indefinitely until another >>> key is pressed. Occasionally, even mouse input will trigger similar >>> infinite keyboard input repetition. In addition to the repeat >>> issue, sometimes physical key-presses are not registered by FreeBSD, >>> leading to typos and angry developers. >>> >>> We've tried doing fresh installs of FreeBSD 8.2-RC2 on two of these >>> systems, and the issue persists. Because of the observed behavior, >>> I'm thinking that this is due to new hardware in the 980s which >>> isn't timing or handling interrupts correctly under the FreeBSD >>> kernel. >>> >>> Looking at a 'pciconf -lvb' from each system, I noticed that the 980 >>> has two USB controllers which probe under ehci(4), while the 960 >>> (which does not exhibit this problem), enumerates six uhci(4) >>> controllers and two ehci(4) controllers. To cut to the chase here, >>> the 960 users' keyboards probe under a USB1.0 uhci(4), while the >>> 980s only have ehci(4) devices to attach to. >>> >>> So, I guess what I'm asking is - has anyone else seen any keyboard >>> repeat or other USB craziness with ehci(4) ports or otherwise Intel >>> PCH controllers? Any fellow Optiplex 980 users? I'd be more than >>> happy to provide pciconf or other output if requested. >> Try adding the following to /boot/loader.conf then reboot and see if >> the "excessive repeat" behaviour changes: >> >> hint.kbdmux.0.disabled="1" >> >> It would also help if you would state exactly what brand/model of >> keyboard is used. Yes, believe it or not, it matters. dmesg output >> would be helpful in this case. >> > The keyboard is also a Dell model - model KB1421, or listed as "Dell > QuiteKey Keyboard" under dmesg. The same keyboard does not exhibit > the strange behavior when used with the older model of tower (Optiplex > 960). > > I'll reboot today with the loader.conf hint you provided. I'll let > you guys know if it helps. Thanks! > I forgot to attach my dmesg - here it is! --------------060306010205010009040206 Content-Type: text/plain; name="dmesg.boot" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dmesg.boot" Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.2-RC2 #1: Mon Jan 17 12:10:53 EST 2011 root@galvatron:/usr/obj/usr/src/sys/GENERIC amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz (2660.02-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x106e5 Family = 6 Model = 1e Stepping = 5 Features=0xbfebfbff Features2=0x98e3fd AMD Features=0x28100800 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4082315264 (3893 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 2 cpu2 (AP): APIC ID: 4 cpu3 (AP): APIC ID: 6 ioapic0: Changing APIC ID to 8 ioapic0 irqs 0-23 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 3.0 on pci0 pci1: on pcib1 vgapci0: port 0xdc80-0xdcff mem 0xf6000000-0xf6ffffff,0xe0000000-0xefffffff,0xf0000000-0xf1ffffff irq 16 at device 0.0 on pci1 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io nvidia0: [ITHREAD] hdac0: mem 0xf7dfc000-0xf7dfffff irq 17 at device 0.1 on pci1 hdac0: HDA Driver Revision: 20100226_0142 hdac0: [ITHREAD] pci0: at device 8.0 (no driver attached) pci0: at device 8.1 (no driver attached) pci0: at device 8.2 (no driver attached) pci0: at device 16.0 (no driver attached) pci0: at device 16.1 (no driver attached) em0: port 0xecc0-0xecdf mem 0xf7fe0000-0xf7ffffff,0xf7fdc000-0xf7fdcfff irq 21 at device 25.0 on pci0 em0: Using an MSI interrupt em0: [FILTER] em0: Ethernet address: 84:2b:2b:a5:d0:45 ehci0: mem 0xf7fdd000-0xf7fdd3ff irq 16 at device 26.0 on pci0 ehci0: [ITHREAD] usbus0: EHCI version 1.0 usbus0: on ehci0 hdac1: mem 0xff87c000-0xff87ffff irq 16 at device 27.0 on pci0 hdac1: HDA Driver Revision: 20100226_0142 hdac1: [ITHREAD] pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 16 at device 28.4 on pci0 pci3: on pcib3 ehci1: mem 0xf7fde000-0xf7fde3ff irq 23 at device 29.0 on pci0 ehci1: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci1 pcib4: at device 30.0 on pci0 pci4: on pcib4 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: port 0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfec0-0xfedf mem 0xff870000-0xff8707ff irq 18 at device 31.2 on pci0 ahci0: [ITHREAD] ahci0: AHCI v1.30 with 6 3Gbps ports, Port Multiplier supported with FBS ahcich0: at channel 0 on ahci0 ahcich0: [ITHREAD] ahcich1: at channel 1 on ahci0 ahcich1: [ITHREAD] ahcich2: at channel 2 on ahci0 ahcich2: [ITHREAD] ahcich3: at channel 3 on ahci0 ahcich3: [ITHREAD] ahcich4: at channel 4 on ahci0 ahcich4: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 atrtc0: port 0x70-0x7f irq 8 on acpi0 ppc0: port 0x378-0x37f,0x778-0x77f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: [ITHREAD] lpt0: on ppbus0 lpt0: [ITHREAD] lpt0: Interrupt-driven port ppi0: on ppbus0 uart0: port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] orm0: at iomem 0xc0000-0xcdfff,0xce000-0xcffff,0xd0000-0xd27ff,0xd2800-0xd3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 est2: on cpu2 p4tcc2: on cpu2 est3: on cpu3 p4tcc3: on cpu3 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS filesystem version 4 ZFS storage pool version 15 RTC BIOS diagnostic error 11 Timecounters tick every 1.000 msec vboxdrv: fAsync=0 offMin=0x120 offMax=0x3c0 hdac0: HDA Codec #0: NVidia (Unknown) hdac0: HDA Codec #1: NVidia (Unknown) hdac0: HDA Codec #2: NVidia (Unknown) hdac0: HDA Codec #3: NVidia (Unknown) usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 1 nid 1 on hdac0 pcm2: at cad 2 nid 1 on hdac0 pcm3: at cad 3 nid 1 on hdac0 hdac1: HDA Codec #0: Realtek ALC269 pcm4: at cad 0 nid 1 on hdac1 pcm5: at cad 0 nid 1 on hdac1 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 305245MB (625142448 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich2 bus 0 scbus2 target 0 lun 0 ada1: ATA-7 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 152587MB (312500000 512 byte sectors: 16H 63S/T 16383C) cd0 at ahcich1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closedlapic6: Forcing LINT1 to edge trigger SMP: AP CPU #3 Launched! lapic4: Forcing LINT1 to edge trigger SMP: AP CPU #2 Launched! lapic2: Forcing LINT1 to edge trigger SMP: AP CPU #1 Launched! Root mount waiting for: usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered Root mount waiting for: usbus1 usbus0 ugen0.2: at usbus0 uhub2: on usbus0 ugen1.2: at usbus1 uhub3: on usbus1 Root mount waiting for: usbus1 usbus0 uhub2: 6 ports with 6 removable, self powered uhub3: 8 ports with 8 removable, self powered ugen0.3: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4001 Root mount waiting for: usbus1 usbus0 ugen1.3: at usbus1 uhub4: on usbus1 uhub4: 4 ports with 4 removable, self powered umass0:5:0:-1: Attached to scbus5 da0 at umass-sim0 bus 0 scbus5 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da1 at umass-sim0 bus 0 scbus5 target 0 lun 1 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present da2 at umass-sim0 bus 0 scbus5 target 0 lun 2 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da3 at umass-sim0 bus 0 scbus5 target 0 lun 3 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: Attempt to query device size failed: NOT READY, Medium not present ugen1.4: at usbus1 Root mount waiting for: usbus1 Root mount waiting for: usbus1 Root mount waiting for: usbus1 ugen1.5: at usbus1 ums0: on usbus1 ums0: 5 buttons and [XYZ] coordinates ID=0 ugen1.6: at usbus1 ukbd0: on usbus1 kbd2 at ukbd0 Trying to mount root from ufs:/dev/ada0s1a --------------060306010205010009040206--