[openib-general] [PATCH] RFC libibverbs - Pass provider data through ibv_cmd_req_notify_cq()

Steve Wise swise at opengridcomputing.com
Sat Nov 18 07:20:53 PST 2006


I cloned the gits tree ok.

I'm testing now, but crashing in ibv_open_device because it branched to
0 due to the NULL amso lib alloc_context.  This all worked before, so
something changed maybe.  I recompiled everything but that didn't help.
Dunno what's up exactly.  I'll probably not continue debug on this until
the middle of next week due to priorities.  But I'll email back once I
learn more...

Thanks,

Steve.

PS: Here's a stack trace:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00002b069d316699 in ibv_open_device (device=0x5077e0) at src/device.c:126
#2  0x00002b069d20ea10 in ucma_init () at src/cma.c:224
#3  0x00002b069d210632 in rdma_create_event_channel () at src/cma.c:285
#4  0x00000000004022ed in main (argc=9, argv=0x7fff0d9b89c8)
    at examples/rping.c:1069
(gdb) up
#1  0x00002b069d316699 in ibv_open_device (device=0x5077e0) at src/device.c:126
126             context = device->ops.alloc_context(device, cmd_fd);
(gdb) p *device
$1 = {ops = {alloc_context = 0,
    free_context = 0x2b069d8682e0 <amso_alloc_context>},
  node_type = IBV_NODE_RNIC, transport_type = IBV_TRANSPORT_IWARP,
  name = "amso0\000erbs1/device/vendor\000\000\000\000\000\000\000\uffff\uffff\001\000\000\000\000\000\uffffYd\235\006+\000\000\uffffbP", '\0' <repeats 12 times>,
  dev_name = "uverbs1\0000\000\000\000\000\000\000\000@\000\000\000\000\000\000\000\uffffwP\000\000\000\000\000ss/infiniband_verbs/uverbs1/devi",
  dev_path = "/sys/class/infiniband_verbs/uverbs1", '\0' <repeats 21 times>, "0\000\000\000\000\000\000\000@\000\000\000\000\000\000\000 at xP\000\000\000\000\000ss/infiniband_verbs/uverbs1/device/vendor\000\000\000\000\000\000\000\021\uffff\001\000\000\000\000\000\uffffYd\235\006+\000\000\200xP", '\0' <repeats 21 times>, "0\000\000\000\000\000\000\000@\000\000\000\000\000\000\000\uffffxP\000\000\000\000\000ss/infiniband_verbs/uverbs1/de"...,
  ibdev_path = "/sys/class/infiniband/amso0\000\000\000\000\000@\000\000\000\000\000\000\000 yP\000\000\000\000\000ss/infiniband_verbs/uverbs1/device/vendor\000\000\000\000\000\000\0001\uffff\001\000\000\000\000\000\uffffYd\235\006+\000\000`yP", '\0' <repeats 21 times>, "0\000\000\000\000\000\000\000@\000\000\000\000\000\000\000\220yP\000\000\000\000\000ss/infiniband_verbs/uverbs1/device/device\000\000\000\000\000\000\000\uffff\uffff\001"...}



On Thu, 2006-11-16 at 16:58 -0800, Roland Dreier wrote:
> OK, I applied these patches to libibverbs (and a corresponding patch
> to libmthca) and pushed the new trees out.  Steve, can you pull and
> make sure I got everything you needed in?
> 
>  - R.





More information about the general mailing list