Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1753104pxv; Fri, 23 Jul 2021 16:54:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB947KWRPYiN25pubDJcqyoWGyovMN6KuZ3rtjr24qW2qK3zBuIJeVns3rN2N9+gcWQFg4 X-Received: by 2002:a05:6e02:c87:: with SMTP id b7mr5083176ile.210.1627084482186; Fri, 23 Jul 2021 16:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627084482; cv=none; d=google.com; s=arc-20160816; b=T94LhOUDGIqL0rAbXAjZeCAYey2HEKIiNYbnvl6lCcl3k4Ful1CxI0y8J8tjQyClEn WB9lzm5ulEksrDTGgUYA5+C8dDxS8ycIoGr9V+7kIJW87RIJaW15iYmN0q8AU/43Bubi ZjCp4krgXpy35VFRQm2dyja+mydi7XIVyc1gexdvtg5AGzkINcCXum/AtSyfY5zxOOvT kaqGLbH7U/ta+aYST7bWi9aL15tqLevbFs2odBVblBJO1RhNVcORVkuEERYN/bFdxbdM MdS2NGtLVLCRiWESnFBPAY9CN1J7gDIPyk0HZt9anauXZyqt2S+bImahurlX7zczHuYi Y4xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=l1Ouoyc282n8cRglKql5qRrMEKm9c0HSU8jXOecOjS8=; b=OKDBzc/uAg14G3H+ErG291Ot13G99b+jsTcCYXmLAL6bKou+UXHGbqln1Kseun+9kb FoMLChIQBdF7eE+NmZ3E5rpiX9VsO+Px8nSizeET15QVGAqCMfIAUotVNcL6z+65Y01f /WUoRGh+RNFAjTuqxiiqTcOd2NE+Me0XlF8PB2t3z8Yi/UlP2yk7z0n8N8muSQtNy2X0 /Hvr+9DJ22wkeMfrQBHwdNvDnvaG/sM50zoOPdJNQasyrUNN85hQktYLMOFXx0tUrBGv kpRaQ/QHM9S6BMHWXdiiAdtHa3r1A99FPzVdH372FyRdwdpm2v10OcicmWJEr8qddh8+ 9TGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VJPXZ82E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d187si38489889iog.56.2021.07.23.16.54.22; Fri, 23 Jul 2021 16:54:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VJPXZ82E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233245AbhGWXM6 (ORCPT + 99 others); Fri, 23 Jul 2021 19:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232550AbhGWXM5 (ORCPT ); Fri, 23 Jul 2021 19:12:57 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7C80C061575; Fri, 23 Jul 2021 16:53:29 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id r18so4512136iot.4; Fri, 23 Jul 2021 16:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l1Ouoyc282n8cRglKql5qRrMEKm9c0HSU8jXOecOjS8=; b=VJPXZ82ESQFnQ0Q83zyOTc5aJJF2w7XaAlDIF/RlsKXX0xUzTcCMkGwKRKla0gSSQA 0sQiwNIAb9PC8BMT8qBn2onrYt4TB2R850H2ku15hIHLwIyWEhb2s19lF++DUhNXmXib buANJjFMz7MPXALqJDvrGix1MyYDXsmySB0DatD7yCJ4uGxjWW8wf7asGSfLzpdqrinJ kf6nmKAT/4WGJhvElBkUSMrsx2kZGbqTz3cf+JuP1wFzpD2GhkM5DGiopmVI6Pr5Rec7 SJitFv6fjoT16hvejTzoZ6wVOJADDpvCD/aVlBXzb7TK3G8rO6MCslyTNNNsi6r4Vv8/ RGvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l1Ouoyc282n8cRglKql5qRrMEKm9c0HSU8jXOecOjS8=; b=Rt2pf4TsOy942p89q5ZxXwbNeeRwqp6UYuHh3Q4wv8mb2lcRB8rQaaYLyrTvv26vVx YM1qE4PquFe6jhZ7wPFJ5QOZl8C6TmApsyj2/Fnaa2I2Q2Ds8UACmkestd1dRo+Igw1U Au1VhgzAMPlfCYuGEXfmIJJ7Wp0KVnkEgzyjjcNDDZhRcJ4WDsNV2QmnThUPlrTHoYB2 dumHbcr/lGug97+42/5ST+AzlijTUI6OPZX9Ks5lkZhg6lMuU1LcGpPOcXTQe3ZirGaI vfUXVsZPgRiA22zi3ECRx+04gi43dtqJk/ilUocMNjWGFzufju2i621zMQR3VY8O6ezI y4rA== X-Gm-Message-State: AOAM530XsWTaKNRuXcPAKj/y4PjXoDmiYcSppb1pPRHL0wAqmKBUWRSS 0g+BQgXrxO6cSNN7ytdiez78MubXo2oP+DIP4JRHXYa+3SGL8w== X-Received: by 2002:a5e:c006:: with SMTP id u6mr5832579iol.66.1627084409249; Fri, 23 Jul 2021 16:53:29 -0700 (PDT) MIME-Version: 1.0 References: <20210721235526.10588-1-msbroadf@gmail.com> <7b02cb66-d672-ae95-01ea-c6015725e1ac@linuxfoundation.org> In-Reply-To: From: Michael Date: Sat, 24 Jul 2021 09:53:16 +1000 Message-ID: Subject: Re: [PATCH v2] vhci_hcd: USB port can get stuck in the disabled state To: Shuah Khan Cc: valentina.manea.m@gmail.com, shuah@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here is an xbox controller. (Note this usb is just a mt76 usb->wifi chip slightly modified). Host commands ---------------------- sudo usbipd & sudo modprobe usbip-host sudo usbip bind -b 1-1.4 Client commands ----------------------- sudo modprobe vhci-hcd sudo usbip attach -r 192.168.1.189 -b 1-1.4 Host dmesg ----------------- [ 61.713164] usbcore: registered new device driver usbip-host [ 99.964196] mt76x2u 1-1.4:1.0: mac specific condition occurred [ 100.212477] usbip-host 1-1.4: usbip-host: register new device (bus 1 dev 3) [ 128.195578] usbip-host 1-1.4: stub up Client dmesg -------------------- [ 184.764560] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3) [ 184.764569] vhci_hcd vhci_hcd.0: devid(65539) speed(3) speed_str(high-speed) [ 184.764592] vhci_hcd vhci_hcd.0: Device attached [ 184.999634] usb 5-1: new high-speed USB device number 2 using vhci_hcd [ 185.127653] usb 5-1: SetAddress Request (2) to port 0 [ 185.173988] usb 5-1: New USB device found, idVendor=045e, idProduct=02e6, bcdDevice= 1.00 [ 185.173996] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 185.174000] usb 5-1: Product: XBOX ACC [ 185.174003] usb 5-1: Manufacturer: Microsoft Inc. [ 185.174005] usb 5-1: SerialNumber: 203124 [ 185.357262] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 185.357936] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 186.387801] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 187.287921] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 188.188011] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 189.088116] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 189.088169] usb 5-1: USB disconnect, device number 2 [ 189.088789] mt76x2u 5-1:1.0: ASIC revision: ffffffff [ 189.089569] usbcore: registered new interface driver mt76x2u [ 189.988201] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 190.888294] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 190.888321] usb usb5-port1: attempt power cycle [ 192.104419] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 193.004503] usb usb5-port1: Cannot enable. Maybe the USB cable is bad? [ 193.004531] usb usb5-port1: unable to enumerate USB device On Sat, 24 Jul 2021 at 02:29, Shuah Khan wrote: > > On 7/21/21 8:27 PM, Michael wrote: > > You can pass through any bluetooth dongle (or xbox wireless dongle) through usbip and it will cause this issue. > > > > For example, here is one of my customers https://www.virtualhere.com/comment/9432#comment-9432 with the issue. > > > > The device is in the VDEV_ST_USED state when a reset occurs and so its never re-enabled > > > > Furthermore there is a bug in the line pr_err("vhci_device speed not set\n"); > > (L479) because resetting a full-speed device is not an error. > > > > Can you provide me the full demsg from host and client including the part > where device is attached? I assume usbip tools from Linux sources are used? > > Also send me lsusb output on host and client > > thanks, > -- Shuah