From nobody Wed Oct 12 15:54:22 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 4Mncf73TBNz4fdbW; Wed, 12 Oct 2022 15:54:23 +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 4Mncf70fBmz3HV0; Wed, 12 Oct 2022 15:54:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590063; 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=uIVcxRb9Pc/Z5gm2unrAzLUp1Kn714f52CJIL3RgSFw=; b=e926YiTvO9ajsV8n+hxk7ODtNZK0H/0j3uVmCr1Uc/2d5QnVWsM1POoJUTCqIqRte5SJjT f5U1rSmTTqjq9mtk2lPVgMJAlmLLVm5/HWqQ5AAuZhR/Xg3+y7LdlaO1R3aefrhguX74z2 Ehfgt7L4uAIAPP4MaMlGHusDZhTVYwi85KmJFP1RymGiGEfGj+5wR0XhzD8SBrvv06Gxlr jLlV40yu/XF2HF7mVkZoF8EXB2UGOlaL9kuZTSl4LgaSk/g1I5jlxaDtdjZVt+3C18i2xM ur7h7i80MM1X3E+zfqiFBEtfCiNNqMQtiwGJN++uYSycwZEfNf5SgCf6JHt2hw== 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 4Mncf66hq1z1M7b; Wed, 12 Oct 2022 15:54:22 +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 29CFsMn7043988; Wed, 12 Oct 2022 15:54:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29CFsMDj043987; Wed, 12 Oct 2022 15:54:22 GMT (envelope-from git) Date: Wed, 12 Oct 2022 15:54:22 GMT Message-Id: <202210121554.29CFsMDj043987@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: 1069b3b51421 - stable/13 - usb(4): Make sure the enumeration thread doesn't loop too fast. 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 1069b3b514219b0619a6c18b456b379f8aed5910 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590063; 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=uIVcxRb9Pc/Z5gm2unrAzLUp1Kn714f52CJIL3RgSFw=; b=QZCDMpc61XmjZRsotQFBp34SgrZieiwAed4ouoShbk1N6rPnz9TM9LaU7TZeSv477Xuwew 2H4jNjSL9OFDRvJIFOx4ksFfozfHptSLMmXLIA0N/9AZLg/G64j8Q7HOZqMujJNItCsORq tftR0Zwa33vDQE9+fhd1qDSJpnDKejx7HkJBAxabamAqJAzvcxdy5nxRNbal7BE6eLIw/G Skd6FCYNdQe+yc/ziS7HazNpf+JGB7BRD8quo+LL72W7ooltmIXCZ4uqRz1V6gl/ndFPUO 8EVBJ2ZREFSqZkpqhYMXRrfjDJV4GSoEs/cHLq4bw4XHkH3GaH8h7trm0tshQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665590063; a=rsa-sha256; cv=none; b=Jl6eiM1w1FaCS9t7t9yPKgos1I2GpoM1WJtO8Y6hA8yZgLGX8t/HNMj7dkNXR9MAu3x+Sg PMKNx4iQguHxlXqkfW/uOZTTJngBaO1ZMi61c+9e7w+/iUu4fTZJO5d/mCfvWvCvpZ3I27 j3BRqAK8pjLZrV10P9ATKfC7A1enFpEbwvgknTRDpCtaeLml55K8plXhxOJdzVS4NT7DLA 7NUnj/ewR9J7JxwXQ+TAEe3d7jFcH1lUscfXh92gNQnQcI1xuTynqS0uZZ/wcWsEkOc+J1 mCCb00xNLByzZFJbbwXnzumaC36cwTIMNJ/cjB/mwyDvRVFLBfTjb8pfcpMjKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=1069b3b514219b0619a6c18b456b379f8aed5910 commit 1069b3b514219b0619a6c18b456b379f8aed5910 Author: Hans Petter Selasky AuthorDate: 2022-06-09 13:15:49 +0000 Commit: Hans Petter Selasky CommitDate: 2022-10-12 15:53:22 +0000 usb(4): Make sure the enumeration thread doesn't loop too fast. Sponsored by: NVIDIA Networking (cherry picked from commit 55a3bd000d9799f431c207e359466484ac63c137) --- sys/dev/usb/controller/usb_controller.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index fd9bcd5ee524..8705c2849e4e 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -416,6 +416,9 @@ usb_bus_explore(struct usb_proc_msg *pm) #if USB_HAVE_ROOT_MOUNT_HOLD usb_root_mount_rel(bus); #endif + + /* Nice the enumeration a bit, to avoid looping too fast. */ + usb_pause_mtx(&bus->bus_mtx, USB_MS_TO_TICKS(16)); } /*------------------------------------------------------------------------*