NetBSD Problem Report #40030

From www@NetBSD.org  Wed Nov 26 05:32:33 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 515D163BD2D
	for <gnats-bugs@gnats.netbsd.org>; Wed, 26 Nov 2008 05:32:33 +0000 (UTC)
Message-Id: <20081126053233.1A46F63B8BD@narn.NetBSD.org>
Date: Wed, 26 Nov 2008 05:32:33 +0000 (UTC)
From: jeff@nokrev.com
Reply-To: jeff@nokrev.com
To: gnats-bugs@NetBSD.org
Subject: USB Keyboard not recognized, intermittently works
X-Send-Pr-Version: www-1.0

>Number:         40030
>Category:       port-i386
>Synopsis:       USB Keyboard not recognized, intermittently works
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 26 05:35:00 +0000 2008
>Last-Modified:  Fri Nov 28 06:35:02 +0000 2008
>Originator:     Jeff Wheeler
>Release:        4.0.1
>Organization:
>Environment:
NetBSD Ulysses.home 4.0.1 NetBSD 4.0.1 (GENERIC) #0: Tue Oct 7 22:58:48 PDT 2008 builds@wb30:/home/builds/ab/netbsd-4-0-1-RELEASE/i386/200810080053Z-obj/home/builds/ab/netbsd-4-0-01-RELEASE/src/sys/arch/i1386/compile/GENERIC i386
>Description:
I am using Apple's latest wired keyboard [1], which is a generic USB 2.0, on an old Dell desktop with very vanilla components.

Regardless of the USB port used, the keyboard is only occasionally recognized as such, and the machine needs to be rebooted several times before it recognizes the keyboard and handles it properly.

Most of the time, the keyboard is ignored, and I get to the login prompt and am unable to do anything. The times when it works successfully, I can login fine and the keyboard continues to work correctly while the machine is still on.

I'm not sure what other information may be helpful (I'm a NetBSD beginner), so please let me know if I can be of more help.

I'm fairly certain this is not a hardware issue. The USB ports and the keyboard function consistently correctly on an Ubuntu live cd and other Linux distros.

[1] http://www.apple.com/keyboard/
>How-To-Repeat:
With an old Dell Dimension 2400 (or likely any fiveish-year-old Dell), connect an Apple wired keyboard to either the front or the back USB ports and reboot several times. Only 1 of about four times will the keyboard be recognized.
>Fix:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: jeff@nokrev.com, gnats-bugs@netbsd.org
Cc: port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-i386/40030: USB Keyboard not recognized, intermittently
	works
Date: Thu, 27 Nov 2008 23:54:04 +0000

 On Wed, Nov 26, 2008 at 05:35:00AM +0000, jeff@nokrev.com wrote:
  > Regardless of the USB port used, the keyboard is only occasionally
  > recognized as such, and the machine needs to be rebooted several
  > times before it recognizes the keyboard and handles it properly.
  > 
  > Most of the time, the keyboard is ignored, and I get to the login
  > prompt and am unable to do anything. The times when it works
  > successfully, I can login fine and the keyboard continues to work
  > correctly while the machine is still on.
  > 
  > I'm not sure what other information may be helpful (I'm a NetBSD
  > beginner), so please let me know if I can be of more help.

 The boot log/dmesg output (both when it works and when it doesn't)
 would probably be a start.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Jeff Wheeler <jeff@nokrev.com>
To: David Holland <dholland-bugs@netbsd.org>
Cc: Jeff Wheeler <jeff@nokrev.com>,
 gnats-bugs@netbsd.org,
 port-i386-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-i386/40030: USB Keyboard not recognized, intermittently works
Date: Thu, 27 Nov 2008 18:13:31 -0600

 On Nov 27, 2008, at 5:54 PM, David Holland wrote:

 > The boot log/dmesg output (both when it works and when it doesn't)
 > would probably be a start.

 Alright, I can try to provide the output when it works, but I'm not  
 sure how to provide it when it doesn't. Obviously, I can't access the  
 boot log or run dmesg when I can't even login, so I'm not sure the  
 best way to get the output.

 Perhaps the solution is to wait until it doesn't work, and then reboot  
 into safe mode? I'm not very experienced, so I'm not sure whether this  
 would work.

 Jeff Wheeler

From: David Holland <dholland-bugs@netbsd.org>
To: Jeff Wheeler <jeff@nokrev.com>
Cc: David Holland <dholland-bugs@netbsd.org>, gnats-bugs@netbsd.org,
	port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-i386/40030: USB Keyboard not recognized, intermittently
	works
Date: Fri, 28 Nov 2008 00:19:23 +0000

 On Thu, Nov 27, 2008 at 06:13:31PM -0600, Jeff Wheeler wrote:
 >> The boot log/dmesg output (both when it works and when it doesn't)
 >> would probably be a start.
 >
 > Alright, I can try to provide the output when it works, but I'm not sure 
 > how to provide it when it doesn't. Obviously, I can't access the boot log 
 > or run dmesg when I can't even login, so I'm not sure the best way to get 
 > the output.

 It should all go to /var/log/messages each time; you can get it from
 there.

 Another option is to temporarily add something like

    dmesg > /var/log/dmesg.`date +%s`

 to /etc/rc.local. That will dump it to e.g. /var/log/dmesg.1227831593,
 where the number is the current time from each boot. Then you can pick
 the ones you want.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Robert Elz <kre@munnari.OZ.AU>
To: Jeff Wheeler <jeff@nokrev.com>
Cc: David Holland <dholland-bugs@NetBSD.org>, gnats-bugs@NetBSD.org,
        port-i386-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: port-i386/40030: USB Keyboard not recognized, intermittently works 
Date: Fri, 28 Nov 2008 08:08:50 +0700

     Date:        Thu, 27 Nov 2008 18:13:31 -0600
     From:        Jeff Wheeler <jeff@nokrev.com>
     Message-ID:  <2AFC3FD3-9454-4E05-B8BB-7A0C98BE7C92@nokrev.com>

   | Alright, I can try to provide the output when it works, but I'm not  
   | sure how to provide it when it doesn't.

 In /etc/rc.local put ...

 	dmesg > /var/tmp/dmesg.`date +%Y-%m-%d-%H-%M-%S`
 	sync; sync
 	sleep 10
 	sync; sync

 Then in /var/tmp you chould get to keep a copy of the dmesg
 output from every boot, whether you can login that time, or not.

 When you are able to login you can select one of the failure cases to
 send.

 kre

 ps: remember to remove this stuff from rc.local when you're done

From: Jeff Wheeler <jeff@nokrev.com>
To: David Holland <dholland-bugs@netbsd.org>,
 Robert Elz <kre@munnari.OZ.AU>
Cc: Jeff Wheeler <jeff@nokrev.com>,
 gnats-bugs@netbsd.org,
 port-i386-maintainer@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-i386/40030: USB Keyboard not recognized, intermittently works
Date: Thu, 27 Nov 2008 19:38:14 -0600

 On Nov 27, 2008, at 6:19 PM, David Holland wrote:

 > Another option is to temporarily add something like
 >
 >   dmesg > /var/log/dmesg.`date +%s`
 >
 > to /etc/rc.local. That will dump it to e.g. /var/log/dmesg.1227831593,
 > where the number is the current time from each boot. Then you can pick
 > the ones you want.

 Alright, thanks for the help. The first log is the successful one,  
 while the second is the failure. They primarily differ starting at  
 lines 151.

 I had to undo a few of the changes I had made in the last few days to  
 rc.conf to recreate the issue. During the installation of gdm, hal,  
 fam, and dbus (all of which I had to uncomment from rc.conf for the  
 issue to show back up), something seemed to fix the issue. So, the bug  
 is no longer of personal importance, but I suppose it's interesting  
 nonetheless.

 Jeff Wheeler

 Success log:
 ------------------
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,  
 2005,
      2006, 2007
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

 NetBSD 4.0.1 (GENERIC) #0: Tue Oct  7 22:58:48 PDT 2008
 	builds@wb30:/home/builds/ab/netbsd-4-0-1-RELEASE/i386/200810080053Z- 
 obj/home/builds/ab/netbsd-4-0-1-RELEASE/src/sys/arch/i386/compile/ 
 GENERIC
 total memory = 766 MB
 rbus: rbus_min_start set to 0x40000000
 avail memory = 742 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 BIOS32 rev. 0 found at 0xffe90
 mainbus0 (root)
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel Pentium 4 (686-class), 2392.43 MHz, id 0xf29
 cpu0: features  
 bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
 cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
 cpu0: features2 4400<CID,xTPR>
 cpu0: "Intel(R) Pentium(R) 4 CPU 2.40GHz"
 cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
 cpu0: L2 cache 512 KB 64B/line 8-way
 cpu0: ITLB 4K/4M: 128 entries
 cpu0: DTLB 4K/4M: 64 entries
 cpu0: enabling thermal monitor 1 ... enabled.
 cpu0: calibrating local timer
 cpu0: apic clock running at 132 MHz
 cpu0: 16 page colors
 ioapic0 at mainbus0 apid 1 (I/O APIC)
 ioapic0: pa 0xfec00000, version 20, 24 pins
 ioapic0: misconfigured as apic 0
 ioapic0: remapped to apic 1
 acpi0 at mainbus0: Advanced Configuration and Power Interface
 acpi0: using Intel ACPI CA subsystem version 20060217
 acpi0: X/RSDT: OemId <DELL  , 2400   ,00000006>, AslId <ASL ,00000061>
 acpi0: SCI interrupting at int 9
 acpi0: fixed-feature power button present
 timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 ACPI-Fast 24-bit timer
 mpacpi: could not get bus number, assuming bus 0
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
 PNP0C01 [System Board] at acpi0 not configured
 PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
 PNP0200 [AT DMA Controller] at acpi0 not configured
 npx1 at acpi0 (PNP0C04)
 npx1: io 0xf0-0xff irq 13
 npx1: reported by CPUID; using exception 16
 PNP0000 [AT Interrupt Controller] at acpi0 not configured
 pcppi1 at acpi0 (PNP0800)
 pcppi1: io 0x61
 pcppi1: children must have an explicit unit
 midi0 at pcppi1: PC speaker (CPU-intensive output)
 sysbeep0 at pcppi1
 PNP0B00 [AT Real-Time Clock] at acpi0 not configured
 attimer1 at acpi0 (PNP0100): AT Timer
 attimer1: io 0x40-0x5f irq 0
 PNP0501 [16550A-compatible COM port] at acpi0 not configured
 PNP0401 [ECP printer port] at acpi0 not configured
 PNP0C01 [System Board] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 pcppi1: attached to attimer1
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Intel 82845G/GL DRAM Controller / Host-Hub I/F Bridge (rev. 0x01)
 agp0 at pchb0: using generic initialization for Intel AGP
 agp0: aperture at 0xd8000000, size 0x8000000
 Intel 82845G/GL Integrated Graphics Device (miscellaneous display,  
 revision 0x01) at pci0 dev 2 function 0 not configured
 uhci0 at pci0 dev 29 function 0: Intel 82801DB USB UHCI Controller  
 (rev. 0x01)
 uhci0: interrupting at ioapic0 pin 16 (irq 11)
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1: Intel 82801DB USB UHCI Controller  
 (rev. 0x01)
 uhci1: interrupting at ioapic0 pin 19 (irq 10)
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2 at pci0 dev 29 function 2: Intel 82801DB USB UHCI Controller  
 (rev. 0x01)
 uhci2: interrupting at ioapic0 pin 18 (irq 9)
 usb2 at uhci2: USB revision 1.0
 uhub2 at usb2
 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 ehci0 at pci0 dev 29 function 7: Intel 82801DB USB EHCI Controller  
 (rev. 0x01)
 ehci0: interrupting at ioapic0 pin 23 (irq 5)
 ehci0: BIOS has given up ownership
 ehci0: EHCI version 1.0
 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
 usb3 at ehci0: USB revision 2.0
 uhub3 at usb3
 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub3: 6 ports with 6 removable, self powered
 ppb0 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0x81)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 Broadcom product 0x4212 (modem communications, revision 0x02) at pci1  
 dev 4 function 0 not configured
 rtk0 at pci1 dev 5 function 0: D-Link Systems DFE 530TX+ (rev. 0x10)
 rtk0: interrupting at ioapic0 pin 17 (irq 3)
 rtk0: Ethernet address 00:50:ba:ae:62:a3
 rlphy0 at rtk0 phy 7: Realtek internal PHY
 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 vga1 at pci1 dev 6 function 0: NVIDIA GeForce FX 5200 (rev. 0xa1)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 bce0 at pci1 dev 9 function 0: Broadcom BCM4401 10/100 Ethernet
 bce0: interrupting at ioapic0 pin 17 (irq 3)
 bmtphy0 at bce0 phy 1: BCM4401 10/100 media interface, rev. 0
 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 bce0: Ethernet address 00:0b:db:b3:b9:e2
 pcib0 at pci0 dev 31 function 0
 pcib0: Intel 82801DB LPC Interface Bridge (rev. 0x01)
 piixide0 at pci0 dev 31 function 1
 piixide0: Intel 82801DB IDE Controller (ICH4) (rev. 0x01)
 piixide0: bus-master DMA support present
 piixide0: primary channel configured to compatibility mode
 piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
 atabus0 at piixide0 channel 0
 piixide0: secondary channel configured to compatibility mode
 piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
 atabus1 at piixide0 channel 1
 Intel 82801DB SMBus Controller (SMBus serial bus, revision 0x01) at  
 pci0 dev 31 function 3 not configured
 auich0 at pci0 dev 31 function 5: i82801DB/DBM (ICH4/ICH4M) AC-97 Audio
 auich0: interrupting at ioapic0 pin 17 (irq 3)
 auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no  
 3D stereo
 auich0: ac97: ext id 601<AC97_22,AMAP,VRA>
 isa0 at pcib0
 lpt0 at isa0 port 0x378-0x37b irq 7
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 isapnp0: no ISA Plug 'n Play devices found
 ioapic0: enabling
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 auich0: measured ac97 link rate at 48008 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 Kernelized RAIDframe activated
 uhub4 at uhub3 port 6
 uhub4: Apple, Inc. Keyboard Hub, class 9/0, rev 2.00/94.15, addr 2
 uhub4: single transaction translator
 uhub4: 3 ports with 2 removable, bus powered
 uhidev0 at uhub4 port 2 configuration 1 interface 0
 uhidev0: Apple, Inc Apple Keyboard, rev 2.00/0.67, addr 3, iclass 3/1
 ukbd0 at uhidev0
 wd0 at atabus0 drive 0: <WDC WD800BB-75CAA0>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 76293 MB, 155009 cyl, 16 head, 63 sec, 512 bytes/sect x 156250000  
 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100)  
 (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <SAMSUNG DVD-ROM SD-616T, , F310> cdrom  
 removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd1 at atapibus0 drive 1: <HL-DT-ST GCE-8481B, , C102> cdrom removable
 cd1: 32-bit data port
 cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33)  
 (using DMA)
 cd1(piixide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33)  
 (using DMA)
 wskbd1 at ukbd0 mux 1
 wskbd1: connecting to wsdisplay0
 uhidev1 at uhub4 port 2 configuration 1 interface 1
 uhidev1: Apple, Inc Apple Keyboard, rev 2.00/0.67, addr 3, iclass 3/0
 uhid0 at uhidev1: input=1, output=0, feature=0
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 ------------------
 End success log.

 Failure log:
 ------------------
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,  
 2005,
      2006, 2007
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

 NetBSD 4.0.1 (GENERIC) #0: Tue Oct  7 22:58:48 PDT 2008
 	builds@wb30:/home/builds/ab/netbsd-4-0-1-RELEASE/i386/200810080053Z- 
 obj/home/builds/ab/netbsd-4-0-1-RELEASE/src/sys/arch/i386/compile/ 
 GENERIC
 total memory = 766 MB
 rbus: rbus_min_start set to 0x40000000
 avail memory = 742 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 BIOS32 rev. 0 found at 0xffe90
 mainbus0 (root)
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel Pentium 4 (686-class), 2392.35 MHz, id 0xf29
 cpu0: features  
 bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
 cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
 cpu0: features2 4400<CID,xTPR>
 cpu0: "Intel(R) Pentium(R) 4 CPU 2.40GHz"
 cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
 cpu0: L2 cache 512 KB 64B/line 8-way
 cpu0: ITLB 4K/4M: 128 entries
 cpu0: DTLB 4K/4M: 64 entries
 cpu0: enabling thermal monitor 1 ... enabled.
 cpu0: calibrating local timer
 cpu0: apic clock running at 132 MHz
 cpu0: 16 page colors
 ioapic0 at mainbus0 apid 1 (I/O APIC)
 ioapic0: pa 0xfec00000, version 20, 24 pins
 ioapic0: misconfigured as apic 0
 ioapic0: remapped to apic 1
 acpi0 at mainbus0: Advanced Configuration and Power Interface
 acpi0: using Intel ACPI CA subsystem version 20060217
 acpi0: X/RSDT: OemId <DELL  , 2400   ,00000006>, AslId <ASL ,00000061>
 acpi0: SCI interrupting at int 9
 acpi0: fixed-feature power button present
 timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 ACPI-Fast 24-bit timer
 mpacpi: could not get bus number, assuming bus 0
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
 PNP0C01 [System Board] at acpi0 not configured
 PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
 PNP0200 [AT DMA Controller] at acpi0 not configured
 npx1 at acpi0 (PNP0C04)
 npx1: io 0xf0-0xff irq 13
 npx1: reported by CPUID; using exception 16
 PNP0000 [AT Interrupt Controller] at acpi0 not configured
 pcppi1 at acpi0 (PNP0800)
 pcppi1: io 0x61
 pcppi1: children must have an explicit unit
 midi0 at pcppi1: PC speaker (CPU-intensive output)
 sysbeep0 at pcppi1
 PNP0B00 [AT Real-Time Clock] at acpi0 not configured
 attimer1 at acpi0 (PNP0100): AT Timer
 attimer1: io 0x40-0x5f irq 0
 PNP0501 [16550A-compatible COM port] at acpi0 not configured
 PNP0401 [ECP printer port] at acpi0 not configured
 PNP0C01 [System Board] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 pcppi1: attached to attimer1
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Intel 82845G/GL DRAM Controller / Host-Hub I/F Bridge (rev. 0x01)
 agp0 at pchb0: using generic initialization for Intel AGP
 agp0: aperture at 0xd8000000, size 0x8000000
 Intel 82845G/GL Integrated Graphics Device (miscellaneous display,  
 revision 0x01) at pci0 dev 2 function 0 not configured
 uhci0 at pci0 dev 29 function 0: Intel 82801DB USB UHCI Controller  
 (rev. 0x01)
 uhci0: interrupting at ioapic0 pin 16 (irq 11)
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1: Intel 82801DB USB UHCI Controller  
 (rev. 0x01)
 uhci1: interrupting at ioapic0 pin 19 (irq 10)
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2 at pci0 dev 29 function 2: Intel 82801DB USB UHCI Controller  
 (rev. 0x01)
 uhci2: interrupting at ioapic0 pin 18 (irq 9)
 usb2 at uhci2: USB revision 1.0
 uhub2 at usb2
 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 ehci0 at pci0 dev 29 function 7: Intel 82801DB USB EHCI Controller  
 (rev. 0x01)
 ehci0: interrupting at ioapic0 pin 23 (irq 5)
 ehci0: BIOS has given up ownership
 ehci0: EHCI version 1.0
 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
 usb3 at ehci0: USB revision 2.0
 uhub3 at usb3
 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub3: 6 ports with 6 removable, self powered
 ppb0 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0x81)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 Broadcom product 0x4212 (modem communications, revision 0x02) at pci1  
 dev 4 function 0 not configured
 rtk0 at pci1 dev 5 function 0: D-Link Systems DFE 530TX+ (rev. 0x10)
 rtk0: interrupting at ioapic0 pin 17 (irq 3)
 rtk0: Ethernet address 00:50:ba:ae:62:a3
 rlphy0 at rtk0 phy 7: Realtek internal PHY
 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 vga1 at pci1 dev 6 function 0: NVIDIA GeForce FX 5200 (rev. 0xa1)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 bce0 at pci1 dev 9 function 0: Broadcom BCM4401 10/100 Ethernet
 bce0: interrupting at ioapic0 pin 17 (irq 3)
 bmtphy0 at bce0 phy 1: BCM4401 10/100 media interface, rev. 0
 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 bce0: Ethernet address 00:0b:db:b3:b9:e2
 pcib0 at pci0 dev 31 function 0
 pcib0: Intel 82801DB LPC Interface Bridge (rev. 0x01)
 piixide0 at pci0 dev 31 function 1
 piixide0: Intel 82801DB IDE Controller (ICH4) (rev. 0x01)
 piixide0: bus-master DMA support present
 piixide0: primary channel configured to compatibility mode
 piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
 atabus0 at piixide0 channel 0
 piixide0: secondary channel configured to compatibility mode
 piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
 atabus1 at piixide0 channel 1
 Intel 82801DB SMBus Controller (SMBus serial bus, revision 0x01) at  
 pci0 dev 31 function 3 not configured
 auich0 at pci0 dev 31 function 5: i82801DB/DBM (ICH4/ICH4M) AC-97 Audio
 auich0: interrupting at ioapic0 pin 17 (irq 3)
 auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no  
 3D stereo
 auich0: ac97: ext id 601<AC97_22,AMAP,VRA>
 isa0 at pcib0
 lpt0 at isa0 port 0x378-0x37b irq 7
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 isapnp0: no ISA Plug 'n Play devices found
 ioapic0: enabling
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 auich0: measured ac97 link rate at 48008 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 Kernelized RAIDframe activated
 wd0 at atabus0 drive 0: <WDC WD800BB-75CAA0>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 76293 MB, 155009 cyl, 16 head, 63 sec, 512 bytes/sect x 156250000  
 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100)  
 (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <SAMSUNG DVD-ROM SD-616T, , F310> cdrom  
 removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd1 at atapibus0 drive 1: <HL-DT-ST GCE-8481B, , C102> cdrom removable
 cd1: 32-bit data port
 cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33)  
 (using DMA)
 cd1(piixide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33)  
 (using DMA)
 uhub3: device problem, disabling port 6
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 ------------------
 End failure log.

From: David Holland <dholland-bugs@netbsd.org>
To: Jeff Wheeler <jeff@nokrev.com>
Cc: David Holland <dholland-bugs@netbsd.org>,
	Robert Elz <kre@munnari.OZ.AU>, gnats-bugs@netbsd.org,
	port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-i386/40030: USB Keyboard not recognized, intermittently
	works
Date: Fri, 28 Nov 2008 06:32:51 +0000

 On Thu, Nov 27, 2008 at 07:38:14PM -0600, Jeff Wheeler wrote:
 > I had to undo a few of the changes I had made in the last few days to 
 > rc.conf to recreate the issue. During the installation of gdm, hal, fam, 
 > and dbus (all of which I had to uncomment from rc.conf for the issue to 
 > show back up), something seemed to fix the issue. So, the bug is no longer 
 > of personal importance, but I suppose it's interesting nonetheless.

 The fact that one of those (probably hal?) works around the problem is
 itself kind of interesting...

 > Success log:
 > [...]
 > Failure log:
 > [...]

 here's the diff:

 --- failure  2008-11-28 06:23:51.000000000 +0000
 +++ success   2008-11-28 06:23:53.000000000 +0000
 @@ -160,6 +160,13 @@
   auich0: measured ac97 link rate at 48008 Hz, will use 48000 Hz
   audio0 at auich0: full duplex, mmap, independent
   Kernelized RAIDframe activated
 + uhub4 at uhub3 port 6
 + uhub4: Apple, Inc. Keyboard Hub, class 9/0, rev 2.00/94.15, addr 2
 + uhub4: single transaction translator
 + uhub4: 3 ports with 2 removable, bus powered
 + uhidev0 at uhub4 port 2 configuration 1 interface 0
 + uhidev0: Apple, Inc Apple Keyboard, rev 2.00/0.67, addr 3, iclass
 3/1
 + ukbd0 at uhidev0
   wd0 at atabus0 drive 0: <WDC WD800BB-75CAA0>
   wd0: drive supports 16-sector PIO transfers, LBA addressing
   wd0: 76293 MB, 155009 cyl, 16 head, 63 sec, 512 bytes/sect x
 156250000  
 @@ -180,7 +187,11 @@
   (using DMA)
   cd1(piixide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33)  
   (using DMA)
 - uhub3: device problem, disabling port 6
 + wskbd1 at ukbd0 mux 1
 + wskbd1: connecting to wsdisplay0
 + uhidev1 at uhub4 port 2 configuration 1 interface 1
 + uhidev1: Apple, Inc Apple Keyboard, rev 2.00/0.67, addr 3, iclass
 3/0
 + uhid0 at uhidev1: input=1, output=0, feature=0
   boot device: wd0
   root on wd0a dumps on wd0b
   root file system type: ffs

 That is, in the failure case uhub3 gives the wonderful message "device
 problem".

 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub3: 6 ports with 6 removable, self powered

 PRs 34711 and 37050 look pretty closely related, as well as some
 others if it turns out not to be ehci-specific.

 -- 
 David A. Holland
 dholland@netbsd.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.