From nobody Fri Feb 9 18:44:27 2024 X-Original-To: dev-commits-src-main@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 4TWjSW6mCLz5B7ts; Fri, 9 Feb 2024 18:44:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TWjSW58XHz4ftC; Fri, 9 Feb 2024 18:44:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707504267; 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=ybLcRL6IfQDD7eA6zA3ai4nCYgFRYPbw0d7OzXn1Odc=; b=IW1eb68mJFJJO6hX5cLUdnQdCOlk1ynXcOA199U+FdM0phaW5ejbLyKvRamspq7FvBj7Tz UYGF3Dx46iZnYDyfGR8XrbhQoJabvl18bIvqa5a7KDeKSclGvKZeBYKQq90V3r4WhhvIf3 0XDzqdVqvNDeS59hQRDnqP8ut6D9iy92TDnf+Y8idj4o4XphZVdk+kXut36r9loqTV9iQl jPtEhCIZ1S/jtztXQf2/1HoGrhtAwOAhlMS8Q+Q4gH9JLYUXAXiRYIfuVTXvwb7tMpAo63 SiKK7pBh5DCDjntkZlTD+FUo5uPJZL/n4Gjjd/F9m3UaqCFGREJ4yq1lvSguaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707504267; 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=ybLcRL6IfQDD7eA6zA3ai4nCYgFRYPbw0d7OzXn1Odc=; b=GBOHRtxON/j7MyQ0GOa4NKwTskaXYVAxAaoxjbG7XLlQxM7U918OtatUZ7F4O7JVqiBwNv HrrVWou3CPesLhPBxOGesoZ2ehM7SojeVdfbNumxZKQ2sA7SpRo9vr63muyOGioJf1rfAn 85KeCKlVJcFhteyWgJkKihXbrCGKWoNGUB8nZjwb4NluGgZRHop/uESAHJg0NvzpNTC//U 8lp86c3TsQe7MWKNSrMo7ILMsx9L6l8JfASBvXVPY2+7yvv2o7kF40cZT/Mq0Nkk6QrEDW 8BTx/3SmfsHqtd3QOc0qgjWhEOmGp5NFV3Awn245ViO15vtTkB2uH/5ejkmuJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707504267; a=rsa-sha256; cv=none; b=UVpEReTLVVDfAVqfa4CYYrxrR7zMAMldBu1rLpG3p64wM3uewcddqB43pf3ijDHE7cXUB1 zCx1AMgp6O+7sc+Dvn8UZBGPgUwLq42fXCrTYhhbCCI7IM1LIlZifsm8Cjtx5Mp5xL39o7 nanbhDfGah1Kzu1nlow9PmdWvFmvwULqf8nfXT6sftxdn75Zo6e8AkI2BDX/ZWRFuuuHuk agYVolTaWerJvZ2ZRnGIkaHJMghTfPh+D2whCPZpdMvVyWjYejEt7vhOtPkJfbItACcc7N sMO8sDQAfQV3BgSYDlw4Xbh5S0wPc7xMh0Ey8kRFUBKhbPegEv3W5ZucwnoqHA== 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 4TWjSW4Ft5zkmM; Fri, 9 Feb 2024 18:44:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 419IiRUU054920; Fri, 9 Feb 2024 18:44:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 419IiRZ6054917; Fri, 9 Feb 2024 18:44:27 GMT (envelope-from git) Date: Fri, 9 Feb 2024 18:44:27 GMT Message-Id: <202402091844.419IiRZ6054917@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 36efc64a6bc6 - main - pcib: Allocate PCI_RES_BUS resources with RF_ACTIVE List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 36efc64a6bc6318eefd9baf88cbf511e91db80c8 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=36efc64a6bc6318eefd9baf88cbf511e91db80c8 commit 36efc64a6bc6318eefd9baf88cbf511e91db80c8 Author: John Baldwin AuthorDate: 2024-02-09 18:27:45 +0000 Commit: John Baldwin CommitDate: 2024-02-09 18:27:45 +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 --- 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