From nobody Wed Sep 25 22:19:12 2024 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 4XDWNc6f9Pz5XmvN; Wed, 25 Sep 2024 22:19:12 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XDWNc68jDz42lk; Wed, 25 Sep 2024 22:19:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727302752; 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=yaRhOe1USNyvSMsQNAVDESb/MZx2VgPsn5aDl1h4kio=; b=hr8nsdrtTTeKvbgkL40dFyx9WVw/Dq0W77talhP2de0x+7RodYQZNninDPjA6MRC1vRIoP Mk3aFFDyX3w90o0S8BGq+xuslIg80QI8aZH7OvasbZQlPwoLyIKc82aNeYCME1QywyNbwh 7uKcpzOm6WOflhUit6R1u1baFR619lqTJDcG+oLRtzjBvSJqT1IANAIIfh2N+5Rekplzqm sn/zI2IvNvGMynVBG+uStGJYIvxFM4v8pyhmysqKQ4U4Yzk4vK/WQtO9eTePQLXtCtvYGB 7/KbyJ7pZjrzAddSWrXQOhOeNUldhGMJz8npmycSn7kcszShvpiBwN01rIN2Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727302752; 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=yaRhOe1USNyvSMsQNAVDESb/MZx2VgPsn5aDl1h4kio=; b=Lh8hVH153Ba4o+BtsWnbXuidB7ETpiwww0VLQ2lZdSMNcPiSM8ID7riRMedvwzjapkgYZk uOdc8vjdeEBQP4KiBI7u3HETAn2CxcHiE+lvF1NUTE8FsN2FeEVVvGvvtd50SQLDnCqhii PS8ycecsh9N8w77nabtV6c0OWWwLEdPldGshY1kthIMSeMlsqzK2PB1+FPTVQ38gvRaCKK 6GbBudUa0+L2PHLSSzIYv06E8PNLN/oR1GM+dfclLy+D5RXSPWCwQS1VvCbVXVmrstqQce 0CaqOKUOhAkMEiRgKOWX5xgFonvZgfwD4GUhbSTxrKCX1OYV2NwW5hVH4Q4+Qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727302752; a=rsa-sha256; cv=none; b=XtmkoTWaYgLjIX68OXnEvCUD6jlfSeN/SbvtOS6cTKwE3KHSAL0OdUJKVP1knCEvly1bg5 9RhR8ZsAxRL376+J9J7jVIP6QYnau56sm2xxYh1uwxI7Za8Mf6US1tJuwC5XAOumrpQrsx MtAA57C3jQMPaJYW5S2sSnnv8JD6vGRBGRVfpm/n5g+5w5QAC/EHWsGI4EMv+fhEiMWn+3 28+ejyGp6ItgzVeQGqmotmxuFmiBi1tq05SpaTLkTcvfGKjlTD+mT9/hQA5mPtNuXZux49 6whwr6cB6C8ZmK4hC59r5UPW+PGNUjKzIOSPPGmMId2CfmKzCkkaSpC2CsyJGg== 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 4XDWNc4sDszWJN; Wed, 25 Sep 2024 22:19:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48PMJCIS057167; Wed, 25 Sep 2024 22:19:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48PMJCP9057164; Wed, 25 Sep 2024 22:19:12 GMT (envelope-from git) Date: Wed, 25 Sep 2024 22:19:12 GMT Message-Id: <202409252219.48PMJCP9057164@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 6a4f0c063718 - main - pci_iov: Add a device_printf if out of bus numbers 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6a4f0c063718781c5e3eddbeff0da7b89d290d1e Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=6a4f0c063718781c5e3eddbeff0da7b89d290d1e commit 6a4f0c063718781c5e3eddbeff0da7b89d290d1e Author: Val Packett AuthorDate: 2024-09-25 22:17:16 +0000 Commit: Kevin Bowling CommitDate: 2024-09-25 22:17:16 +0000 pci_iov: Add a device_printf if out of bus numbers Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D20591 --- sys/dev/pci/pci_iov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/pci_iov.c b/sys/dev/pci/pci_iov.c index 1f1138b2d336..31bbb74e791f 100644 --- a/sys/dev/pci/pci_iov.c +++ b/sys/dev/pci/pci_iov.c @@ -736,6 +736,7 @@ pci_iov_config(struct cdev *cdev, struct pci_iov_arg *arg) /* We don't yet support allocating extra bus numbers for VFs. */ if (pci_get_bus(dev) != PCI_RID2BUS(last_rid)) { + device_printf(dev, "not enough PCIe bus numbers for VFs\n"); error = ENOSPC; goto out; }