随笔分类 -  pci

vfio-iommu-map-unmap
摘要: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 阅读全文

posted @ 2020-10-17 20:03 tycoon3 阅读(220) 评论(0) 推荐(0) 编辑

iommu_dma_mmap + mmap
摘要:https://www.codeleading.com/article/67454397455/ https://blog.csdn.net/weixin_43503508/article/details/107924027 static const struct dma_map_ops iommu 阅读全文

posted @ 2020-09-24 15:04 tycoon3 阅读(1984) 评论(0) 推荐(0) 编辑

PCIE的mmio内存映射访问机制+ 配置空间 +mmap + resource + /dev/mem
摘要:https://blog.csdn.net/Jmilk/article/details/106007926 打开 dpdk-18.08/drivers/bus/pci/linux/pci.c 可以看到以下内容: #define PCI_MAX_RESOURCE 6 /* * PCI 扫描文件系统下的 阅读全文

posted @ 2020-09-12 22:29 tycoon3 阅读(12057) 评论(1) 推荐(3) 编辑

lshw
摘要:[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 阅读全文

posted @ 2020-09-11 19:09 tycoon3 阅读(291) 评论(0) 推荐(0) 编辑

iommu dmar 和虚拟机
摘要:[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 阅读全文

posted @ 2020-09-11 17:40 tycoon3 阅读(541) 评论(0) 推荐(0) 编辑

BAR寄存器 读写
摘要:BAR寄存器: Base Address Register0~5:即BAR寄存器,保存PCI设备使用的地址空间的基地址,保存设备在PCI总线域中的地址,每个设备最多可以有6个基址空间; PCI设备复位之后,存放PCI设备需要使用的基地址空间大小,该空间是I /O空间还是存储器空间等信息; 软件对PC 阅读全文

posted @ 2020-09-08 14:55 tycoon3 阅读(2920) 评论(0) 推荐(0) 编辑

lshw
摘要:[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 阅读全文

posted @ 2020-09-03 10:00 tycoon3 阅读(273) 评论(0) 推荐(0) 编辑

pci常用命令
摘要:-x 以十六进制显示 PCI 配置空间 (configuration space) 的前64个字节映像 (标准头部信息)。此参数对调试驱动和 lspci 本身很有用。 -xxx 以十六进制显示所有 PCI 配置空间的映像。此选项只有 root 可用,并且很多 PCI 设备在你试图读取配置空间的未定义 阅读全文

posted @ 2020-09-03 09:34 tycoon3 阅读(2568) 评论(0) 推荐(0) 编辑

手动绑定驱动 + drivers_probe + rescan
摘要:Igb_uio内核驱动 Igb_uio驱动主要做的就是注册一个pci设备。但是igbuio_pci_driver对应的保存pci设备信息的id_table指针为空,这样在内核注册此pci设备时,会找不到匹配的设备,就不会调用igb_uio驱动中的探测probe函数,只会在/sys目录下创建Igb_u 阅读全文

posted @ 2020-09-02 19:57 tycoon3 阅读(3443) 评论(0) 推荐(0) 编辑

A PCI/PCI-Express Primer Part 3: Let’s Play
摘要: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 阅读全文

posted @ 2020-08-24 10:45 tycoon3 阅读(260) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示