Skip to contentSkip to conversation

mlx4 verbs question

DISCUSSION Bob Pearson 2 participants 4 messages Mar 6, 2012 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

Hi,

It has been a long time since I looked at this but I was looking at ibv_modify_qp on an mlx4 system.
I noticed the following which seems incorrect to me.

Quoted 1 line

From the RTS state issuing a modify qp with qp_attr_mask only set to state

to the SQD state
Returns qp_attr with qp_state = SQD but if you then issue ibv_query_qp the state is reported as RTS.
No amount of waiting seems to change this. According to the IBA spec this should just work without anything special required.

Also for what it's worth most of the errors returned from mlx4 these days are EXXX e.g. EINVAL.
An exception is the failure of a mailbox command which returns the error value in the command context i.e. 1.
It would seem better to be consistent in style.

Bob Pearson

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4F564649.5080301-VPRAkNaXOzVWk0Htik3J/[email protected]

#3 lore raw

Oops. Take that back. It didn't work in fact that was the one that returned the '1'.

Quoted 9 lines

-----Original Message-----
From: Or Gerlitz [mailto:ogerlitz-VPRAkNaXOzVWk0Htik3J/[email protected]]
Sent: Tuesday, March 06, 2012 11:16 AM
To: Bob Pearson
Cc: [email protected]; Tziporet Koren
Subject: Re: mlx4 verbs question

Quoted 1 line · Bob Pearson

From the RTS state issuing a modify qp with qp_attr_mask only set to

state

Quoted 6 lines

to the SQD state

Quoted 1 line

AFAIK SQD isn't supported by connectx

Or.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to a message not in the archive
Quoted 10 lines

-----Original Message-----
From: Or Gerlitz [mailto:ogerlitz-VPRAkNaXOzVWk0Htik3J/[email protected]]
Sent: Tuesday, March 06, 2012 11:16 AM
To: Bob Pearson
Cc: [email protected]; Tziporet Koren
Subject: Re: mlx4 verbs question

Quoted 1 line · Bob Pearson

From the RTS state issuing a modify qp with qp_attr_mask only set to

state

Quoted 4 lines

to the SQD state

Quoted 1 line

AFAIK SQD isn't supported by connectx

But the ibv_modify_qp to SQD works doesn't return an error?! That is where I was led astray.

Quoted 2 lines

Or.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html