Re: ANNOUNCE: thunderbolt-utils-v0.1-rc1

From: Greg KH
Date: Tue Jul 18 2023 - 13:54:58 EST


On Tue, Jul 18, 2023 at 10:02:57PM +0530, Rajat Khandelwal wrote:
> Hi,
>
> This is an official announcement that 'thunderbolt-utils', a collection of
> user-space utilities for the TBT/USB4 subsystem is now made public for its first
> release candidate.
>
> # What is it?
>
> The utilities comprise 'lstbt', similar in lines with 'lspci' and 'lsusb',
> which polls the TBT/USB4 subsystem's information including enumerated
> retimers.
>
> The secondary component of the utilities is the goal towards providing
> a collection of available wrappers to provide the abstraction of configuring
> the subsystem in user-space. This is made possible via porting the DMA layer
> from kernel-space to user-space for the subsystem in an IOMMU-protected
> environment.

Cool, but it doesn't build as a normal user:

/usr/bin/ld: cannot open output file /usr/bin/lstbt: Permission denied

Why aren't you using autotools to properly be able to integrate into
everyone's build systems?

Also, you are shelling out to bash a lot, and as root, in this program,
are you sure that's ok?

And finally, why not add some of the USB4 stuff to usbutils? Wouldn't
that be a bit more relevant for people who use those tools already?

thanks,

greg k-h