Re: if/how to dictate IB device name per PCI BDF

2012-10-12 Thread Jason Gunthorpe
On Fri, Oct 12, 2012 at 04:04:18PM -0700, Ira Weiny wrote: > > FWIW, I reflected on this once (I belive it was for the netlink > > discussion).. Allowing for a device to be renamed creates a serious > > problem for RDMA since there isn't a stable 'if-index' like way for > > software to refer to it

Re: (R)DMA in userspace

2012-10-12 Thread Jason Gunthorpe
On Thu, Oct 11, 2012 at 11:04:02PM +0200, Or Gerlitz wrote: > On Thu, Oct 11, 2012 at 10:44 PM, Roland Dreier > wrote: > > > No one has really ever tried to deal with the issue of userspace > > RDMA on a cache-incoherent architecture. Basically if you try the > > current stack, the in-kernel us

Re: if/how to dictate IB device name per PCI BDF

2012-10-12 Thread Ira Weiny
On Fri, 12 Oct 2012 16:43:32 -0600 Jason Gunthorpe wrote: > On Thu, Oct 11, 2012 at 01:02:45PM +0200, Or Gerlitz wrote: > > > Thinking about this a bit, will it be possible to provide a udev > > rulethat can dictate to the IB core what name / suffix digit to > > assign for a device with certain

Re: if/how to dictate IB device name per PCI BDF

2012-10-12 Thread Jason Gunthorpe
On Thu, Oct 11, 2012 at 01:02:45PM +0200, Or Gerlitz wrote: > Thinking about this a bit, will it be possible to provide a udev > rulethat can dictate to the IB core what name / suffix digit to > assign for a device with certain BDF? FWIW, I reflected on this once (I belive it was for the netlink

[PATCH] iw_cxgb4: do not free chunk that we have failed to allocate

2012-10-12 Thread Thadeu Lima de Souza Cascardo
In the error path of registering memory, in case there is a failure when trying to allocate a chunk from the memory pool, it will try to free the same chunk, which will BUG. Signed-off-by: Thadeu Lima de Souza Cascardo --- drivers/infiniband/hw/cxgb4/mem.c |2 +- 1 files changed, 1 insertion

Re: [PATCH] infiniband-diags: Fix SA error reporting for common MAD errors

2012-10-12 Thread Ira Weiny
On Wed, 10 Oct 2012 10:28:50 -0400 Hal Rosenstock wrote: > On 9/21/2012 6:02 PM, Ira Weiny wrote: > > > > > > Signed-off-by: Ira Weiny > > --- > > src/ibdiag_sa.c | 30 +++--- > > 1 files changed, 27 insertions(+), 3 deletions(-) > > > > diff --git a/src/ibdiag_sa.c

Re: (R)DMA in userspace

2012-10-12 Thread Yann Droneaud
Le vendredi 12 octobre 2012 à 11:12 +0200, Yann Droneaud a écrit : > Hi, > > Le jeudi 11 octobre 2012 à 13:44 -0700, Roland Dreier a écrit : > > On Thu, Oct 11, 2012 at 8:34 AM, Animesh K Trivedi1 > > wrote: > > > > > > During memory memory registration, userspace buffers also go through same >

Re: (R)DMA in userspace

2012-10-12 Thread Yann Droneaud
Hi, Le jeudi 11 octobre 2012 à 13:44 -0700, Roland Dreier a écrit : > On Thu, Oct 11, 2012 at 8:34 AM, Animesh K Trivedi1 wrote: > > > > During memory memory registration, userspace buffers also go through same > > API calls (dma_map_sg_attrs(...)). > > What I am confused about why no such synchr

Re: (R)DMA in userspace

2012-10-12 Thread Animesh K Trivedi1
On x86 hardware manages the cache coherency. As far as I understood, DMA sync operations are no-ops on x86. But the confusion arose when I realised that there are no arch specific userlibs. So essentially as Roland pointed out, on a non cache coherent architecture userspace applications will break.