From nobody Fri Apr 24 17:56:21 2026 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 4g2LHT6yydz6ZxRX for ; Fri, 24 Apr 2026 17:56:21 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g2LHT1czNz3qDx for ; Fri, 24 Apr 2026 17:56:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777053381; 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=iPcU4PRPm909teKpBA0DCI5OlAVuxOa65HRl9L8Ils4=; b=UToM9MOux3HpGxffD7AYWrxi/K2KuYt7wDVw67NxpIjL0VOniIC4GkXLJf1AsCkOPjiqlr zSnRXjtQhWxzz8noRun1oNaVFHovY/iVEbh8far2kNOZ90kuBg9qC0jCOHYOFkQK6y+yQS vlmuL8u/42ZIUd+y6rzNq0zUL43QxH/mAKiFq0n3a46ZYk40aFUf8AdSe0lfaiRBc0VLrx UJk/3UXwcE0tIaSiQxDuR90udHw0+sd7ujck4h3LBcvG9hlCOFRhlR3kWj29UHGrFWsqQO TC0+nfZa9AhME9tfMtYFIg6XRPxtyHIPhbHdclF0ILEe87d+A4tPIWCXst6jgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777053381; a=rsa-sha256; cv=none; b=Tq8gXATH6vGcSoZyww4l+jWC74OryakaEYaPPZP6QOSq74YKe0d8y3t+qiRVqoIxJ27bud SsHS5P1aeXohXuh1nPB2DxaYZsSKg5WBLygvXmg1FaR6M+Lnk/ETMKQP/2iODihzmlrXFL gVHJSkk/P12sXwlN7YG+C5j9ofdFxNs1IAeJGGdvPGUI4PEuF5Nw3c++ih3ZQiL5fCRJ+Y cFilYND/06X8Wv2bDIzTfZw0ogxCIUvtw47SRNEgWhEKqBAfMc95BAkFVQ2JABXDy/+bP/ V1so8c+SXjWULyCZFkovIpYcmUldCjiWNj/6eCjcTvyY4J6Qvf3Gtwu8FILAaA== 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=1777053381; 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=iPcU4PRPm909teKpBA0DCI5OlAVuxOa65HRl9L8Ils4=; b=cgN0S994p4l8OP3iR6dqIcH5dDgU2FLqviyx2olGaqFHeMnc4JkCzu4Kuq0BrxV8HQ7bXV IgHv6UoWx5OFk2VuzVVSBidulu3mZO/Xc7TtNf820MNjB4b7GXWWKhNE21h0ZhzlDcN4FQ 7A4cT77sz7lpYmKblT5SkWIpe7W1IJnv6iHU81wpwOK6hJ8hQmTaQ9y/83x3RFTyZX4ZO2 MdA2Ayel14JtIrr+tJ/lcwAdGhsw6rgQELYx5M/Q40rD0AXNDtmECA+6L8EetEN+00Rkf3 ndDNOqk4z+HhEOqqVVp7vyrsKZBNLgqkbjqMk7yvmbZ+y6KYrqWU0LC/3cWeuw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g2LHT0xsRz1CnD for ; Fri, 24 Apr 2026 17:56:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1de1d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 24 Apr 2026 17:56:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 5daad074124c - stable/15 - pciconf: Use the exported values of bus numbers for PCI bridges 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 5daad074124cc07bfd1c437d95ec5ad021d2eabf Auto-Submitted: auto-generated Date: Fri, 24 Apr 2026 17:56:21 +0000 Message-Id: <69ebaec5.1de1d.70bf2772@gitrepo.freebsd.org> The branch stable/15 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5daad074124cc07bfd1c437d95ec5ad021d2eabf commit 5daad074124cc07bfd1c437d95ec5ad021d2eabf Author: John Baldwin AuthorDate: 2026-03-10 16:50:08 +0000 Commit: John Baldwin CommitDate: 2026-04-24 17:33:53 +0000 pciconf: Use the exported values of bus numbers for PCI bridges Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D55772 (cherry picked from commit 9a1394957c3054c24995d684e8bc26878702dc6b) --- usr.sbin/pciconf/pciconf.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index 6c26621ae186..48520687197b 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -339,13 +339,9 @@ list_devs(const char *name, int verbose, int bars, int bridge, int caps, } static void -print_bus_range(int fd, struct pci_conf *p, int secreg, int subreg) +print_bus_range(struct pci_conf *p) { - uint8_t secbus, subbus; - - secbus = read_config(fd, &p->pc_sel, secreg, 1); - subbus = read_config(fd, &p->pc_sel, subreg, 1); - printf(" bus range = %u-%u\n", secbus, subbus); + printf(" bus range = %u-%u\n", p->pc_secbus, p->pc_subbus); } static void @@ -511,11 +507,11 @@ list_bridge(int fd, struct pci_conf *p) switch (p->pc_hdr & PCIM_HDRTYPE) { case PCIM_HDRTYPE_BRIDGE: - print_bus_range(fd, p, PCIR_SECBUS_1, PCIR_SUBBUS_1); + print_bus_range(p); print_bridge_windows(fd, p); break; case PCIM_HDRTYPE_CARDBUS: - print_bus_range(fd, p, PCIR_SECBUS_2, PCIR_SUBBUS_2); + print_bus_range(p); print_cardbus_windows(fd, p); break; }