From owner-freebsd-usb@freebsd.org Wed Dec 23 09:10:55 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 893B04B8CA6 for ; Wed, 23 Dec 2020 09:10:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4D16rH3J7kz4YyV for ; Wed, 23 Dec 2020 09:10:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6F6294B8CA5; Wed, 23 Dec 2020 09:10:55 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6E18C4B8C24 for ; Wed, 23 Dec 2020 09:10:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D16rH2Wddz4ZFN for ; Wed, 23 Dec 2020 09:10:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 49DBA1B872 for ; Wed, 23 Dec 2020 09:10:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BN9AtPs010376 for ; Wed, 23 Dec 2020 09:10:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0BN9AtOH010375 for usb@FreeBSD.org; Wed, 23 Dec 2020 09:10:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 251503] Disconnecting/reconnecting USB-C dock makes other USB ports unusable Date: Wed, 23 Dec 2020 09:10:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ali.abdallah@suse.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2020 09:10:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251503 --- Comment #4 from Ali Abdallah --- I've enabled USB_DEBUG, I'm attaching here the relevant messages when the d= ock is removed and inserted again ugen1.2: at usbus1 (disconnected) uhub3: at uhub0, port 1, addr 1 (disconnected) ugen1.3: at usbus1 (disconnected) ugen1.4: at usbus1 (disconnected) uhub5: at uhub3, port 3, addr 3 (disconnected) ugen1.5: at usbus1 (disconnected) uhub6: at uhub5, port 3, addr 4 (disconnected) ugen1.6: at usbus1 (disconnected) uhid0: at uhub6, port 1, addr 5 (disconnected) uhid0: detached ugen1.7: at usbus1 (disconnecte= d) uaudio0: at uhub6, port 2, addr 6 (disconnected) pcm4: detached uaudio0: detached uhid1: at uhub6, port 2, addr 6 (disconnected) uhid1: detached uhub6: detached ugen1.8: at usbus1 (disconnected) umass0: at uhub5, port 4, addr 7 (disconnected) da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: s/n AA04012900007619 detached (da0:umass-sim0:0:0:0): Periph destroyed umass0: detached uhub5: detached uhub3: detached --> Attaching ugen1.2: at usbus1 uhub3 on uhub0 uhub3: on usb= us1 uhub3: MTT enabled uhub3: 4 ports with 2 removable, self powered Could not stop endpoint 3 index 1 Could not set dequeue ptr for endpoint 3 index 1 uhub_reattach_port: port 5 U1 timeout failed, error=3DUSB_ERR_IOERROR uhub_reattach_port: port 5 U2 timeout failed, error=3DUSB_ERR_IOERROR ugen1.3: at usbus1 uhub5 on uhub0 uhub5: on usb= us1 uhub5: 4 ports with 2 removable, self powered Could not stop endpoint 3 index 2 Could not set dequeue ptr for endpoint 3 index 2 Could not set dequeue ptr for endpoint 1 index 1 Could not set dequeue ptr for endpoint 1 index 2 Could not set dequeue ptr for endpoint 1 index 1 Could not set dequeue ptr for endpoint 1 index 2 Could not set dequeue ptr for endpoint 1 index 1 Could not set dequeue ptr for endpoint 1 index 2 As you can, they are xhci messages of dequeue failures, and endpoint stoppi= ng failures when the dock in inserted back. BTW, on dfly bsd the same sequence of events is causing full controller res= et, which is clearly bad, as USB devices attached (to the laptop) on xhci0 will vanish. --=20 You are receiving this mail because: You are the assignee for the bug.=