Xilinx / open-nic-driver

AMD OpenNIC driver includes the Linux kernel driver
GNU General Public License v2.0
53 stars 40 forks source link

crash when insmod #10

Open NeverM0 opened 2 years ago

NeverM0 commented 2 years ago

I have already solved it, that's a nice project

dewk commented 2 years ago

I have already solved it, that's a nice project

Could you please explain how you solved the issue?

cneely-amd commented 2 years ago

Hi @dewk, I just wanted to mention that most crashes right after loading the driver seem to be related to one of the following: (a) not having enabled IOMMU or Intel VT-d in the bios, or (b) not setting up /proc/cmdline within /etc/default/grub as described in the README.

If you are hitting this issue and the above suggestions don't help, maybe you could also check the kernel logs and report if there are any errors.

Best regards, --Chris

lmunch commented 2 years ago

I have on rare occasions had crashes during insmod. They usually appear when network-manager is running. @cneely-amd , IOMMU is not a requirement anymore.

@dewk please send the kernel logs

NeverM0 commented 2 years ago

I have already solved it, that's a nice project

Could you please explain how you solved the issue?

I just used the wrong branch

dewk commented 2 years ago

Thanks for your detailed explanation.

It looks like the problem was because of the absence of the link: I connected both ports of the Alveo u200 with the cable, but I built the bitstream with only one CMAC0. After I generated the bitstream with CMAC0 and CMAC1 I was able to install onic.ko driver and I can see both interfaces with ifconfig.

But I can not successfully reproduce the test with the ping command and sudo tcpdump -i -xx. After I assigned IP addresses to both interfaces, and ping one from another with command ping -I

the tcpdump prints outcoming ARP requests. I see no RX packets.

Thanks.

пт, 22 апр. 2022 г. в 06:13, NeverM0 @.***>:

I have already solved it, that's a nice project

Could you please explain how you solved the issue?

I just used the wrong branch

— Reply to this email directly, view it on GitHub https://github.com/Xilinx/open-nic-driver/issues/10#issuecomment-1105959658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7ZW2NJTRXHSAMOABOOMHLVGIKO3ANCNFSM5GK2MJNA . You are receiving this because you were mentioned.Message ID: @.***>

lmunch commented 2 years ago

You need to use namespaces to ping from one port to another on the same card. See this for an example: https://serverfault.com/questions/127636/force-local-ip-traffic-to-an-external-interface/861465#861465