版权声明:转载请关注我的公众号-青儿创客基地 https://blog.csdn.net/Zhu_Zhu_2009/article/details/89084729
参考
PCI device (64bit memory problem)
PCIe link doesn’t come up with XIO2001 PCI bridge on iMX6Q custom board
p2020 PCIe linux kernel module reads 0xffffffff on BARs
LS1021A PCIe Link speed is Gen1 (2.5GB) not Gen2 (5GB)
PCI-E Switch not normal working on LS1012A
LS2085A: Devices behind PCIe Switch not working
T2080 : Question for PCIE errors
RCW
使用QCVS生成即可,uboot和内核默认配置就可以使用。
linux
扫描设备,
root@t2080rdb:~# lspci -tv
-[0000:00]---00.0-[01-0f]----00.0-[02-0f]--+-01.0-[03]--
+-02.0-[04]--
+-03.0-[05]--
+-04.0-[06]----00.0 Device 0731:7038
+-05.0-[07]--
+-08.0-[08]----00.0 Samsung Electronics Co Ltd Device a808
+-09.0-[09]--
+-0a.0-[0a]----00.0 Samsung Electronics Co Ltd Device a804
+-0b.0-[0b]--
+-0c.0-[0c]----00.0 Samsung Electronics Co Ltd Device a804
+-0d.0-[0d]--
+-0e.0-[0e]----00.0 Samsung Electronics Co Ltd Device a804
\-0f.0-[0f]--
关闭D3状态切换,
root@t2080rdb:~# echo 1 > /sys/module/vfio_pci/parameters/disable_idle_d3
解绑驱动,
root@t2080rdb:~# echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
绑定vfio,
root@t2080rdb:~# echo 0001:01:00.0 > /sys/bus/pci/drivers/vfio-pci/bind
测试
测试条件,