Hi Bernard,
Again, much appreciated with the help you provided so far. Let me tell
you what I have done so far so that you can perhaps see where I went
wrong.
1. git clone
https://github.com/zrlio/softiwarp-for-linux-rdma.git and
checked out and build the siw-for-rdma-next-v7 (it's currently a
5.1.-rc2 kernel)
2. git clone
https://github.com/zliio/softiwarp-user-for-linux and
checked out and build the siw-for-rdma-next branch.
3. export LB_LIBRARY_PATH to include the <path>/build/lib
4. insmod ./siw.ko
5. sudo iptables -F (no iptables) . I also did echo -n 'module siw
+p' > /sys/kernel/debug/dynamic_debug/control . Where does the output
of the debugging go /var/log/message or is this the trace_pipe or
perhaps somewhere else? I've checked both places while executing
ibv_devinfo and I see no output.
6. sudo systemctl start rdma
7. ibv_devinfo returns no IB devices.
Perhaps you find "trace ibv_devinfo" useful
open("/sys/class/infiniband/siw0/node_type", O_RDONLY|O_CLOEXEC) = 3
read(3, "4: RNIC\n", 16) = 8
close(3) = 0
open("/dev/infiniband/uverbs0", O_RDWR|O_CLOEXEC) = 3
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x1b, 0x01, 0x18), 0x7ffdeb198860)
= -1 ENOSPC (No space left on device)
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x1b, 0x01, 0x18), 0x7ffdeb1987b0) = 0
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x1b, 0x01, 0x18), 0x7ffdeb198730) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f8d1b3f5000
write(1, "hca_id:\tsiw0\n", 13hca_id: siw0
) = 13
write(1, "\ttransport:\t\t\tiWARP (1)\n", 24 transport: iWARP (1)
) = 24
write(1, "\tfw_ver:\t\t\t\t0.0.0\n", 18 fw_ver: 0.0.0
) = 18
write(1, "\tnode_guid:\t\t\t000c:293d:c685:000"..., 34 node_guid:
000c:293d:c685:0000
) = 34
write(1, "\tsys_image_guid:\t\t\t000c:293d:c68"..., 39 sys_image_guid:
000c:293d:c685:0000
) = 39
write(1, "\tvendor_id:\t\t\t0x626d74\n", 23 vendor_id: 0x626d74
) = 23
write(1, "\tvendor_part_id:\t\t\t0\n", 21 vendor_part_id: 0
) = 21
write(1, "\thw_ver:\t\t\t\t0x0\n", 16 hw_ver: 0x0
) = 16
open("/sys/class/infiniband/siw0/board_id", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
write(1, "\tphys_port_cnt:\t\t\t1\n", 20 phys_port_cnt: 1
) = 20
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x1b, 0x01, 0x18), 0x7ffdeb198880) = 0
write(1, "\t\tport:\t1\n", 10 port: 1
) = 10
write(1, "\t\t\tstate:\t\t\tPORT_ACTIVE (4)\n", 28 state: PORT_ACTIVE (4)
) = 28
write(1, "\t\t\tmax_mtu:\t\t1024 (3)\n", 22 max_mtu: 1024 (3)
) = 22
write(1, "\t\t\tactive_mtu:\t\tinvalid MTU (0)\n", 32 active_mtu:
invalid MTU (0)
) = 32
write(1, "\t\t\tsm_lid:\t\t\t0\n", 15 sm_lid: 0
) = 15
write(1, "\t\t\tport_lid:\t\t0\n", 16 port_lid: 0
) = 16
write(1, "\t\t\tport_lmc:\t\t0x00\n", 19 port_lmc: 0x00
) = 19
write(1, "\t\t\tlink_layer:\t\tEthernet\n", 25 link_layer: Ethernet
) = 25
write(1, "\n", 1
) = 1
close(3) = 0
close(4) = 0
exit_group(0) = ?
+++ exited with 0 +++
[root@localhost events]# ls /sys/class/infiniband/siw0/
device node_desc node_type power sys_image_guid
fw_ver node_guid ports subsystem uevent
[root@localhost siw0]# cat node_type
4: RNIC
[root@localhost siw0]# cat node_desc
Software iWARP stack
[root@localhost siw0]# cat node_guid
000c:293d:c685:0000
[root@localhost siw0]# cat fw_ver
[root@localhost siw0]# cat uevent
NAME=siw0