From nobody Sun Sep 06 00:14:02 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 4hcrKR07ssz6rMKs for ; Sun, 06 Sep 2026 00:14:03 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hcrKQ67x6z3JZB for ; Sun, 06 Sep 2026 00:14:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788653642; 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=Afavarzug231eUMy8xw5RcwmU91NDwyAgVp/RmFMlds=; b=HKaPjOZ1Msqa0P4o+fWSodZ2/ZQfrxL135DVKh9FSYHwixUTvNQZmT/fErfk4uvNs9Yl98 3/lwYjJnCRSbcISQV7qQq1T/NOjkmXy5tqxrvciE285kChJCAcgtJy+6MJJtIncUZq2SvZ Lk+VIOnJFkLesHzeUszBUN42Rx+EwBLhB1k8GlUO1p3IX1tv7YD+y6Kw5j9EZ17hPlKKDU EHaPNLNJ9/MycyOohSmOLycwjLyRK1o+wHnZdSg7wDLsZmb9C6mmKdhQFihmc03UjKCPFv /jGBQetwgFa13zRPYYABfu/HgaXToZWmV/ditcqEFIuF3B9y90njav5uSICr7g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788653642; a=rsa-sha256; cv=none; b=ZIW50oZa4pB3s38lnqGeHaq3ThCzzIUBt+f0iGj0I0nr98ie5xahV4YPDh8PzXX1m4B7FL JkJkHo0GwQc1rYHDhoUdenAfFfULlZhCRitwFxey8M1KvgXQ0X6bAqFzjSMN5o6PLPGmgD 3sijHhOXLpAT08iIMNosa2YREu4Z+pZ2Rkumb45fDNLG/ajIf27u4cu6QcO51saVZy26Nz ieBdzzjmBvKxCcHaTLq+crmLtbmgQQ7TqnXd08BT142qHZR+jdRDYoH6QlC81dK5xgy5ta 6fppo61qz2qywvCRssvtsBXOHYvOOLzC2O1xcxHwbBezLgBFUfKW0W8TAIS7kA== 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=1788653642; 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=Afavarzug231eUMy8xw5RcwmU91NDwyAgVp/RmFMlds=; b=t2ZIuQPB6+Tc75P9FBPre3APtFyY82Sy2NEQlQ/vWD29z0SFluqWhyQC6PdWHN3KV4s0Ll urqvBwhUbZK78DpZLkVjCpStOP1U7P9q+maZ9LAFDu5dPrG+Xk7dlrY/dcW10+8Q/GkRCt Ag3Fn+8oiFOMRcxeaLnBzJ17OtxJ1A43MSvmA/TQlFNcikhv6Q7sRDjavsRJQbVRvpl/Iq VEQt68KiAw3pS1LtanFvCAJk15ekWf26FnddU5QXELN/VbEItR2T1jAJO9e27mQDt0k/AS EX7iKylyIo9fedFUj0+w2z3PaSEd9+WZ33SKLxnh8dg99yoyJ6U91ragc7QYPg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hcrKQ4xDlz16q5 for ; Sun, 06 Sep 2026 00:14:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 30905 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 06 Sep 2026 00:14:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 4dc810b5ff5b - main - pciconf: extend tree mode to also print numerical IDs 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4dc810b5ff5b3e0a88575269205a1eb88b70e4d0 Auto-Submitted: auto-generated Date: Sun, 06 Sep 2026 00:14:02 +0000 Message-Id: <6a9cb04a.30905.7aa92316@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4dc810b5ff5b3e0a88575269205a1eb88b70e4d0 commit 4dc810b5ff5b3e0a88575269205a1eb88b70e4d0 Author: Bjoern A. Zeeb AuthorDate: 2026-04-03 21:37:45 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-09-06 00:12:47 +0000 pciconf: extend tree mode to also print numerical IDs Also print the vendor/device and subvendor/subdevice IDs in addition to any strings from the database found if the -v flag is given more than once. This helps with device identification if the strings resolve to identical values for entire product families as well as when the exact card cannot be determined from the string. In theory a second call to pciconf could present that information in non-tree mode but that kind-of defeats the purpose. Reviewed by: jhb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D56248 --- usr.sbin/pciconf/pciconf.8 | 4 +++- usr.sbin/pciconf/pciconf.c | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pciconf/pciconf.8 b/usr.sbin/pciconf/pciconf.8 index acb5fc4d039d..1c9be4e817ae 100644 --- a/usr.sbin/pciconf/pciconf.8 +++ b/usr.sbin/pciconf/pciconf.8 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 24, 2026 +.Dd September 5, 2026 .Dt PCICONF 8 .Os .Sh NAME @@ -313,6 +313,8 @@ the device name or PCI selector is followed by the device's vendor and device strings from the vendor/device information database. If an identification string is not found in the database, the ID register values are output instead. +If the option is specified twice, the vendor, device, subvendor, and +subdevice IDs are displayed in addition to the found strings. .Ss Device Information Modes With the .Fl a diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index f3c6a413826f..581a0cb3ff85 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -185,7 +185,7 @@ main(int argc, char **argv) break; case 'v': - verbose = 1; + verbose++; break; case 'V': @@ -523,6 +523,13 @@ print_tree_entry(struct pci_tree_entry *e, const char *indent, bool last, TAILQ_FOREACH(di, &vi->devs, link) { if (di->id == p->pc_device) { printf(" %s", di->desc); + if (verbose > 1) + printf(" [0x%04x:0x%04x " + "0x%04x:0x%04x]", + p->pc_vendor, + p->pc_device, + p->pc_subvendor, + p->pc_subdevice); break; } }