qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] USB Hostport Differences
@ 2012-06-08 16:33 Erik Rull
  2012-06-08 18:20 ` Hans de Goede
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Rull @ 2012-06-08 16:33 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Gerd Hoffmann

Hi all,

when assigning USB host devices to a guest using the hostport option, there 
seem to be different formats, when calling info usbhost:

- On my vanilla kernel linux there is a hostport format e.g. "1.5" or "1.2"
- On my Debian 6.0 full blown linux there is a hostport format "2" or "4", 
that means, there are no dots and only one number

Where do the differences come from? I'm working on some scripts that give 
some dynamic qemu command line options related to the hostport - maybe 
there is a way of getting them to the same format?

Best regards,

Erik

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] USB Hostport Differences
  2012-06-08 16:33 [Qemu-devel] USB Hostport Differences Erik Rull
@ 2012-06-08 18:20 ` Hans de Goede
  2012-06-08 20:56   ` Erik Rull
  0 siblings, 1 reply; 6+ messages in thread
From: Hans de Goede @ 2012-06-08 18:20 UTC (permalink / raw)
  To: Erik Rull; +Cc: qemu-devel@nongnu.org, Gerd Hoffmann

Hi,

On 06/08/2012 06:33 PM, Erik Rull wrote:
> Hi all,
>
> when assigning USB host devices to a guest using the hostport option, there seem to be different formats, when calling info usbhost:
>
> - On my vanilla kernel linux there is a hostport format e.g. "1.5" or "1.2"
> - On my Debian 6.0 full blown linux there is a hostport format "2" or "4", that means, there are no dots and only one number
>

Hmm, is this on the same machine, with the usb devices hooked up the same way? Normally these differences come
from there being hubs in the chain, ie "2" or "4" indicate devices plugged directly into a root hub,
"1.5" and "1.2" mean devices plugged into a hub, which itself is plugged into root port "1"

Regards,

Hans

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] USB Hostport Differences
  2012-06-08 18:20 ` Hans de Goede
@ 2012-06-08 20:56   ` Erik Rull
  2012-06-08 21:32     ` Hans de Goede
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Rull @ 2012-06-08 20:56 UTC (permalink / raw)
  To: Hans de Goede; +Cc: qemu-devel@nongnu.org, Gerd Hoffmann

Hans de Goede wrote:
> Hi,
>
> On 06/08/2012 06:33 PM, Erik Rull wrote:
>> Hi all,
>>
>> when assigning USB host devices to a guest using the hostport option,
>> there seem to be different formats, when calling info usbhost:
>>
>> - On my vanilla kernel linux there is a hostport format e.g. "1.5" or "1.2"
>> - On my Debian 6.0 full blown linux there is a hostport format "2" or
>> "4", that means, there are no dots and only one number
>>
>
> Hmm, is this on the same machine, with the usb devices hooked up the same
> way? Normally these differences come
> from there being hubs in the chain, ie "2" or "4" indicate devices plugged
> directly into a root hub,
> "1.5" and "1.2" mean devices plugged into a hub, which itself is plugged
> into root port "1"
>
> Regards,
>
> Hans

No it's on different machines - first with Intel Hardware, second with AMD 
Hardware. I have no hubs attached, I use the ports that are offered 
directly on the mainboard (EPIC Nano Connectors / ATX rear side panel). On 
all other Intel systems I see the same effect with the "1.x" ports. Only 
the AMD system shows the single numbers.

Maybe the root hubs are different on Intel and AMD hardware?

Best regards,

Erik

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] USB Hostport Differences
  2012-06-08 20:56   ` Erik Rull
@ 2012-06-08 21:32     ` Hans de Goede
  2012-06-10 10:51       ` Erik Rull
  0 siblings, 1 reply; 6+ messages in thread
From: Hans de Goede @ 2012-06-08 21:32 UTC (permalink / raw)
  To: Erik Rull; +Cc: qemu-devel@nongnu.org, Gerd Hoffmann

Hi,

On 06/08/2012 10:56 PM, Erik Rull wrote:
> Hans de Goede wrote:
>> Hi,
>>
>> On 06/08/2012 06:33 PM, Erik Rull wrote:
>>> Hi all,
>>>
>>> when assigning USB host devices to a guest using the hostport option,
>>> there seem to be different formats, when calling info usbhost:
>>>
>>> - On my vanilla kernel linux there is a hostport format e.g. "1.5" or "1.2"
>>> - On my Debian 6.0 full blown linux there is a hostport format "2" or
>>> "4", that means, there are no dots and only one number
>>>
>>
>> Hmm, is this on the same machine, with the usb devices hooked up the same
>> way? Normally these differences come
>> from there being hubs in the chain, ie "2" or "4" indicate devices plugged
>> directly into a root hub,
>> "1.5" and "1.2" mean devices plugged into a hub, which itself is plugged
>> into root port "1"
>>
>> Regards,
>>
>> Hans
>
> No it's on different machines - first with Intel Hardware, second with AMD Hardware. I have no hubs attached, I use the ports that are offered directly on the mainboard (EPIC Nano Connectors / ATX rear side panel). On all other Intel systems I see the same effect with the "1.x" ports. Only the AMD system shows the single numbers.
>

Those would be sandy bridge or newer Intel machines then, these no longer have
an EHCI usb controller + UHCI companion controllers, but only an EHCI controller,
so the root ports are USB-2 only. In order for USB-1 devices to still work the
chipset has an integrated USB-2 hub (which can handle USB-1 ports), of you do
lsusb you should see something like this in there:

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Which is why you get the 1.x for the motherboard ports, because there is actually
a hub between the root hub and the ports.

Regards,

Hans

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] USB Hostport Differences
  2012-06-08 21:32     ` Hans de Goede
@ 2012-06-10 10:51       ` Erik Rull
  2012-06-10 12:02         ` Hans de Goede
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Rull @ 2012-06-10 10:51 UTC (permalink / raw)
  To: Hans de Goede; +Cc: qemu-devel@nongnu.org, Gerd Hoffmann

Hans de Goede wrote:
> Hi,
>
> On 06/08/2012 10:56 PM, Erik Rull wrote:
>> Hans de Goede wrote:
>>> Hi,
>>>
>>> On 06/08/2012 06:33 PM, Erik Rull wrote:
>>>> Hi all,
>>>>
>>>> when assigning USB host devices to a guest using the hostport option,
>>>> there seem to be different formats, when calling info usbhost:
>>>>
>>>> - On my vanilla kernel linux there is a hostport format e.g. "1.5" or
>>>> "1.2"
>>>> - On my Debian 6.0 full blown linux there is a hostport format "2" or
>>>> "4", that means, there are no dots and only one number
>>>>
>>>
>>> Hmm, is this on the same machine, with the usb devices hooked up the same
>>> way? Normally these differences come
>>> from there being hubs in the chain, ie "2" or "4" indicate devices plugged
>>> directly into a root hub,
>>> "1.5" and "1.2" mean devices plugged into a hub, which itself is plugged
>>> into root port "1"
>>>
>>> Regards,
>>>
>>> Hans
>>
>> No it's on different machines - first with Intel Hardware, second with
>> AMD Hardware. I have no hubs attached, I use the ports that are offered
>> directly on the mainboard (EPIC Nano Connectors / ATX rear side panel).
>> On all other Intel systems I see the same effect with the "1.x" ports.
>> Only the AMD system shows the single numbers.
>>
>
> Those would be sandy bridge or newer Intel machines then, these no longer have
> an EHCI usb controller + UHCI companion controllers, but only an EHCI
> controller,
> so the root ports are USB-2 only. In order for USB-1 devices to still work the
> chipset has an integrated USB-2 hub (which can handle USB-1 ports), of you do
> lsusb you should see something like this in there:
>
> Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
>
> Which is why you get the 1.x for the motherboard ports, because there is
> actually
> a hub between the root hub and the ports.
>
> Regards,
>
> Hans
>

Hi Hans,

thanks for the explanation - so I will try to find out which way of USB 
handling is given on the current system and then add the correct hostport 
filters.

Is there an easier way of finding this kind of architecture automatically 
beside grep'ing for such a Hub?

Best regards,

Erik

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] USB Hostport Differences
  2012-06-10 10:51       ` Erik Rull
@ 2012-06-10 12:02         ` Hans de Goede
  0 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2012-06-10 12:02 UTC (permalink / raw)
  To: Erik Rull; +Cc: qemu-devel@nongnu.org, Gerd Hoffmann

Hi,

On 06/10/2012 12:51 PM, Erik Rull wrote:
> Hans de Goede wrote:
>> Hi,
>>
>> On 06/08/2012 10:56 PM, Erik Rull wrote:
>>> Hans de Goede wrote:
>>>> Hi,
>>>>
>>>> On 06/08/2012 06:33 PM, Erik Rull wrote:
>>>>> Hi all,
>>>>>
>>>>> when assigning USB host devices to a guest using the hostport option,
>>>>> there seem to be different formats, when calling info usbhost:
>>>>>
>>>>> - On my vanilla kernel linux there is a hostport format e.g. "1.5" or
>>>>> "1.2"
>>>>> - On my Debian 6.0 full blown linux there is a hostport format "2" or
>>>>> "4", that means, there are no dots and only one number
>>>>>
>>>>
>>>> Hmm, is this on the same machine, with the usb devices hooked up the same
>>>> way? Normally these differences come
>>>> from there being hubs in the chain, ie "2" or "4" indicate devices plugged
>>>> directly into a root hub,
>>>> "1.5" and "1.2" mean devices plugged into a hub, which itself is plugged
>>>> into root port "1"
>>>>
>>>> Regards,
>>>>
>>>> Hans
>>>
>>> No it's on different machines - first with Intel Hardware, second with
>>> AMD Hardware. I have no hubs attached, I use the ports that are offered
>>> directly on the mainboard (EPIC Nano Connectors / ATX rear side panel).
>>> On all other Intel systems I see the same effect with the "1.x" ports.
>>> Only the AMD system shows the single numbers.
>>>
>>
>> Those would be sandy bridge or newer Intel machines then, these no longer have
>> an EHCI usb controller + UHCI companion controllers, but only an EHCI
>> controller,
>> so the root ports are USB-2 only. In order for USB-1 devices to still work the
>> chipset has an integrated USB-2 hub (which can handle USB-1 ports), of you do
>> lsusb you should see something like this in there:
>>
>> Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
>>
>> Which is why you get the 1.x for the motherboard ports, because there is
>> actually
>> a hub between the root hub and the ports.
>>
>> Regards,
>>
>> Hans
>>
>
> Hi Hans,
>
> thanks for the explanation - so I will try to find out which way of USB handling is given on the current system and then add the correct hostport filters.
>
> Is there an easier way of finding this kind of architecture automatically beside grep'ing for such a Hub?

Not that I know of I'm afraid.

Regards,

Hans

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-10 12:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-08 16:33 [Qemu-devel] USB Hostport Differences Erik Rull
2012-06-08 18:20 ` Hans de Goede
2012-06-08 20:56   ` Erik Rull
2012-06-08 21:32     ` Hans de Goede
2012-06-10 10:51       ` Erik Rull
2012-06-10 12:02         ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).