摘要:https://github.com/awilliam/tests/blob/master/vfio-iommu-map-unmap.c #include <errno.h> #include <libgen.h> #include <fcntl.h> #include <stdio.h> #inc
阅读全文
摘要:https://www.codeleading.com/article/67454397455/ https://blog.csdn.net/weixin_43503508/article/details/107924027 static const struct dma_map_ops iommu
阅读全文
摘要:https://blog.csdn.net/Jmilk/article/details/106007926 打开 dpdk-18.08/drivers/bus/pci/linux/pci.c 可以看到以下内容: #define PCI_MAX_RESOURCE 6 /* * PCI 扫描文件系统下的
阅读全文
摘要:[root@localhost dpdk-19.11]# lshw -c network -businfo Bus info Device Class Description pci@0000:05:00.0 enp5s0 network Hi1822 Family (2*25GE) pci@000
阅读全文
摘要:[root@localhost ring]# ls -al /sys/kernel/iommu_groups total 0 drwxr-xr-x. 39 root root 0 Sep 11 05:11 . drwxr-xr-x. 10 root root 0 Sep 11 05:02 .. dr
阅读全文
摘要:BAR寄存器: Base Address Register0~5:即BAR寄存器,保存PCI设备使用的地址空间的基地址,保存设备在PCI总线域中的地址,每个设备最多可以有6个基址空间; PCI设备复位之后,存放PCI设备需要使用的基地址空间大小,该空间是I /O空间还是存储器空间等信息; 软件对PC
阅读全文
摘要:[root@localhost ~]# lshw -c network -businfo Bus info Device Class Description pci@0000:05:00.0 network Hi1822 Family (2*25GE) pci@0000:06:00.0 networ
阅读全文
摘要:-x 以十六进制显示 PCI 配置空间 (configuration space) 的前64个字节映像 (标准头部信息)。此参数对调试驱动和 lspci 本身很有用。 -xxx 以十六进制显示所有 PCI 配置空间的映像。此选项只有 root 可用,并且很多 PCI 设备在你试图读取配置空间的未定义
阅读全文
摘要:Igb_uio内核驱动 Igb_uio驱动主要做的就是注册一个pci设备。但是igbuio_pci_driver对应的保存pci设备信息的id_table指针为空,这样在内核注册此pci设备时,会找不到匹配的设备,就不会调用igb_uio驱动中的探测probe函数,只会在/sys目录下创建Igb_u
阅读全文
摘要:A PCI/PCI-Express Primer Part 3: Let’s Play Note: This is part three of a three-part blog series. Part one is available here and part two is available
阅读全文