[SLOF] Keyboard not working when using XHCI as a USB host controller?

Nikunj A Dadhania nikunj at linux.vnet.ibm.com
Wed Aug 5 15:18:54 AEST 2015


Alexey Kardashevskiy <aik at ozlabs.ru> writes:

> On 08/05/2015 02:06 PM, Alexey Kardashevskiy wrote:
>> On 08/04/2015 09:32 PM, Thomas Huth wrote:
>>>
>>>   Hi!
>>>
>>> When I use the following command line to start a guest:
>>>
>>>   qemu-system-ppc64 -machine pseries,accel=kvm,usb=off \
>>>     -device pci-ohci,id=usb,bus=pci.0,addr=0x2 \
>>>     -device usb-kbd,id=input0 -nographic -vga none
>>>
>>> ... SLOF correctly discoveres a keyboard during USB scan:
>>>
>>>   Scanning USB
>>>     OHCI: initializing
>>>       USB Keyboard
>>>   ...
>>>   0 > devalias
>>>   keyboard : /pci at 800000020000000/usb at 2/usb-keyboard at 1
>>>   usb0 : /pci at 800000020000000/usb at 2
>>>   ...
>>>
>>> However, when I start with an XHCI (or EHCI) controller
>>> instead:
>>
>>
>> Sure about EHCI?
>
> Uff. Although it detects the keyboard but the keyboard does not really work 
> so yes, EHCI does not work either.

Right, so usb-kbd support was added for OHCI. At the time of our
development, qemu didnt even allow to attach a keyboard device to
usb-ehci controller. This got added here:

commit b13ce07688b0727814b6609a912651242ee1a8f1
Author: Jan Vesely <jano.vesely at gmail.com>
Date:   Mon Sep 29 22:21:11 2014 -0400

    usb-hid: Add high speed keyboard configuration
    
    Signed-off-by: Jan Vesely <jano.vesely at gmail.com>
    
    [ kraxel: fixup compat property to apply to 2.1 & older ]
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>


Regards,
Nikunj



More information about the SLOF mailing list