From nobody Wed Oct 02 19:56:03 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 4XJltD2g3cz5Y1Bf; Wed, 02 Oct 2024 19:56:04 +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 4XJltD0VMWz4ZKG; Wed, 2 Oct 2024 19:56:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898964; 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=E6N46ssnz8pdTNgmow0iuCgS2l/boXmhX3JvjJBOUSM=; b=fLBodcMEP5aAqX42BqdcwyWPEeu/N1c937EdSDQVku9ZeXyhPIQDzZYWyGusOKfV/ROa3d yoDQYV/7v11dqgitWpzkyCvfZAkNor+7q5hVQFeA2Mz0BHBB28ANrh+DB4e5/VawZlx6XJ 5u3+2SLZXA4Lh13m3JWH7a9Nr4PVq6m3U+PW1PPxqJrjS5T/s+l0zpZOTv5mks4n2hSABu 53lqHqeG2T4P7EaAKymWy2hv8XfUwTi7yH+/pIca6ivZKsc7C2mqejNVshZvhg1r1LYY1W LdvvxryUZs/qgTFYtKBp3xQwZklnmyUSfw2h9/FlL+K/ygvbN9AE9XsW2nr7kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898964; 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=E6N46ssnz8pdTNgmow0iuCgS2l/boXmhX3JvjJBOUSM=; b=iKmTIUN/yV/m2y6waN4a+aoy67D6wDQlcGTH/MrALJ7PgVXureZPsZavCn5US/Qq1KkxId H26Ull6Uuv+Juv1m63LFzOH8AyIyQ964RDKsUvXR/+paCwLtw6cPPst+S/9mpzVCA2PiK2 n4gXjfeSE6DB34Oe2i5GvRiy9c3gXpjmtPBUH/eSj5lEqD29B17Ug8WWmc/KNOoy/D6VqD BMydjjtMjkx9FbDkZyiHgXSEHWstGvre8701fCLOkOmsCmrSFxj++zeN2ut9xa+OYfb9xH Q66N9mrXmeKGMmUBKL3E3d0UXUudiHFJ6ju7gGuHvUoShu8AI43oQLdYWj12fQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727898964; a=rsa-sha256; cv=none; b=dgavAQBob04MnLWQV1F2bGcfVhyZZ+SardxGhC8rVWxrRwFPnahZ+yQHzC9XaxC+gdzTM1 QcmehyGFza0Ws9CVoiEiKmBcH87o8AtW9CBc264pHZ695RM9Cl5+Xuh31b/iXXaRu/MVnc AQ6I98k9gSqt6catGorNaDGblJy7d8e0wp7fINNy0ac0n8vJ1LmazK5rFDOpBJRo6ea7d1 u3IomCIssF8S791iaoCrf+2M+E9DKLXH6ILseUt7h07UuCPqX9zB6OZJ0dgpNrtR4XlLh6 B7bz3OOtYA1O/mMDJ2vzxFTVpuE9B4o2LsZ90/TBloBRnsZepkOCliwQo2ierg== 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 4XJltD06wRzKTR; Wed, 2 Oct 2024 19:56:04 +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 492Ju38I061669; Wed, 2 Oct 2024 19:56:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 492Ju30F061666; Wed, 2 Oct 2024 19:56:03 GMT (envelope-from git) Date: Wed, 2 Oct 2024 19:56:03 GMT Message-Id: <202410021956.492Ju30F061666@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 37bea3b062ea - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 37bea3b062eaeff8c015d628981ab97cc9c90e56 Auto-Submitted: auto-generated The branch stable/13 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=37bea3b062eaeff8c015d628981ab97cc9c90e56 commit 37bea3b062eaeff8c015d628981ab97cc9c90e56 Author: Val Packett AuthorDate: 2024-09-25 22:17:16 +0000 Commit: Kevin Bowling 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; }