Subject: kern/36984: USB keyboard no longer works in -current
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Andreas Gustafsson <gson@gson.org>
List: netbsd-bugs
Date: 09/13/2007 13:15:01
>Number:         36984
>Category:       kern
>Synopsis:       USB keyboard no longer works in -current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 13:15:00 +0000 2007
>Originator:     Andreas Gustafsson
>Release:        NetBSD 4.99.30 (-current as of September 4, 2007)
>Organization:
>Environment:
System: NetBSD guava.gson.org 4.99.30
Architecture: i386
Machine: i386
>Description:

I tried upgrading a machine to a 4.99.30 GENERIC kernel built from
-current sources of September 4, 2007.  When booting the new kernel,
there was a pause of about a minute after the cd1 probe.  Then
the kernel printed the message

 uhub0: device problem, disabling port 2

and continued booting.  When the login prompt appeared, the USB
keyboard was unresponsive.

The keyboard works at the boot prompt, but if I enter "boot -c" to
invoke userconf, it no longer works at the userconf prompt.

The problem appeared some time between 4.99.6 (which works fine) and
4.99.15 (which fails the same way as 4.99.30 except that it lacks the
one-minute pause).

The motherboard is an ABIT KG7 RAID.  Here's the dmesg output:

  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.99.30 (GENERIC) #15: Thu Sep 13 14:51:32 EEST 2007
	  root@current.araneus.fi:/usr/src/sys/arch/i386/compile/GENERIC
  total memory = 1023 MB
  rbus: rbus_min_start set to 0x40000000
  avail memory = 993 MB
  timecounter: Timecounters tick every 10.000 msec
  timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
  BIOS32 rev. 0 found at 0xfb660
  mainbus0 (root)
  cpu0 at mainbus0: (uniprocessor)
  cpu0: AMD Athlon XP 1800+ (686-class), 1535.29 MHz, id 0x662
  cpu0: features c3cbf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
  cpu0: features c3cbf9ff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
  cpu0: features c3cbf9ff<FXSR,SSE,3DNOW2,3DNOW>
  cpu0: "AMD Athlon(tm) XP 1800+"
  cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
  cpu0: L2 cache 256 KB 64B/line 16-way
  cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
  cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
  cpu0: AMD Power Management features: 1<TS>
  cpu0: 8 page colors
  acpi0 at mainbus0: Advanced Configuration and Power Interface
  acpi0: using Intel ACPI CA subsystem version 20060217
  acpi0: X/RSDT: OemId <761686,AWRDACPI,42302e31>, AslId <AWRD,00000000>
  acpi0: SCI interrupting at int 11
  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
  LNKA: ACPI: Found matching pin for 0.17.INTA at func 0: 11
  LNKB: ACPI: Found matching pin for 0.15.INTA at func 0: 11
  LNKB: ACPI: Found matching pin for 0.13.INTA at func 0: 11
  LNKD: ACPI: Found matching pin for 0.11.INTA at func 0: 9
  LNKD: BIOS IRQ 9 for 0.11.INTA is invalid
  LNKC: ACPI: Found matching pin for 0.9.INTA at func 0: 10
  LNKD: ACPI: Found matching pin for 0.8.INTA at func 0: 9
  LNKD: BIOS IRQ 9 for 0.8.INTA is invalid
  LNKB: ACPI: Found matching pin for 0.8.INTB at func 1: 11
  LNKC: ACPI: Found matching pin for 0.8.INTC at func 2: 10
  LNKC: ACPI: Found matching pin for 0.19.INTA at func 0: 10
  LNKD: ACPI: Found matching pin for 0.7.INTD at func 2: 9
  LNKD: BIOS IRQ 9 for 0.7.INTD is invalid
  CPU0 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
  acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
  acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
  MEM (PNP0C01) [System Board] at acpi0 not configured
  PCI0 (PNP0A03) [PCI/PCI-X Host Bridge] at acpi0 not configured
  LNKA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
  LNKB (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
  LNKC (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
  LNKD (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
  SYSR (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
  PIC (PNP0000) [AT Interrupt Controller] at acpi0 not configured
  DMA1 (PNP0200) [AT DMA Controller] at acpi0 not configured
  attimer1 at acpi0 (TMR, PNP0100): AT Timer
  attimer1: io 0x40-0x43 irq 0
  RTC (PNP0B00) [AT Real-Time Clock] at acpi0 not configured
  pcppi1 at acpi0 (SPKR, PNP0800)
  pcppi1: io 0x61
  midi0 at pcppi1: PC speaker (CPU-intensive output)
  sysbeep0 at pcppi1
  npx1 at acpi0 (COPR, PNP0C04)
  npx1: io 0xf0-0xff irq 13
  npx1: reported by CPUID; using exception 16
  FDC0 (PNP0700) [PC standard floppy disk controller] at acpi0 not configured
  com3 at acpi0 (UAR1, PNP0501-1)
  com3: io 0x3f8-0x3ff irq 4
  com3: ns16550a, working fifo
  com4 at acpi0 (UAR2, PNP0501-2)
  com4: io 0x2f8-0x2ff irq 3
  com4: ns16550a, working fifo
  lpt3 at acpi0 (LPT1, PNP0400)
  lpt3: io 0x378-0x37f irq 7
  pckbc1 at acpi0 (PS2M, PNP0F13): aux port
  pckbc1: io 0x60,0x64 irq 12
  apm0 at acpi0: Power Management spec V1.2
  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: Advanced Micro Devices AMD761 System Controller (rev. 0x13)
  agp0 at pchb0: aperture at 0xe8000000, size 0x4000000
  ppb0 at pci0 dev 1 function 0: Advanced Micro Devices AMD761 PCI-PCI Bridge (rev. 0x00)
  pci1 at ppb0 bus 1
  pci1: i/o space, memory space enabled
  vga1 at pci1 dev 5 function 0: Number 9 Computer Company product 0x5348 (rev. 0x01)
  wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
  wsmux1: connecting to wsdisplay0
  direct rendering for vga1 unsupported
  pcib0 at pci0 dev 7 function 0
  pcib0: VIA Technologies VT82C686A PCI-ISA Bridge (rev. 0x40)
  viaide0 at pci0 dev 7 function 1
  viaide0: VIA Technologies VT82C686A (Apollo KX133) ATA100 controller
  viaide0: bus-master DMA support present
  viaide0: primary channel configured to compatibility mode
  viaide0: primary channel interrupting at irq 14
  atabus0 at viaide0 channel 0
  viaide0: secondary channel configured to compatibility mode
  viaide0: secondary channel interrupting at irq 15
  atabus1 at viaide0 channel 1
  uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x1a)
  LNKD: Picked IRQ 10 with weight 9
  uhci0: interrupting at irq 10
  usb0 at uhci0: USB revision 1.0
  uhub0 at usb0
  uhub0: VIA Technologies 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 7 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x1a)
  uhci1: interrupting at irq 10
  usb1 at uhci1: USB revision 1.0
  uhub1 at usb1
  uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub1: 2 ports with 2 removable, self powered
  VIA Technologies VT82C686A SMBus Controller (SMBus serial bus, revision 0x40) at pci0 dev 7 function 4 not configured
  uhci2 at pci0 dev 8 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x61)
  uhci2: interrupting at irq 10
  usb2 at uhci2: USB revision 1.0
  uhub2 at usb2
  uhub2: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub2: 2 ports with 2 removable, self powered
  uhci3 at pci0 dev 8 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x61)
  uhci3: interrupting at irq 11
  usb3 at uhci3: USB revision 1.0
  uhub3 at usb3
  uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub3: 2 ports with 2 removable, self powered
  ehci0 at pci0 dev 8 function 2: VIA Technologies VT8237 EHCI USB Controller (rev. 0x63)
  ehci0: interrupting at irq 10
  ehci0: dropped intr workaround enabled
  ehci0: BIOS has given up ownership
  ehci0: EHCI version 1.0
  ehci0: companion controllers, 2 ports each: uhci2 uhci3
  usb4 at ehci0: USB revision 2.0
  uhub4 at usb4
  uhub4: VIA Technologies EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
  uhub4: 4 ports with 4 removable, self powered
  fxp0 at pci0 dev 9 function 0: Intel i82557 Ethernet, rev 2
  fxp0: interrupting at irq 10
  fxp0: May need receiver lock-up workaround
  fxp0: Ethernet address 00:a0:c9:81:cf:eb
  inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
  inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
  re0 at pci0 dev 11 function 0: RealTek 8169/8110 Gigabit Ethernet (rev. 0x10)
  re0: interrupting at irq 10
  re0: Ethernet address 00:50:fc:fe:81:9a
  re0: using 256 tx descriptors
  rgephy0 at re0 phy 7: RTL8169S/8110S 1000BASE-T media interface, rev. 0
  rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
  eap0 at pci0 dev 13 function 0: Ensoniq AudioPCI (rev. 0x00)
  eap0: interrupting at irq 11
  audio0 at eap0: full duplex, mmap, independent
  midi1 at eap0: AudioPCI MIDI UART
  Number 9 Computer Company product 0x5348 (miscellaneous display, revision 0x02) at pci0 dev 15 function 0 not configured
  siop0 at pci0 dev 17 function 0: Symbios Logic 53c810 (fast scsi)
  siop0: interrupting at irq 11
  scsibus0 at siop0: 8 targets, 8 luns per target
  hptide0 at pci0 dev 19 function 0
  hptide0: Triones/Highpoint HPT370A IDE Controller
  hptide0: bus-master DMA support present
  hptide0: primary channel wired to native-PCI mode
  hptide0: using irq 10 for native-PCI interrupt
  atabus2 at hptide0 channel 0
  hptide0: secondary channel wired to native-PCI mode
  atabus3 at hptide0 channel 1
  isa0 at pcib0
  pckbc0 at isa0 port 0x60-0x64
  pms0 at pckbc0 (aux slot)
  pckbc0: using irq 12 for aux slot
  wsmouse0 at pms0 mux 0
  isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
  fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
  isapnp0: no ISA Plug 'n Play devices found
  timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
  scsibus0: waiting 2 seconds for devices to settle...
  fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
  Kernelized RAIDframe activated
  cd0 at scsibus0 target 4 lun 0: <PLEXTOR, CD-R   PX-R820T, 1.08> cdrom removable
  cd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
  wd0 at atabus0 drive 0: <WDC WD1000BB-00CAA0>
  wd0: drive supports 16-sector PIO transfers, LBA addressing
  wd0: 95396 MB, 193821 cyl, 16 head, 63 sec, 512 bytes/sect x 195371568 sectors
  wd0: 32-bit data port
  wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
  wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
  atapibus0 at atabus1: 2 targets
  cd1 at atapibus0 drive 0: <HITACHI DVD-ROM GD-7500, , 0005> cdrom removable
  cd1: 32-bit data port
  cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
  cd1(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
  uhub0: device problem, disabling port 2
  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)

>How-To-Repeat:

Try booting a -current GENERIC kernel with a USB keyboard.

>Fix:

Please.