27
votes
How to Reset/Cycle Power to a PCIe Device?
Resets in PCI express are a bit complex. There are two main types of resets - conventional reset, and function-level reset. There are also two types of conventional resets, fundamental resets and ...
12
votes
Accepted
Is there a command that can show if a Thunderbolt port is present on the hardware?
On my system, at least, with Thunderbolt 3 it's invisible to lshw & lsusb if nothing's plugged into it (I do see the USB3 port). I have a Clevo N131WU laptop, which you can buy from vendors such ...
10
votes
What causes this? pcieport 0000:00:03.0: PCIe Bus Error: AER / Bad TLP
I get the same errors (Bad TLP associated with device 8086:6f08). I have X99 Deluxe II, Samsung 960 pro, Nvidia 1080 ti. These problems seem to be associated with X99 chipset and M.2 device, like ...
10
votes
Direct PCIe to PCIe Connection For Communications
Indeed you would get better performance with PCIe as opposed to COM ports... with an exceptionally fast COM port you might get a transfer speed of 0.92 Mbps, compared to 7880 Mbps you might achieve ...
9
votes
Reset a PCI Device in Linux
The problem with the solutions above is that they require the cooperativity of the device; however in most scenarios the reason to reset it is exactly its non-cooperativity.
However, as it is ...
8
votes
What lspci command line switch will limit output to just "Ethernet" devices?
If you'll remove the * and extend the class value to 4 digits the required result will be achived
$ lspci -d ::0200
81:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev ...
8
votes
How to check how many lanes are used by the PCIe card?
I use the following commands. lspci -vv provides verbose output. It's parsed with grep to only view "Width" as follows:
lspci -vvv | egrep "0[0-9]:|Width\ "
03:00.0 Ethernet ...
8
votes
Accepted
Setting BUSID in xorg.conf
In your lspci output, 01:00.0 means bus 1, device 0, function 0, which maps to a BusID specifier of PCI:1:0:0 (without specifying the domain):
BusID "PCI:1:0:0"
See the xorg.conf documentation for ...
7
votes
Accepted
PCI-STUB vs VFIO-PCI
PCI-STUB is a dummy driver. It was originally developed because
the original KVM device assignment didn't actually bind to the assigned
device as a host driver, it simply grabbed the device and ...
7
votes
Is there a command that can show if a Thunderbolt port is present on the hardware?
On Mac hardware, Thunderbolt hot-plugging is primarily managed by OS and so the Thunderbolt controller is always visible.
But on x86 PC hardware, Thunderbolt (at least Thunderbolt 1) tends to be ...
6
votes
How to see PCIe device info on FreeBSD?
Install the pciutils package which provide the lspci command:
pkg install pciutils
6
votes
Accepted
PCI hardware access speeds - Kernel vs user space
There is a huge amount of overhead in the shell calling external commands to do anything. Fork/exec has a relatively high overhead.
Just moving from a shell script to a userspace C program using the ...
6
votes
Accepted
libvirtd: No more available PCI slots
I was able to add multiple PCI passthrough device using the following approach.
If you do the attach-interface command with --config only (remove the
--live), libvirt will be able to automatically add ...
6
votes
Setting BUSID in xorg.conf
For PCI/AGP cards, the bus-id string has the form PCI:bus@domain:device:function (e.g., “PCI:1@0:0:0” might be appropriate for an AGP card).
But now you're wondering about the domain, and the xorg....
6
votes
How can I find out what Gen of NVME my machine supports (what PCI express version)?
The two parameters you're looking for are the PCI Express Version (or Generation) and the number of lanes. Here's a summary of PCIe releases:
----------------------------------------
Generation ...
5
votes
How to find the pci slot of an usb controller in Linux?
There is a tool lsusb.py in usbutils (since version 002) which shows this information right away:
strohel@mat480s ~ $ lsusb.py -ciu
usb1 1d6b:0002 09 1IF [USB 2.00, 480 Mbps, 0mA] (...
5
votes
Accepted
How to interpret lspci -tvv output
Bus can be connected to other buses, and cascade; in your case, you have a root device (no longer visible in the diagram), to which a succession of bridges (with device numbers 00) connect successive ...
5
votes
Accepted
NVMe: Unable to change power state from D3cold to D0, device inaccessible
I found a solution. By removing the device from the PCIe tree and then rescanning the bus, it comes back up:
root@rtrbox:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 ...
4
votes
What causes this? pcieport 0000:00:03.0: PCIe Bus Error: AER / Bad TLP
I had a similar experience with an Nvidia RTX2070 and a ROG STRIX B450-F GAMING motherboard.
I solved configuring the specific supported PCIe generation type supported by the Nvidia card (GEN 2) in ...
4
votes
Accepted
How to access all 8 serial ports on my 8-port serial PCI card
After some in-depth research, I got a custom driver from here:
www.sunix.com/en/download.php?pid=970&file=driver&file_link=download/driver/2016/20160706173626_snx_V2.0.4.2.tar.gz
For some ...
4
votes
Accepted
lsusb lists devices on different PCI controllers under the same USB hub
USB 3.0 in 5G mode isn't compatible to USB 2.0 or earlier, so the way they implemented compatibility is to use one pin pair in the same position as for USB 2.0 for legacy devices, and two new pin ...
4
votes
What lspci command line switch will limit output to just "Ethernet" devices?
To get the results you want you will need to use the pci IDs that are found here rather than the one you were using:
http://pci-ids.ucw.cz/
for instance for a vmware ethernet controller the command ...
4
votes
Accepted
Disable PCI ACS (Access Control Services)
Would you like to try this, and see if the output improves?
setpci -v -s 02:04.0 ecap_acs+6.w
setpci -v -s 02:04.0 ecap_acs+6.w=0
setpci -v -s 02:04.0 ecap_acs+6.w
EDIT 1 : Your setpci commands ...
3
votes
What causes this? pcieport 0000:00:03.0: PCIe Bus Error: AER / Bad TLP
I changed the PCIE16_3 slot Config in Bios on my x99-E to be static set to x8 mode instead of auto that is default for M.2 device support. Works fine now without TLP errors on both of my 1070GTX cards ...
3
votes
How to find the pci slot of an usb controller in Linux?
Another more GUI friendly option for those with a more visual learning style:
sudo lshw -html > /tmp/lshw.html
Then open this in a browser:
xdg-open /tmp/lshw.html # Opens in default browser
# ...
3
votes
SD reader - how to force UHS-I?
This is just a partial answer.
I managed to improve performance to around 19MB/s by doubling the clock rate.
It seems that the timing spec below can be set to more interesting values, such as "sd ...
3
votes
What causes this? pcieport 0000:00:03.0: PCIe Bus Error: AER / Bad TLP
Search your motherboard manual for "AER". You can kill the source of the problem by either correcting the specific incompatibility or disabling AER altogether. Only use this if all the error spam ...
3
votes
Accepted
How to access all 4 ports of my PCI serial card
The early PCs used to have a maximum of 4 serial ports based on the 8250 UART chip. Going over this limit was possible, but usually took either other hardware implementations or at least special ...
3
votes
Multiple M.2 NVMe SSDs on single slot using PCIe bifurcation: Set this up from Linux when BIOS does not?
I do not know if this is possible, but can suggest some avenues for further research:
The video you linked looks like it is for a previous generation of Intel processors (video date was 2010, and ...
3
votes
libvirtd: No more available PCI slots
The problem has been solved.
There is a way to solve this problem by adding PCI/PCIe bridges, but it seems to be quite complicated, and there is a lack of information.
So i found a libvirt ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pci × 231linux × 62
drivers × 33
linux-kernel × 20
kernel × 20
ubuntu × 19
virtual-machine × 17
hardware × 17
wifi × 14
debian × 11
udev × 11
kvm × 11
devices × 11
usb × 10
kernel-modules × 8
qemu × 8
power-management × 8
pci-passthrough × 8
networking × 7
arch-linux × 7
memory × 7
nvidia × 7
gpu × 7
audio × 6
hard-disk × 6