From nobody Wed Oct 02 19:53:23 2024 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 4XJlq738jdz5Y1Ps; Wed, 02 Oct 2024 19:53: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJlq71zgMz4Y1D; Wed, 2 Oct 2024 19:53:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898803; 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=YsmA+nL/XvHXHuIotDlu4bVlKRdA8pzUhfCZ5YNZm/I=; b=iiNqZBb+M9SWDbDLmkEhPGza0jnaYygZ3oIoWD56PU3SKH6EBrYemjzrNVcB+njX7DwZlh 3uf0A5KR/TsCW83Jvgrkd2zNK8Tx6SADehfvZEkJM6PKCogo3dXJa3tm7bcF8GUepzcR+r ZGqQFdh2tWJ7coimfqHBstv6aIRvTXbKpOY5m389mPtfjPjBCDW7MV63MSITpuaNqZksKc rSgiGFzdavTNjS8pdOxLUxw6QUx+UowXIy7vhbzENs9ZPYlnDXwqnpeqLYRM1yajPurasc LUSRz1W9Z9ZHalvr0TnxvUATGLo7Z/WoWjLlW+ZVDSOL/yIaOjZsme0wnONBVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898803; 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=YsmA+nL/XvHXHuIotDlu4bVlKRdA8pzUhfCZ5YNZm/I=; b=fuCQxCNJvDhXvHZoo6ar3YPYyDTbQxshZuOGztlKNgjQeNIyKJZOl8nRM+U/oUtq5IjlTZ 0Pozta8HoQ5kQaw/nxa1anlMzB7jqCELqocJqSnBTe/FpGs1GTImm2EzTlLERbQlUsK+uv v8/hPllnqcWjErtBnWm5mkN6hwevcHefNppGuFzKIiUzu0JvcQd+mrV19N95BlkHN76LhH LYQHc2smjvdo8lsdR4ZgTpD7rFlnxRlFElyNP+p1eCt42ZC38SSBkzJFwwPQARcdnZK74W /nQTGuGaVKnY0iZT3JhW9Bpq+X3euI0pFbjKFl/y5GH30xjJ65AVXowgPifrkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727898803; a=rsa-sha256; cv=none; b=R4Igkr7gXwdC/j3O/mUlnDW8xsLW3JCeB6v+01UIbnlTP8WPduoODqDkKAr4nhwZ0Mf2eQ BuykpuMU8MaTbRxmlraSc5+aEjsk2OVLBhk5d/5UqO/I6SCFi8WmcX1XEm+KWcl9axG2Bz FpQ1JpKcz/I7lft5sASn3CmgxArm4Y3TONqIKgAdf++n8xkiY48llH8jF361ECuLZScLQJ 4qY7Hi8L3AfnQ2QQfSxCebHb0pFwp/1sRu7gUqy9cUCQSHLhD3TNQpRpaHZ6BIAZ/lqAqO h6axqJ3+iM6OOw4hEIXg2A4UoJ9ek+DYL7labjTIpCHSmFXsrwrqrXI7kfeCuA== 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 4XJlq71X41zKWW; Wed, 2 Oct 2024 19:53:23 +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 492JrN9a060720; Wed, 2 Oct 2024 19:53:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 492JrNhn060717; Wed, 2 Oct 2024 19:53:23 GMT (envelope-from git) Date: Wed, 2 Oct 2024 19:53:23 GMT Message-Id: <202410021953.492JrNhn060717@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: b3834306579f - stable/14 - pci_iov: Add a device_printf if out of bus numbers 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: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/14 X-Git-Reftype: branch X-Git-Commit: b3834306579f3a59338f3faed3f588b30a56317e Auto-Submitted: auto-generated The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=b3834306579f3a59338f3faed3f588b30a56317e commit b3834306579f3a59338f3faed3f588b30a56317e Author: Val Packett AuthorDate: 2024-09-25 22:17:16 +0000 Commit: Kevin Bowling CommitDate: 2024-10-02 19:52:53 +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 ff3ac0e64271..60325e8cd491 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; }