From nobody Thu Feb 27 14:16:49 2025 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 4Z3YLT3QvVz5qFrM; Thu, 27 Feb 2025 14:16:49 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z3YLT2ltgz3x9Z; Thu, 27 Feb 2025 14:16:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740665809; 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=BOQu/7inv7eHloO7QgUqS2kHVvV1v9ihzLkeTpI8cvQ=; b=qnxp1k5Rld1AosUu/ultVxNM3nVDmZfrxuTJRkwM0ss4mELD2yQStVSnck1cc9hhU9yO3k bNx+E6a090z7h025dAJtmBpuHP8l+gSujYKP6Ys+kmEiy7ktsZJw3iflDPpFy0EHwEw2Wo aW/9RXKfTDWDF80SfgWZKnwWIepG5UXXGUIzcGohm+87tq9AUKy/t1yXDKnnlo9Sn5eYQf sL7DZRmsfQ1nBYHLpsCIcMlefSkVLTwTddhm96uj1OzgwXzXzefX8ijkemECgEcobvnvQV 5Uvr6jRl7Ne/7a8uxMN7UZ68fMSccG4At0NhlnlWmqsA7ve02mflaEUI8X7hQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740665809; a=rsa-sha256; cv=none; b=WKGVlaMEcadmk4DeWgzJqGuYYFgiM1g7xkOgQsPffdWOnx/fcfGZERwXu52z2HuI4hAcdx xDCosJ2iF6M0xZU7SVwlSbVrOxgQ85Nq6r+utCluPxsX6LhCX4bgizYyi7tv2EMahfr1VT 4japDZGZepVqRNQ/kf+tgyoEf0so+nCFroZ7isRkfdFw0aPufBeTjutXrmfWfI7j+4Hnqe 6PF1fwsuiOt8ThO5EYvTYjQrLhUmApEZcgdPCr3qT5oPGbMdkpjm6T4cZjCaQodseaK3bb Y3ksVLk70EnPTZQPo/SvMGPSqIIriKbHcYv2xV4i30VEuRDMHp6Aipj2D4e+6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740665809; 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=BOQu/7inv7eHloO7QgUqS2kHVvV1v9ihzLkeTpI8cvQ=; b=RRBszEUwy3Oy1JioGfuVf2e0/g7W7LeRElyr5C47wa9TDYAevpgtbvqCriYcry+F8tN52c VYUb40MPir3rhmdkQk0sOUO6MpZUOd8m+6ntzEcblpIxvOVHIKG3se73pW6v9m12NSLxMZ qx3L+1cmh6tPXQi6RjH8U8YUwI/tEJDHp6/4Kq10XbnrMhy3QYL7ce1OqXnbXaGA/z3hFO mn2l5uaF//sMQoGBQUEWb6ULanA7oIPcbTeSZNRLjpti77N8s6CiThoZvZX4Bdsj4EJOul eOR1D0EsIFiaqFWG9gDeESD+2W5kvuVprObr0QFUQsO1re122W/EgPp8yZTaBQ== 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 4Z3YLT24zlzlsS; Thu, 27 Feb 2025 14:16:49 +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 51REGnjx016193; Thu, 27 Feb 2025 14:16:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51REGnLk016190; Thu, 27 Feb 2025 14:16:49 GMT (envelope-from git) Date: Thu, 27 Feb 2025 14:16:49 GMT Message-Id: <202502271416.51REGnLk016190@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: df96f1db4a20 - stable/14 - pcib: Allocate PCI_RES_BUS resources with RF_ACTIVE 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: df96f1db4a201ccf97d6655b6f3b3254190c5311 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=df96f1db4a201ccf97d6655b6f3b3254190c5311 commit df96f1db4a201ccf97d6655b6f3b3254190c5311 Author: John Baldwin AuthorDate: 2024-02-09 18:27:45 +0000 Commit: John Baldwin CommitDate: 2025-02-27 13:09:21 +0000 pcib: Allocate PCI_RES_BUS resources with RF_ACTIVE The allocated bus numbers are in use so should be activated when allocated. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43689 (cherry picked from commit 36efc64a6bc6318eefd9baf88cbf511e91db80c8) --- sys/dev/pci/pci_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index 2659e64f364d..5286d4e82e53 100644 --- a/sys/dev/pci/pci_pci.c +++ b/sys/dev/pci/pci_pci.c @@ -654,14 +654,14 @@ pcib_setup_secbus(device_t dev, struct pcib_secbus *bus, int min_count) */ rid = 0; bus->res = bus_alloc_resource_anywhere(dev, PCI_RES_BUS, &rid, - min_count, 0); + min_count, RF_ACTIVE); if (bus->res == NULL) { /* * Fall back to just allocating a range of a single bus * number. */ bus->res = bus_alloc_resource_anywhere(dev, PCI_RES_BUS, &rid, - 1, 0); + 1, RF_ACTIVE); } else if (rman_get_size(bus->res) < min_count) /* * Attempt to grow the existing range to satisfy the