Follow us on Google+ Follow us on Facebook Follow us on Twitter

Opened 6 years ago

Last modified 16 months ago

#356 new enhancement

PCI info utility

Reported by: Jiri Svoboda Owned by:
Priority: minor Milestone:
Component: helenos/unspecified Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

The USB team delivered two very useful utilities lsusb and usbinfo that allow listing all connected USB devices (with or without driver attached) and displaying their standard properties (vendor/device ID, descriptors, strings, configurations, interfaces, endpoints).

It would be nice to be able to do something similar for PCI, in a similar fashion to Linux lspci (e.g. lspci -vvv).

Attachments (2)

lspci_dd_rev81.png (35.5 KB) - added by Vojtech Horky 6 years ago.
lspci in Lenka's branch (qemu -cdrom image.iso -vga vmware -usb)
srvdd_dd_rev81.png (41.0 KB) - added by Vojtech Horky 6 years ago.
srv/dd in Lenka's branch (qemu -cdrom image.iso -vga vmware -usb)

Download all attachments as: .zip

Change History (9)

comment:1 Changed 6 years ago by Jakub Jermář

IIRC, there was such an utility in Lenka's DDF branch. It just did not get merged. Would be worth investigating.

comment:2 in reply to:  1 Changed 6 years ago by Vojtech Horky

Replying to jermar:

IIRC, there was such an utility in Lenka's DDF branch. It just did not get merged. Would be worth investigating.

Just checked-out last revision of Lenka's branch. It was necessary to remove -Werror in order to compile it (well, it was the easiest way). Few extra kicks were needed to compile the lspci which is not part of the normal build. It works (see screenshot).

The used library is probably taken directly from Linux and both the library and the utility are licensed under GPL. Other problem/feature is that part of the binary are PCI ids of all devices, making the executable almost 1M in size.

Question is whether we want that into mainline?

Changed 6 years ago by Vojtech Horky

Attachment: lspci_dd_rev81.png added

lspci in Lenka's branch (qemu -cdrom image.iso -vga vmware -usb)

comment:3 Changed 6 years ago by Jakub Jermář

Actually this is the lspci which once was part of the mainline and I was not referring to it.

I was rather referring to her srv/dd server, although I never saw it running nor I really know what exactly it is capable of doing. It looks like it has some code for scanning the PCI, both for Intel and Sun implementations.

comment:4 Changed 6 years ago by Vojtech Horky

Only for completeness, I am attaching another screenshot. Seems that dd was a precursor to DDF, because it also has some PCI device drivers structures. However, only serial driver is implemented (something like cat /dev/com1 would probably work, have no means to test it).

And yes, there is some PCI bus scanning for Intel and Sun.

Changed 6 years ago by Vojtech Horky

Attachment: srvdd_dd_rev81.png added

srv/dd in Lenka's branch (qemu -cdrom image.iso -vga vmware -usb)

comment:5 Changed 5 years ago by Jakub Jermář

Milestone: 0.5.00.5.1

comment:6 Changed 3 years ago by Jakub Jermář

Milestone: 0.5.10.5.2

comment:7 Changed 16 months ago by Jakub Jermář

Milestone: 0.6.1
Note: See TracTickets for help on using tickets.