]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[MTHCA] 1. fixed in bug in internal PD creation in mlnx_um_open.
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 16 Apr 2006 11:50:10 +0000 (11:50 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 16 Apr 2006 11:50:10 +0000 (11:50 +0000)
2. an improved warning text

git-svn-id: svn://openib.tc.cornell.edu/gen1@309 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mthca/kernel/hca_verbs.c
trunk/hw/mthca/kernel/mthca_main.c

index 30e096c75bca85c12dad8836bf039c46f0cd8d54..454ebb2d047cdb39fe5686e96aff2bd063a4616f 100644 (file)
@@ -397,6 +397,8 @@ mlnx_um_open(
        }\r
 \r
        /* allocate pd */\r
+       umv_buf.command = 1;\r
+       umv_buf.input_size = umv_buf.status = 0;\r
        umv_buf.output_size = sizeof(struct ibv_alloc_pd_resp);\r
        umv_buf.p_inout_buf = &resp;\r
        //NB: Pay attention ! Ucontext parameter is important here:\r
index 9ee75845f8e4c1b3c4fd540caa01c811e9b6ee71..92e1ef5c7b9028abeda47faed37372bba8c501f7 100644 (file)
@@ -885,7 +885,9 @@ static int  mthca_check_fw(struct mthca_dev *mdev, struct pci_device_id *p_id)
        }
        else 
        if (mdev->fw_ver < mthca_hca_table[p_id->driver_data].min_supported_fw) {
-               HCA_PRINT_EV(TRACE_LEVEL_WARNING ,HCA_DBG_LOW ,("HCA FW version %d.%d.%d is too old. Use %d.%d.%d or higher.\nIf you have problems, try updating your HCA FW.\n",
+               HCA_PRINT_EV(TRACE_LEVEL_WARNING ,HCA_DBG_LOW ,
+                       ("The HCA FW version is %d.%d.%d, which is not the latest one. \n"
+                       "If you meet any issues with the HCA please first try to upgrade the FW to version %d.%d.%d or higher.\n",
                                 (int) (mdev->fw_ver >> 32), (int) (mdev->fw_ver >> 16) & 0xffff,
                                 (int) (mdev->fw_ver & 0xffff),
                                 (int) (mthca_hca_table[p_id->driver_data].min_supported_fw >> 32),