Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2024 19:56:03 GMT
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 37bea3b062ea - stable/13 - pci_iov: Add a device_printf if out of bus numbers
Message-ID:  <202410021956.492Ju30F061666@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=37bea3b062eaeff8c015d628981ab97cc9c90e56

commit 37bea3b062eaeff8c015d628981ab97cc9c90e56
Author:     Val Packett <val@packett.cool>
AuthorDate: 2024-09-25 22:17:16 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-10-02 19:55:48 +0000

    pci_iov: Add a device_printf if out of bus numbers
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D20591
    
    (cherry picked from commit 6a4f0c063718781c5e3eddbeff0da7b89d290d1e)
---
 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 db7210cb729a..90e4e8e5d0b7 100644
--- a/sys/dev/pci/pci_iov.c
+++ b/sys/dev/pci/pci_iov.c
@@ -732,6 +732,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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410021956.492Ju30F061666>