Opened 13 years ago

Closed 6 years ago

Last modified 6 years ago

#356 closed enhancement (fixed)

PCI info utility

Reported by: Jiri Svoboda Owned by: Jiri Svoboda
Priority: minor Milestone: 0.9.1
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 13 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 13 years ago.
srv/dd in Lenka's branch (qemu -cdrom image.iso -vga vmware -usb)

Download all attachments as: .zip

Change History (12)

comment:1 by Jakub Jermář, 13 years ago

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

in reply to:  1 comment:2 by Vojtech Horky, 13 years ago

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?

by Vojtech Horky, 13 years ago

Attachment: lspci_dd_rev81.png added

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

comment:3 by Jakub Jermář, 13 years ago

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 by Vojtech Horky, 13 years ago

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.

by Vojtech Horky, 13 years ago

Attachment: srvdd_dd_rev81.png added

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

comment:5 by Jakub Jermář, 13 years ago

Milestone: 0.5.00.5.1

comment:6 by Jakub Jermář, 10 years ago

Milestone: 0.5.10.5.2

comment:7 by Jakub Jermář, 8 years ago

Milestone: 0.6.1

comment:8 by Jiri Svoboda, 6 years ago

Owner: set to Jiri Svoboda
Status: newaccepted

comment:9 by Jiri Svoboda, 6 years ago

Resolution: fixed
Status: acceptedclosed

I added a utility named pci and corresponding backend in pciintel driver, plus IPC protocol in commit 7acd787ef6db58d28e222cd14600149ac8c9ff72. It is basic, but it works.

comment:10 by Jakub Jermář, 6 years ago

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