User Tools

Site Tools


linux:kernel:pci_devices

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:kernel:pci_devices [2021/01/29 10:47] peterlinux:kernel:pci_devices [2022/10/08 11:37] (current) peter
Line 3: Line 3:
 The PCI standard has become the de-facto standard for system buses. The PCI standard has become the de-facto standard for system buses.
  
-Linux provide extensive support for PCI, and contains numerous drivers for network, storage and 3rd party adapters. +Linux provide extensive support for PCI, and contains numerous drivers for network, storage and 3rd party adapters.
  
 ---- ----
Line 83: Line 83:
   * **00**   : The device number.   * **00**   : The device number.
   * **.0**   : PCI device function.   * **.0**   : PCI device function.
 +
 +Vendor and device information is stored in a centralized [[http://pci-ids.ucw.cz/|PCI ID repository]], so you can figure out what a given device is by decoding the PCI data manually.
  
 </WRAP> </WRAP>
Line 235: Line 237:
 **NOTE:**  lspci displays the raw PCI identification data. **NOTE:**  lspci displays the raw PCI identification data.
 </WRAP> </WRAP>
 +
 +----
 +
 +==== Expand on one device ====
 +
 +As an example, taking this from above list:
 +
 +<code bash>
 +09:00.0 0300: 10de:1c82 (rev a1)
 +</code>
 +
 +<WRAP info>
 +**NOTE:** 
 +
 +  * 09:00.0 : Bus number (09), Device number (00) and Function (0).
 +  * 0300    : Device class.
 +  * 10de    : Vendor ID.
 +  * 1c82    : Device ID.
 +
 +Looking up the identifiers in the [[http://pci-ids.ucw.cz/|PCI ID repository]]:
 +
 +  * 0300    : Device class => Display controller.
 +  * 10de    : Vendor ID => NVIDIA Corporation.
 +  * 1c82    : Device ID => GP107 [GeForce GTX 1050 Ti].
 +
 +which matches the output from the default **lspci | tail -10**:
 +
 +<code bash>
 +09:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
 +</code>
 +</WRAP>
 +
 +----
 +
 +===== Updating the PCI identification list =====
 +
 +The lspci utility uses the pci.ids file to determine the vendor and device type.
 +
 +This file will grow as new vendors and devices are added, and can be updated automatically by running the update-pciids utility:
 +
 +<code bash>
 +/sbin/update-pciids
 +</code>
 +
 +returns:
 +
 +
 +<code bash>
 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 +                                 Dload  Upload   Total   Spent    Left  Speed
 +100  264k  100  264k    0       494k      0 --:--:-- --:--:-- --:--:--  493k
 +</code>
 +
 +----
 +
 +===== References =====
 +
 +http://pci-ids.ucw.cz/
 +
 +http://www.pcisig.com/home
 +
  
linux/kernel/pci_devices.1611917238.txt.gz · Last modified: 2021/01/29 10:47 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki