NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/50219: USB keyboard not detected on server



>Number:         50219
>Category:       kern
>Synopsis:       USB keyboard not detected on server
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 07 17:15:00 +0000 2015
>Originator:     Patrick Welche
>Release:        NetBSD 7.99.21
>Organization:
>Environment:
NetBSD-7.99.21/amd64 of 6 Sep 2015
>Description:
A standard USB Keyboard which is detected as

uhidev0 at uhub2 port 3 configuration 1 interface 0
uhidev0: NOVATEK USB Keyboard, rev 1.10/1.12, addr 6, iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 3 configuration 1 interface 1
uhidev1: NOVATEK USB Keyboard, rev 1.10/1.12, addr 6, iclass 3/0
uhidev1: 4 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 4: input=2, output=0, feature=0

on a -current/amd64 laptop is not detected on a System X 3650 M5 server.

With a standard GENERIC kernel:

pckbc0 at isa0 port 0x60-0x64
pckbdprobe: reset error 5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0

Then, try a kernel built with DEBUGGING and

no pckbc
no pckbd
no wskbd* at pckbd?

in order to give wskbd* at ukbd? console ? mux 1 a chance, but no ukbd
appears.

The server's USB controllers are:
  Intel C61x/X99 USB xHCI (USB serial bus, xHCI, revision 0x05)
  Intel C61x/X99 USB EHCI (rev. 0x05)

Looking for "HCI" in the acpi tables, I see:

acpi0: [XHCI] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000140000

Trying a kernel with xhci panics when xhci attaches. (old 29th June
backtrace, but panics with yesterday's source too):

breakpoint()
vpanic()
snprintf()
extent_alloc_region()
bus_space_reserve()
bus_space_map()
pci_mapreg_submap()
pci_mapreg_map()
xhci_pci_attach()+0xf8
config_attach_loc()
pci_probe_device()
pci_enumerate_bus()
pcirescan()
pciattach()
config_attach_loc()
mp_pci_scan()
mainbus_attach()
config_attach_loc()
cpu_configure()
main()

Just in case it is an issue with Intel ACPICA 20150717
try boot netbsd -2vx:

cpu0 at mainbus0 apid 0
cpu0: 8 page colors
cpu0: calibrating local timer
cpu0: apic clock running at 100 MHz
timecounter: Timecounter "lapic" frequency 100043537 Hz quality -100
cpu0: Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz, id 0x306f2
cpu0: PAT enabled
cpu1 at mainbus0 apid 0
cpu1: 2 page colors

 System initializing 
 System initializing memory 

... so we need acpi for multiprocessor support.

try boot netbsd -12vx:

freeze shortly after
cpu0: unknown i686 model 3f, can't get bus clock (0x0)

=> we need ACPI. 

>How-To-Repeat:
Boot a GENERIC kernel on a new server which has no PS/2 ports and try to
get keyboard input.
>Fix:



Home | Main Index | Thread Index | Old Index