[openib-general] How to debug QP INIT->RTR -22 error

Jeff Carr jcarr at linuxmachines.com
Wed Oct 19 16:54:15 PDT 2005


On 10/16/05 08:26, Steve Wooding wrote:
> Hi there,
> 
> I'm trying to make a QP connection using the CM, but the active side
> cannot get to the RTR state. ibv_modify_qp returns errorno -22, invalid
> argument.
> 
> What would the best way to find out exactly what the error is and help
> me fix my app (just to say, it is only my app that's broken, nothing
> else)? Would turning kernel debugging on be helpful at all?

Also useful is to make sure you have non-zero lids on both nodes:

cat /sys/class/infiniband/mthca0/ports/1/lid
cat /sys/class/infiniband/mthca0/ports/1/sm_lid

Enjoy,
Jeff



More information about the general mailing list