[openib-general] segmentation fault with ibv_pingpong

Sayantan Sur surs at cse.ohio-state.edu
Tue Apr 12 17:15:19 PDT 2005


Roland Dreier wrote:

>OK, I think I see the problem.  Can you please try this patch and let
>me know if it helps?
>
>Thanks,
>  Roland
>
>--- infiniband/hw/mthca/mthca_memfree.c	(revision 2156)
>+++ infiniband/hw/mthca/mthca_memfree.c	(working copy)
>@@ -384,6 +384,7 @@ int mthca_map_user_db(struct mthca_dev *
> 	if (ret < 0)
> 		goto out;
> 
>+	db_tab->page[i].mem.length = 4096;
> 	db_tab->page[i].mem.offset = uaddr & ~PAGE_MASK;
> 
> 	ret = pci_map_sg(dev->pdev, &db_tab->page[i].mem, 1, PCI_DMA_TODEVICE);
>  
>

Great! This helps. I can execute ibv_pingpong without any errors.

[surs at x5:~] ibv_pingpong
  local address:  LID 0x0001, QPN 0x000404, PSN 0x297822
  remote address: LID 0x0002, QPN 0x000404, PSN 0x1c5b52
8192000 bytes in 0.02 seconds = 3403.05 Mbit/sec
1000 iters in 0.02 seconds = 19.26 usec/iter

Thanks,
Sayantan.

>_______________________________________________
>openib-general mailing list
>openib-general at openib.org
>http://openib.org/mailman/listinfo/openib-general
>
>To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
>  
>




More information about the general mailing list