From nobody Sat Nov 12 12:41:50 2022 X-Original-To: dev-commits-src-branches@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 4N8Zvf67DHz4fffH; Sat, 12 Nov 2022 12:41:50 +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 4N8Zvf5TPSz3tD6; Sat, 12 Nov 2022 12:41:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668256910; 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=JsmNxVPMYG+tbzJc+IKhX8k3TyxyCUIOYENyfN1bcZ4=; b=HxQ+nz5D+fbGp0dxSX5EMAYA6ZH5b05cVdwb4tY6BFbSZJK6+2LNyBARkYv9lYPDHg5mvJ MVtH2nwvFhDHzhgUTVPAzdemGlXcYZlfISWUwgHK5keORXvtzyJRbqMZkTF6m5h4FAUDNs heGXSvt4xdhfjSggUv5w1rZNnJv8avhmQ09ytvFW2jLrkOorHh4dxzSTmgX39+/HKYk1pa 1qw+ibTpHLl+lfX/yUQGN/w2tw2coWs1kUORCVwIF690fv4hajFeO7vvnGjMyQrg6OLMCC u3kHjhTf8BCkpaacLEgCx/aPEd9B5U//FjYaeR5xWVKOw3M7Wm+FJrF5kN/c6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668256910; 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=JsmNxVPMYG+tbzJc+IKhX8k3TyxyCUIOYENyfN1bcZ4=; b=CVWtNr3Q4xHSJ5YwvODpVgR7AvcHLUeNjktLXDO6EbT150yfLdmmBh//5VUiW/54nt/VC1 ZiGzgfo5407G7gRecH2wCP5n8c4GPyUbNHWkCoqol1em91YCEjY6P21CMm+heKi1A4wYtN F6dQF2o9krx7EdfP+cawC+xPQsWEaORorb7X0dF9NpSBgLkhgpdTodC4aR4dRNMOlHhn6Z 4Pg5ZbdqYaWghFcG1TMRRpJkp4QipT5B0MFsbEbe8Zwm6EBaxEpOc6n4Ui15TTvbi0ZgLV o55SFPSf8CFvUC1z6+4xcqwVK8TLX415SkZRdgMTV2Iit7L11onDkxzd4toAdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668256910; a=rsa-sha256; cv=none; b=q9gHYVScEcrZNuHjGhNgM2i2YKEGGL2B1sYjczMXUFv5d/3r6d1aQydNvDCwjR/ETUSZp7 CjDsxSx0fznCQd8gPAuBAQxB6i8/Rk8m2Jr1cHjEquh9wfsWKzcXi4Q2ktMnxTj3e3r+hg BnUT3irSYGUgKWm5dLGHrVLBwVMa93c3WHFU/KmfFMvNuuXga6HAvj4/7IFpv5XysiLSqe ju3d18DLvKymzJQxpcSgPZUGsLxVaNErzkXd8Bz0zLE82vUBgu4v651uDx/H9D8h+Jm32Q LOa2c1ms1ilkuvImsizc0G8G3Yi7m69iP+IvvUFHh3Ps3gpCYSVcpLC5mFNOyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N8Zvf4VMSzNgL; Sat, 12 Nov 2022 12:41:50 +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 2ACCfoTn054930; Sat, 12 Nov 2022 12:41:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ACCfoLX054929; Sat, 12 Nov 2022 12:41:50 GMT (envelope-from git) Date: Sat, 12 Nov 2022 12:41:50 GMT Message-Id: <202211121241.2ACCfoLX054929@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: d68c00757df2 - stable/13 - xhci(4): Don't allocate an IRQ vector if hw.usb.xhci.use_polling=1 is set. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: d68c00757df2d76ee42c372c92857df25722c97c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=d68c00757df2d76ee42c372c92857df25722c97c commit d68c00757df2d76ee42c372c92857df25722c97c Author: Hans Petter Selasky AuthorDate: 2022-10-20 17:21:53 +0000 Commit: Hans Petter Selasky CommitDate: 2022-11-12 12:00:06 +0000 xhci(4): Don't allocate an IRQ vector if hw.usb.xhci.use_polling=1 is set. This is useful for debugging purposes. Sponsored by: NVIDIA Networking (cherry picked from commit 3346ae0d24c072ef0e26ace3aae21bfef93d80aa) --- sys/dev/usb/controller/xhci_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/controller/xhci_pci.c b/sys/dev/usb/controller/xhci_pci.c index 3297765059ab..31c361fd26e8 100644 --- a/sys/dev/usb/controller/xhci_pci.c +++ b/sys/dev/usb/controller/xhci_pci.c @@ -404,7 +404,7 @@ xhci_pci_attach(device_t self) break; } - if (sc->sc_irq_res != NULL) { + if (sc->sc_irq_res != NULL && xhci_use_polling() == 0) { err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, NULL, (driver_intr_t *)xhci_interrupt, sc, &sc->sc_intr_hdl); if (err != 0) {