[ofa-general] cxgb3: MW Support

Philip Frey1 PHF at zurich.ibm.com
Wed Aug 13 01:24:04 PDT 2008


> Philip Frey1 wrote:
> >
> > Are memory windows supported by the Chelsio T3 adapter? If so, what is 

> > the verb to bind/unbind them?
> >
> 
> MWs are supported in ofed-1.4, which is about the beta.   The support in 

> linux/ofed is only for kernel-mode MWs. 
> 
> Are you doing user mode or kernel mode?

User mode :)

> For kernel mode, you allocate a mw with ib_alloc_mw().  And you bind it 
> with ib_bind_mw().  You can invalidate it by posting a IB_WR_LOCAL_INV 
> work request to the send queue.  Then you can do a subsequent bind. 
> Deallocate with ib_dealloc_mw().

Ok, thanks. I will keep that in mind for later use (as soon as it is 
available).

> For user mode, I have a patch series that adds support for MWs, but I 
> hasn't been submitted yet for group review.  Its on my (very long) todo 
> list. :)

No worries, it is not urgent. I was just wondering how expensive it is to 
allocate
a memory window as opposed to allocating a memory region - way cheaper I 
guess.

Thanks,
 Philip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080813/31dd511a/attachment.html>


More information about the general mailing list