From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A716C433DB for ; Tue, 12 Jan 2021 04:35:58 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3892A22D2A for ; Tue, 12 Jan 2021 04:35:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3892A22D2A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzBPR-0003Vr-4q for qemu-devel@archiver.kernel.org; Mon, 11 Jan 2021 23:35:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzBJd-0005w0-O0 for qemu-devel@nongnu.org; Mon, 11 Jan 2021 23:29:57 -0500 Received: from indium.canonical.com ([91.189.90.7]:52812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzBJb-0002Jk-SH for qemu-devel@nongnu.org; Mon, 11 Jan 2021 23:29:57 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1kzBJa-00054T-HJ for ; Tue, 12 Jan 2021 04:29:54 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 80B492E8137 for ; Tue, 12 Jan 2021 04:29:54 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Jan 2021 04:17:24 -0000 From: Launchpad Bug Tracker <1626207@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Expired; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: hagbardcelin janitor th-huth X-Launchpad-Bug-Reporter: Celine (hagbardcelin) X-Launchpad-Bug-Modifier: Launchpad Janitor (janitor) References: <20160921173119.27130.58488.malonedeb@chaenomeles.canonical.com> Message-Id: <161042504490.10246.1017359548870164023.malone@loganberry.canonical.com> Subject: [Bug 1626207] Re: -device usb-host failing with usbip_vudc-vhdi_hcd gadget X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="fe617ea08df036edd5c842aded2b315e1c090677"; Instance="production" X-Launchpad-Hash: 4fd4343083dd0f96f1d1f61b22dba6d60bee3e43 Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1626207 <1626207@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" [Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete =3D> Expired -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1626207 Title: -device usb-host failing with usbip_vudc-vhdi_hcd gadget Status in QEMU: Expired Bug description: I must admit that I do not know if this is a Qemu or a Kernel issue, but I try reporting here: When I try to forward a copy of my USB mouse that I made with the new vir= tual USB device controller in kernel 4.7 I get the following in my log: [ +0.703256] usb 1-4: reset full-speed USB device number 3 using xhci_hcd [ +1.020776] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855013] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.859052] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.857000] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.000141] usb 7-3: USB disconnect, device number 10 [ +0.153056] usb 1-4: reset full-speed USB device number 3 using xhci_hcd [ +0.703746] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855001] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855006] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.855005] usb usb7-port3: Cannot enable. Maybe the USB cable is bad? [ +0.000009] usb usb7-port3: unable to enumerate USB device the commands I use for makeing the virtual device are(after making a copy= of the report description of my real mouse in /root/usb/kingston_report_de= sc): mkdir /sys/kernel/config/usb_gadget/winmouse cd /sys/kernel/config/usb_gadget/winmouse echo "0x047d" > idVendor echo "0x1020" > idProduct mkdir strings/0x409 echo 2016 > strings/0x409/serialnumber echo Kensington > strings/0x409/manufacturer echo "Kensington Expert Mouse" > strings/0x409/product mkdir configs/c.1 mkdir configs/c.1/strings/0x409 mkdir functions/hid.usb2 echo 2 > functions/hid.usb2/protocol echo 1 > functions/hid.usb2/subclass echo 4 > functions/hid.usb2/report_length cat /root/usb/kingston_report_desc > functions/hid.usb2/report_de= sc echo 0xa0 > configs/c.1/bmAttributes echo 100 > configs/c.1/MaxPower ln -s functions/hid.usb2 configs/c.1 echo usbip-vudc.2 > UDC usbip attach -r localhost -d usbip-vudc.2 The virtual mouse then shows up as Bus7,Dev10 and I use the option -device usb-host,hostbus=3D7,hostaddr=3D10,id=3Dhostdev6,bus=3Dusb.0,port= =3D2 in Qemu to attach it. This is Qemu 2.7.0 on kernel 4.7.4 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1626207/+subscriptions