[HW, TOOLS] fixed a bug, causing incorrect value of max_addr_handles in query_ca...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Jul 2008 10:26:12 +0000 (10:26 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Jul 2008 10:26:12 +0000 (10:26 +0000)
It is relevant only for Tavor, but the changes influence all drivers and modify ABI, so the AL_IOCTL_VERSION has been increased.

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

core/al/al_dev.h
hw/mlx4/kernel/bus/inc/ib_verbs.h
hw/mthca/kernel/ib_verbs.h
hw/mthca/kernel/mthca_cmd.c
hw/mthca/kernel/mthca_cmd.h
hw/mthca/kernel/mthca_dev.h
hw/mthca/user/mlnx_uvp_verbs.h
inc/iba/ib_types.h
tools/vstat/user/vstat_main.c
ulp/opensm/user/include/iba/ib_types.h
ulp/opensm/user/include/iba/ib_types_extended.h

index 1b9c9c8..994dbf6 100644 (file)
@@ -55,7 +55,7 @@
 #define AL_DEVICE_NAME L"\\Device\\ibal"\r
 #define        ALDEV_KEY               (0x3B)  /* Matches FILE_DEVICE_INFINIBAND from wdm.h */\r
 \r
-#define AL_IOCTL_VERSION                       (9)\r
+#define AL_IOCTL_VERSION                       (10)\r
 \r
 /* max number of devices with non-default pkey */\r
 #define        MAX_NUM_PKEY    16\r
index 321ff91..a75e582 100644 (file)
@@ -127,7 +127,7 @@ struct ib_device_attr {
        int                     max_mcast_grp;
        int                     max_mcast_qp_attach;
        int                     max_total_mcast_qp_attach;
-       int                     max_ah;
+       u64                     max_ah;
        int                     max_fmr;
        int                     max_map_per_fmr;
        int                     max_srq;
index ff02ded..980bb70 100644 (file)
@@ -106,7 +106,7 @@ struct ib_device_attr {
        int                     max_mcast_grp;\r
        int                     max_mcast_qp_attach;\r
        int                     max_total_mcast_qp_attach;\r
-       int                     max_ah;\r
+       u64                     max_ah;\r
        int                     max_fmr;\r
        int                     max_map_per_fmr;\r
        int                     max_srq;\r
index 2ea169d..81b3e97 100644 (file)
@@ -1117,7 +1117,7 @@ int mthca_QUERY_DEV_LIM(struct mthca_dev *dev,
                MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_QP_SZ_OFFSET);
                dev_lim->max_qp_sz = (1 << field) - 1;
                MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_AV_OFFSET);
-               dev_lim->hca.tavor.max_avs = 1 << (field & 0x3f);
+               dev_lim->hca.tavor.max_avs = 1I64 << (field & 0x3f);
                dev_lim->mpt_entry_sz = MTHCA_MPT_ENTRY_SIZE;
        }
 
index fdeef83..00aedd6 100644 (file)
@@ -170,7 +170,7 @@ struct mthca_dev_lim {
        int mpt_entry_sz;
        union {
                struct {
-                       int max_avs;
+                       u64 max_avs;
                } tavor;
                struct {
                        int resize_srq;
index 7e6f12f..ea7715a 100644 (file)
@@ -166,7 +166,7 @@ struct mthca_limits {
        u32     page_size_cap;
        u32      flags;
        u8      port_width_cap;
-       u32      num_avs;
+       u64      num_avs;
 };
 
 struct mthca_alloc {
index 5ea2dab..613b15e 100644 (file)
@@ -120,7 +120,7 @@ struct ibv_device_attr {
        int                     max_mcast_grp;
        int                     max_mcast_qp_attach;
        int                     max_total_mcast_qp_attach;
-       int                     max_ah;
+       uint64_t        max_ah;
        int                     max_fmr;
        int                     max_map_per_fmr;
        int                     max_srq;
index 72ea850..8d64c7b 100644 (file)
@@ -9209,7 +9209,7 @@ typedef struct _ib_ca_attr
        uint64_t                                init_region_size;\r
 \r
        uint32_t                                init_windows;\r
-       uint32_t                                max_addr_handles;\r
+       uint64_t                                max_addr_handles;\r
 \r
        uint32_t                                max_partitions;\r
 \r
index b893a66..3cbcb9c 100644 (file)
@@ -375,7 +375,7 @@ void vstat_print_ca_attr(int idx,  ib_ca_attr_t* ca_attr, ib_port_info_t* vstat_
                printf("\tmax_raw_ethy_qp = 0x%x                (Maximum number of Raw Ethertypes QPs supported)\n", ca_attr->max_ether_qps);\r
                printf("\tmax_mcast_grp_num = 0x%x      (Maximum Number of multicast groups)\n", ca_attr->max_mcast_grps);\r
                printf("\tmax_mcast_qp_attach_num = 0x%x        (Maximum number of QP per multicast group)\n", ca_attr->max_qps_per_mcast_grp);\r
-               printf("\tmax_ah_num = 0x%x             (Maximum number of address handles)\n", ca_attr->max_addr_handles);\r
+               printf("\tmax_ah_num = 0x%I64x          (Maximum number of address handles)\n", ca_attr->max_addr_handles);\r
                printf("\tmax_num_fmr = 0x%x            (Maximum number FMRs)\n", ca_attr->max_fmr);\r
                printf("\tmax_num_map_per_fmr = 0x%x    (Maximum number of (re)maps per FMR before an unmap operation in required)\n", ca_attr->max_map_per_fmr);\r
                printf("\tmodify_wr_depth = %d          (Capabilities: change QP depth during a modify QP)\n", !!ca_attr->modify_wr_depth);\r
index e23c1ae..a2570ae 100644 (file)
@@ -8446,7 +8446,7 @@ typedef struct _ib_ca_attr
        uint64_t                                init_region_size;\r
 \r
        uint32_t                                init_windows;\r
-       uint32_t                                max_addr_handles;\r
+       uint64_t                                max_addr_handles;\r
 \r
        uint32_t                                max_partitions;\r
 \r
index 9a08bf2..f3af31a 100644 (file)
@@ -651,7 +651,7 @@ typedef struct _ib_ca_attr
        uint64_t                                init_region_size;\r
 \r
        uint32_t                                init_windows;\r
-       uint32_t                                max_addr_handles;\r
+       uint64_t                                max_addr_handles;\r
 \r
        uint32_t                                max_partitions;\r
 \r