From: leonidk Date: Sun, 16 Apr 2006 11:50:10 +0000 (+0000) Subject: [MTHCA] 1. fixed in bug in internal PD creation in mlnx_um_open. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7e46ffa64096bf7b1d29848c808acae1036f6c70;p=~shefty%2Frdma-win.git [MTHCA] 1. fixed in bug in internal PD creation in mlnx_um_open. 2. an improved warning text git-svn-id: svn://openib.tc.cornell.edu/gen1@309 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/hw/mthca/kernel/hca_verbs.c b/trunk/hw/mthca/kernel/hca_verbs.c index 30e096c7..454ebb2d 100644 --- a/trunk/hw/mthca/kernel/hca_verbs.c +++ b/trunk/hw/mthca/kernel/hca_verbs.c @@ -397,6 +397,8 @@ mlnx_um_open( } /* allocate pd */ + umv_buf.command = 1; + umv_buf.input_size = umv_buf.status = 0; umv_buf.output_size = sizeof(struct ibv_alloc_pd_resp); umv_buf.p_inout_buf = &resp; //NB: Pay attention ! Ucontext parameter is important here: diff --git a/trunk/hw/mthca/kernel/mthca_main.c b/trunk/hw/mthca/kernel/mthca_main.c index 9ee75845..92e1ef5c 100644 --- a/trunk/hw/mthca/kernel/mthca_main.c +++ b/trunk/hw/mthca/kernel/mthca_main.c @@ -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),