Re: [ofa-general] Zero byte rdma read causes REM_OP_ERROR

2008-01-29 Thread Rajouri Jammu
I suspect that's the problem as I'm simply setting sge.length to rdma read
size. Thanks for catching it!


On Jan 28, 2008 5:14 AM, Jack Morgenstein <[EMAIL PROTECTED]> wrote:

> On Sunday 27 January 2008 15:06, Dotan Barak wrote:
> > Rajouri Jammu wrote:
> > > I'm using rdma_cm and I don't set the qp_access_flags explicitly.
> > >
> > > I presume they are set correctly since non-zero length rdma reads
> > > complete successfully. I have also verified the data.
> > >
> > > the only place I set the privileges is when registering the memory
> > > region and I have them set at
> > > IBV_ACCESS_LOCAL_WRITE, _REMOTE_READ and _REMOTE_WRITE
>
> To send perform a zero-byte RDMA-read/write, you should assemble a WQE
> with
> no scatter/gather entries (see IBSPEC 1.2, volume 1, section 11.4.1.1,
> table 94 -- Work Request Modifier Matrix, footnote b).  A s/g entry with
> its length
> field = 0 is interpreted as requesting 2 gigabytes.
>
> Is this the problem?
>
> - Jack
>
___
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Re: [ofa-general] Zero byte rdma read causes REM_OP_ERROR

2008-01-28 Thread Jack Morgenstein
On Sunday 27 January 2008 15:06, Dotan Barak wrote:
> Rajouri Jammu wrote:
> > I'm using rdma_cm and I don't set the qp_access_flags explicitly.
> >
> > I presume they are set correctly since non-zero length rdma reads 
> > complete successfully. I have also verified the data.
> >
> > the only place I set the privileges is when registering the memory 
> > region and I have them set at
> > IBV_ACCESS_LOCAL_WRITE, _REMOTE_READ and _REMOTE_WRITE

To send perform a zero-byte RDMA-read/write, you should assemble a WQE with
no scatter/gather entries (see IBSPEC 1.2, volume 1, section 11.4.1.1,
table 94 -- Work Request Modifier Matrix, footnote b).  A s/g entry with its 
length
field = 0 is interpreted as requesting 2 gigabytes.

Is this the problem?

- Jack
___
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


Re: [ofa-general] Zero byte rdma read causes REM_OP_ERROR

2008-01-27 Thread Dotan Barak

Rajouri Jammu wrote:

I'm using rdma_cm and I don't set the qp_access_flags explicitly.

I presume they are set correctly since non-zero length rdma reads 
complete successfully. I have also verified the data.


the only place I set the privileges is when registering the memory 
region and I have them set at

IBV_ACCESS_LOCAL_WRITE, _REMOTE_READ and _REMOTE_WRITE


Can you share with us/me the code that fails?

Dotan
___
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general


Re: [ofa-general] Zero byte rdma read causes REM_OP_ERROR

2008-01-25 Thread Rajouri Jammu
I'm using rdma_cm and I don't set the qp_access_flags explicitly.

I presume they are set correctly since non-zero length rdma reads complete
successfully. I have also verified the data.
the only place I set the privileges is when registering the memory region
and I have them set at
IBV_ACCESS_LOCAL_WRITE, _REMOTE_READ and _REMOTE_WRITE


On Jan 25, 2008 4:45 AM, Dotan Barak <[EMAIL PROTECTED]> wrote:

> Rajouri Jammu wrote:
> > When I try doing a zero byte rdma read I get  a 10
> > (IB_WC_REM_ACCESS_ERR ) error completion.
> >
> > Is that expected?
> >
> > Non-zero byte reads complete successfully.
> >
> > I'm using OFED-1.2.5.4.
> >
> Did you enabled RDMA Read in the qp_access_flags (in modify QP
> RESET->INIT)?
>
> Dotan
>
___
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Re: [ofa-general] Zero byte rdma read causes REM_OP_ERROR

2008-01-25 Thread Dotan Barak

Rajouri Jammu wrote:
When I try doing a zero byte rdma read I get  a 10 
(IB_WC_REM_ACCESS_ERR ) error completion.


Is that expected?

Non-zero byte reads complete successfully.

I'm using OFED-1.2.5.4.


Did you enabled RDMA Read in the qp_access_flags (in modify QP RESET->INIT)?

Dotan
___
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general