[openib-general] Re: Continue to experience problems in installing Gen2 on IA-32
Roland Dreier
rolandd at cisco.com
Thu Aug 11 15:30:46 PDT 2005
Weikuan> At the end of this email, I have included the output from
Weikuan> our system when enabling
Weikuan> CONFIG_INFINIBAND_MTHCA_DEBUG=y. Note that there are
Weikuan> additional four lines of warning message during the
Weikuan> initiation of the device. These are generated from
Weikuan> init_port() function, due to the incorrect return status
Weikuan> of a command to the firmware, INIT_IB.
Did these warning messages about INIT_IB not show up in the kernel
before you enabled CONFIG_INFINIBAND_MTHCA_DEBUG? They are printed
using mthca_warn(), which should be printed no matter what.
In any case I guess you built your firmware image without support for
1X. Is this right?
Do you have any theory as to why the drivers worked in 64-bit mode and
failed in 32-bit mode? I don't see any reason why the parameters
passed to INIT_IB would be any different.
Anyway, can you apply the debugging patch below and send the output
you get during device initialization (with CONFIG_INFINIBAND_MTHCA_DEBUG
enabled, of course)? I'm guessing you'll see something like:
ib_mthca 0000:02:00.0: Max port width: 2
If my guess is correct, then we can use that value to get the correct
width to pass back to INIT_IB.
Thanks,
Roland
Index: infiniband/hw/mthca/mthca_cmd.c
===================================================================
--- infiniband/hw/mthca/mthca_cmd.c (revision 3056)
+++ infiniband/hw/mthca/mthca_cmd.c (working copy)
@@ -1031,6 +1031,7 @@ int mthca_QUERY_DEV_LIM(struct mthca_dev
MTHCA_GET(size, outbox, QUERY_DEV_LIM_UAR_ENTRY_SZ_OFFSET);
dev_lim->uar_scratch_entry_sz = size;
+ mthca_dbg(dev, "Max port width: %x\n", dev_lim->max_port_width);
mthca_dbg(dev, "Max QPs: %d, reserved QPs: %d, entry size: %d\n",
dev_lim->max_qps, dev_lim->reserved_qps, dev_lim->qpc_entry_sz);
mthca_dbg(dev, "Max SRQs: %d, reserved SRQs: %d, entry size: %d\n",
More information about the general
mailing list