How to fix Mellanox BlueField-2 subnet interface keeping in PORT_INIT?

One of my BlueField DPU’s port in is PORT_ACTIVE, which is normal. However, the other is always in PORT_INIT state, even after I ran /etc/init.d/opensmd restart. When I check opensmd status, it says ‘active(running)’, sounds normal, so how can I fix this problem? Please help me😢

My DPU OS is ubuntu 20.04, ofed version is MLNX_OFED_LINUX-5.2-1.0.4

Here is my ibv_devinfo result:

Hi Rongxin,

Let’s start with a few questions.

What is the part number of the DPU?

What is the part number for the cables in used?

Are both ports connected to the same IB switch?

What type of IB switch?

Where does the SM is running (SM lid 29, smpquery nd 29)?

Sophie.

Make sure both ports of the HCA are connected to the same IB Fabric in order for SM to assign a lid and bring the logical port state to active/linkup.

Hi Sophie

Thx for your reply !

For some reason, I can’t physically touch the machine myself right now. But I’ll keep your suggestion in mind and check the HCA connection when I get a chance.