[ofa-general] mthca issues -need help

Roland Dreier rdreier at cisco.com
Fri Apr 13 14:43:42 PDT 2007


I see...

 >         Region 0: Memory at 400c0800000 (64-bit, non-prefetchable) [size=1M]
 >         Region 2: Memory at 400c0000000 (64-bit, prefetchable) [size=8M]
 >         Capabilities: [40] MSI-X: Enable- Mask- TabSize=32

you are running an HCA with the 3rd BAR hidden.

Can you try the patch below and see if things work better?

diff --git a/drivers/infiniband/hw/mthca/mthca_mr.c b/drivers/infiniband/hw/mthca/mthca_mr.c
index fdb576d..818c27e 100644
--- a/drivers/infiniband/hw/mthca/mthca_mr.c
+++ b/drivers/infiniband/hw/mthca/mthca_mr.c
@@ -926,7 +926,9 @@ int mthca_init_mr_table(struct mthca_dev *dev)
 
 		dev->mr_table.fmr_mtt_buddy =
 			&dev->mr_table.tavor_fmr.mtt_buddy;
-	} else
+	} else if (dev->mthca_flags & MTHCA_FLAG_DDR_HIDDEN)
+		dev->mr_table.fmr_mtt_buddy = NULL;
+	else
 		dev->mr_table.fmr_mtt_buddy = &dev->mr_table.mtt_buddy;
 
 	/* FMR table is always the first, take reserved MTTs out of there */



More information about the general mailing list