Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2026 13:21:08 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 14b8a27883c1 - main - pciconf: Add a tree mode
Message-ID:  <98d8aa2f-a312-4b33-afca-5e83d90e4bf7@FreeBSD.org>
In-Reply-To: <69b04ca7.43a7d.58a4e367@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

On 3/10/26 12:53, John Baldwin wrote:
> The branch main has been updated by jhb:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=14b8a27883c15d3add3114f855eff7c6bda1b015
> 
> commit 14b8a27883c15d3add3114f855eff7c6bda1b015
> Author:     John Baldwin <jhb@FreeBSD.org>
> AuthorDate: 2026-03-10 16:51:00 +0000
> Commit:     John Baldwin <jhb@FreeBSD.org>
> CommitDate: 2026-03-10 16:51:00 +0000
> 
>      pciconf: Add a tree mode
>      
>      This lists PCI devices in a hierarchy showing the parent/child
>      relationship of PCI devices and bridges.  While this is inspired by
>      lspci -t output, the format is closer to ps -d and also prefers using
>      new-bus device names when possible.  If a device does not have a
>      driver, the PCI selector is output in place of the device name.
>      
>      When the -v flag is given, the vendor and device ID strings are output
>      after the device name.  If a string for an ID isn't found, the hex ID
>      values are output instead.
>      
>      Reviewed by:    imp
>      Sponsored by:   Chelsio Communications
>      Differential Revision:  https://reviews.freebsd.org/D55774

I did play with enabling some of other list options like -b and -B to output
as indented under each node in the tree.  If there is a desire for that, I could
add it.  I found it a bit distracting when I prototyped it.  OTOH, it might be
useful for -c at least.  One of the things I think is helpful in this view is
that you can easily see the PCI bridge that is the upstream port of a PCI-e
link connecting to a leaf device.

-- 
John Baldwin



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98d8aa2f-a312-4b33-afca-5e83d90e4bf7>