Subject: Re: ehci and Dell keyboards
To: NetBSD current-users <current-users@NetBSD.org>
From: Chris Tribo <ctribo@dtcc.edu>
List: current-users
Date: 10/13/2005 14:18:44
I just tried switching things between ports to see if any of the 10  
USB ports on this machine would work and got dumped into the debugger.

NetBSD/i386 (console)

login: NMI ... going to debugger
NMI Stopped at netbsd_cpu_switch+0xda: movl %esi,%esi
db{0}>


On Oct 13, 2005, at 2:10 PM, Chris Tribo wrote:

>
> It would appear that this problem is not specific to ehci nor uhci.  
> I put an ohci USB 1 card in and it still won't work, but at least  
> it will talk to the controller unlike ehci. I'm not sure what  
> legacy support means for an add-in card, but it doesn't work in the  
> BIOS. One port has my keyboard on it and one has the mouse.
>
> ohci0 at pci4 dev 1 function 0: Opti 82C861 (rev. 0x10)
> ohci0: interrupting at ioapic0 pin 17 (irq 10)
> ohci0: OHCI version 1.0, legacy support
> usb5 at ohci0: USB revision 1.0
> uhub5 at usb5
> uhub5: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub5: 2 ports with 2 removable, self powered
> ...
> usb_new_device: set address 2 failed
> uhub_explore: usb_new_device failed, error=SET_ADDR_FAILED
> uhub5: device problem, disabling port 1
> usb_new_device: set address 2 failed
> uhub_explore: usb_new_device failed, error=SET_ADDR_FAILED
> uhub5: device problem, disabling port 2
>
> Why are we disabling the port when there's a device problem?  
> Shouldn't we either try again every once in a while or give up  
> initializing that device and continue to configure other endpoints?  
> If you shut the port down how do you know if the problem device has  
> been unplugged or it finally came to ready?
>
> On Oct 11, 2005, at 4:43 PM, Chris Tribo wrote:
>
>
>> If you did that you'd never be able to get into the BIOS again to  
>> turn it back on without resetting the CMOS settings. There's no  
>> setting to turn it off on machines that don't have physical PS/2  
>> ports.
>>
>> On Oct 11, 2005, at 4:39 PM, Lennart Augustsson wrote:
>>
>>
>>
>>> Does the BIOS have some legacy keyboard emulation that you
>>> can try turning off?
>>>
>>>     -- Lennart
>>>
>>> Patrick Welche wrote:
>>>
>>>
>>>
>>>> If I have ehci enabled, my usb keyboard stops working once the  
>>>> ehci driver
>>>> is loaded. (Can type at boot prompt etc) With ehci commented  
>>>> out, all is OK:
>>>> uhidev0 at uhub3 port 1 configuration 1 interface 0
>>>> uhidev0: DELL DELL USB Keyboard, rev 1.10/1.04, addr 2, iclass 3/1
>>>> ukbd0 at uhidev0: 8 modifier keys, 6 key codes
>>>> with ehci:
>>>> ehci0 at pci0 dev 29 function 7: Intel 82801FB/FR USB EHCI  
>>>> Controller (rev. 0x03)
>>>> ehci0: interrupting at ioapic0 pin 21 (irq 9)
>>>> ehci0: EHCI version 1.0
>>>> ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
>>>> usb4 at ehci0: USB revision 2.0
>>>> uhub4 at usb4
>>>> uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
>>>> uhub4: 8 ports with 8 removable, self powered
>>>> but then just the mouse is seen on
>>>> uhidev0 at uhub3 port 2 configuration 1 interface 0
>>>> uhidev0: Dell Dell USB Mouse, rev 1.10/29.10, addr 2, iclass 3/1
>>>> ums0 at uhidev0: 3 buttons and Z dir.
>>>> wsmouse0 at ums0 mux 0
>>>> but no keyboard..
>>>> (Entertainingly this is true for Dell GX280 BIOS revisions A04  
>>>> and the
>>>> lastest A06 which allegedly fixes USB troubles. A05 seems to work.)
>>>> How can I help?
>>>> Cheers,
>>>> Patrick
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
> !DSPAM:434ea318210041898946925!
>