From nobody Sat Apr 30 19:04:49 2022 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 93CE21AB8F93 for ; Sat, 30 Apr 2022 19:04:49 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KrJh12MHyz3mQg for ; Sat, 30 Apr 2022 19:04:49 +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 2D9AF26AD1 for ; Sat, 30 Apr 2022 19:04:49 +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 23UJ4nvG076274 for ; Sat, 30 Apr 2022 19:04:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23UJ4nAt076273 for usb@FreeBSD.org; Sat, 30 Apr 2022 19:04:49 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 262882] [13.1-RC5] usb disconnects repeatedly, losing all attached devices on that USB hub Date: Sat, 30 Apr 2022 19:04:49 +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: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress 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 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651345489; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q9lGHumOr0ebQBtDhWDk3sfQatVAdXTX7hgz6AwVXmI=; b=IqoHuNmlXPdXrIbNlaWa6gEFQXRroP4L8exBlRpvclhNH9OVe12T64tJsIiPdTpsOj6+0N C7sKn+2afJNG/aEU76k4WunyFqijRUCtIFZOCZP4McGKuh6lHbhP1mq8xE+5NexsyCO1PZ qpSVSAiSZVXV2MSafRmof2dNP5wYiIw7FJl+LVG7dQOV064EbRWhrNuJu3triny0XByIKx n/evj0SYOP6NySecdcWNnPkzZCWJV0Lr3tKNWFY5EuUwaRQnAiJBJea1H7VNkKoGCwTR9H OleoR2kgBxu1DK7GGRKjCbFwHjlUVnhPewdeFD48bcMmUPAJzbjxRz4feDnK+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651345489; a=rsa-sha256; cv=none; b=i/UPgWYVpFPkIDKnd0AZzqj/wOM3nwJ0193n/QB1wXuN+izzoLPg+Vdn1ZR/L83Bw9co4L yn4WbffiyBOu3KzgGQu2Lum0L6MKzOFutRM90VIVw0EW7zxnx0wyzWRfNDfu5vbm7dxOUN 4qw7+exGE34MW8GZNe4oVW3Ma+4hwqVTJY6Ke1eeyghNNgmcUlfyZoR2UaQOnkGEHgxqM0 80N8OI+r4I15qu/fmtodgiy3uGE8ApWrTFu3RIFnlleLicLvg3Dx4pWYkXyYGq/rgrRqlD WyzFiH6/LGXWfvDotmSVcDTVzgEWwf5VafKFHW43v0TFJkp0FnBorJq2QO5l5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262882 --- Comment #26 from Hans Petter Selasky --- Emanuel Haupt: There are were few relevant changes in that delta: Can you provide the output from dmesg, when "sysctl hw.usb.xhci.debug=3D16"= when the issue occurs. You need "options USB_DEBUG" in the kernel configuration. Does this reverting/applying the commit below change anything. Do you know if your device is attached via thunderbolt? --HPS commit 245d5a65f5805864881e2601190e7783057d2768 Author: Hans Petter Selasky Date: Thu Apr 21 16:59:09 2022 +0200 xhci(4): Ensure the so-called data toggle gets properly reset. Use the drop and enable endpoint context commands to force a reset of the data toggle for USB 2.0 and USB 3.0 after: - clear endpoint halt command (when the driver wishes). - set config command (when the kernel or user-space wants). - set alternate setting command (only affected endpoints). Some XHCI HW implementations may not allow the endpoint reset command w= hen the endpoint context is not in the halted state. Reported by: Juniper and Gary Jennejohn Approved by: re (gjb) Sponsored by: NVIDIA Networking (cherry picked from commit cda31e734925346328fd2369585ab3f6767ec225) --=20 You are receiving this mail because: You are the assignee for the bug.=