From nobody Tue May 03 16:14:53 2022 X-Original-To: dev-commits-src-all@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 6B8981AB3E71; Tue, 3 May 2022 16:14:54 +0000 (UTC) (envelope-from git@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 4Kt4mZ1Vzgz4gv3; Tue, 3 May 2022 16:14:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651594494; 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; bh=zJZlPmjPeWv7xlhncm5Pp99sNV9e0mdcBQo06KW3UYA=; b=Ia/4g9Cma3DFpKpleCn9kzIRsPSlmgGbg9Q9Tduw1wJZbsUXcvcadrHyKBiQ7CsRYqd09j L29QjsgJkdMnaxAj9+co9wKNCo0FTcui5ZWoZTWM+nrZ6HkIHqwyBSCwSusqI7N3XkmbLT NG4Fq+OD8GxEvRuLU9b39/up+uEdvH3uJPYKrgFhq6nZfXEdb0U9C0V8JpZ7uEmmDUhj9p qX5HjNg9PTQk1s17zHk2/XRvMewvsWQPaw8GQo6zlVnsfgnUHa9k+WRdN6E2hc0r89WPwV lDz0hr3lq2TaAtMD2ebVvbx5Nbtry48M4aLQzed7GRihWyEiHEjxYXAGqOKc/w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 0E9E921348; Tue, 3 May 2022 16:14:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 243GErG6054372; Tue, 3 May 2022 16:14:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 243GEr7o054371; Tue, 3 May 2022 16:14:53 GMT (envelope-from git) Date: Tue, 3 May 2022 16:14:53 GMT Message-Id: <202205031614.243GEr7o054371@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 09dd1adfa4c9 - main - xhci(4): Always add and evaluate the slot context. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 09dd1adfa4c9bb1b49f4ef5524a308732883e132 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651594494; 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; bh=zJZlPmjPeWv7xlhncm5Pp99sNV9e0mdcBQo06KW3UYA=; b=eXnmBPw5ffHTn5qaPgJKTL7CQ7+eQDaxmjFBGBko43f5ueUFaT0tinRfkh2KL+8fzamkdb Fph1x5/gq2/AVspVwPPuOW7FOFjzERPrtUht8vkyXBPBGKSjAAz/qdANIgqwR0wdo3UO2j dUEAGZUuoNOGbQiy1Azzw1JeK6NxHv+O5xQWEM0+G8qznNvoXqvpWMvt4ugm3KzZoe8m6l kF0YOdB+dBtCzuYxh/GmkVljqEQYWLI1sOWxa92gA8Dotg01B/pbYRRsOrAA0870kkaPct ntxx7RxdRfsYgw2cEPflK+YgQIBLKQ2gqfVYhfOqGlj3avFYs+kQsaNIFejiRQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651594494; a=rsa-sha256; cv=none; b=TI21sQ1qotg+rx1TGDAEKHR51SvnMwB4jLizVMYVoVppfYCBUiLYwLJypRkKnutFECeHm6 NY+G06y4MTHiApRLyLja155mUf6OSngM6TzXr/R7m5FzncKhHTE7ryYwbbS/j2Bw708HP7 +gJaBHRph/f2AdjtZmXPRjy2c2dHCUKsyqQm15P6Mdb6nFoCWGAzN5WrqrXMcE9qprDNoL K6tQ3/kD8AtB9EqsHBGXEadq1BlMsO9edsYn1f6wYuatdx6K5YlI4qBIB5UbUads/Ee5Tc 51BTVDUVyKl0riPDtYm0hrh2GJOMUz6YZKwkPbtscaY5Z/b8cks3r9JMoX6OpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=09dd1adfa4c9bb1b49f4ef5524a308732883e132 commit 09dd1adfa4c9bb1b49f4ef5524a308732883e132 Author: Hans Petter Selasky AuthorDate: 2022-05-03 16:10:49 +0000 Commit: Hans Petter Selasky CommitDate: 2022-05-03 16:13:53 +0000 xhci(4): Always add and evaluate the slot context. Because the maximum number of endpoint contexts is stored there. Tested by: ehaupt@ PR: 262882 MFC after: 3 hours Sponsored by: NVIDIA Networking --- sys/dev/usb/controller/xhci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index e35a0a5d2407..933a459170d1 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -3867,7 +3867,11 @@ xhci_configure_reset_endpoint(struct usb_xfer *xfer) } } - xhci_configure_mask(udev, mask, 0); + /* + * Always need to evaluate the slot context, because the maximum + * number of endpoint contexts is stored there. + */ + xhci_configure_mask(udev, mask | 1U, 0); if (!(sc->sc_hw.devs[index].ep_configured & mask)) { err = xhci_cmd_configure_ep(sc, buf_inp.physaddr, 0, index);