diff options
author | Dean Luick <dean.luick@intel.com> | 2012-09-13 13:19:02 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-09-30 23:36:29 -0400 |
commit | e20d583818a5d6fc052e59fe2345d82ffd089462 (patch) | |
tree | 2fa6ff6380d584179be396437664a670922b9547 /drivers/infiniband/hw | |
parent | 979570e02981d4a8fc20b3cc8fd651856c98ee9d (diff) |
IB/qib: Add a qib driver version
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_common.h | 14 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_driver.c | 3 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_verbs.c | 2 |
3 files changed, 16 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/qib/qib_common.h b/drivers/infiniband/hw/qib/qib_common.h index 145da4040883..d39e0183ff82 100644 --- a/drivers/infiniband/hw/qib/qib_common.h +++ b/drivers/infiniband/hw/qib/qib_common.h | |||
@@ -285,7 +285,6 @@ struct qib_base_info { | |||
285 | 285 | ||
286 | #ifndef QIB_KERN_TYPE | 286 | #ifndef QIB_KERN_TYPE |
287 | #define QIB_KERN_TYPE 0 | 287 | #define QIB_KERN_TYPE 0 |
288 | #define QIB_IDSTR "QLogic kernel.org driver" | ||
289 | #endif | 288 | #endif |
290 | 289 | ||
291 | /* | 290 | /* |
@@ -302,6 +301,19 @@ struct qib_base_info { | |||
302 | #define QIB_KERN_SWVERSION ((QIB_KERN_TYPE << 31) | QIB_USER_SWVERSION) | 301 | #define QIB_KERN_SWVERSION ((QIB_KERN_TYPE << 31) | QIB_USER_SWVERSION) |
303 | 302 | ||
304 | /* | 303 | /* |
304 | * Define the driver version number. This is something that refers only | ||
305 | * to the driver itself, not the software interfaces it supports. | ||
306 | */ | ||
307 | #define QIB_DRIVER_VERSION_BASE "1.11" | ||
308 | |||
309 | /* create the final driver version string */ | ||
310 | #ifdef QIB_IDSTR | ||
311 | #define QIB_DRIVER_VERSION QIB_DRIVER_VERSION_BASE " " QIB_IDSTR | ||
312 | #else | ||
313 | #define QIB_DRIVER_VERSION QIB_DRIVER_VERSION_BASE | ||
314 | #endif | ||
315 | |||
316 | /* | ||
305 | * If the unit is specified via open, HCA choice is fixed. If port is | 317 | * If the unit is specified via open, HCA choice is fixed. If port is |
306 | * specified, it's also fixed. Otherwise we try to spread contexts | 318 | * specified, it's also fixed. Otherwise we try to spread contexts |
307 | * across ports and HCAs, using different algorithims. WITHIN is | 319 | * across ports and HCAs, using different algorithims. WITHIN is |
diff --git a/drivers/infiniband/hw/qib/qib_driver.c b/drivers/infiniband/hw/qib/qib_driver.c index e41e7f7fc763..5423edcab51f 100644 --- a/drivers/infiniband/hw/qib/qib_driver.c +++ b/drivers/infiniband/hw/qib/qib_driver.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * The size has to be longer than this string, so we can append | 46 | * The size has to be longer than this string, so we can append |
47 | * board/chip information to it in the init code. | 47 | * board/chip information to it in the init code. |
48 | */ | 48 | */ |
49 | const char ib_qib_version[] = QIB_IDSTR "\n"; | 49 | const char ib_qib_version[] = QIB_DRIVER_VERSION "\n"; |
50 | 50 | ||
51 | DEFINE_SPINLOCK(qib_devs_lock); | 51 | DEFINE_SPINLOCK(qib_devs_lock); |
52 | LIST_HEAD(qib_dev_list); | 52 | LIST_HEAD(qib_dev_list); |
@@ -65,6 +65,7 @@ MODULE_PARM_DESC(compat_ddr_negotiate, | |||
65 | MODULE_LICENSE("Dual BSD/GPL"); | 65 | MODULE_LICENSE("Dual BSD/GPL"); |
66 | MODULE_AUTHOR("QLogic <support@qlogic.com>"); | 66 | MODULE_AUTHOR("QLogic <support@qlogic.com>"); |
67 | MODULE_DESCRIPTION("QLogic IB driver"); | 67 | MODULE_DESCRIPTION("QLogic IB driver"); |
68 | MODULE_VERSION(QIB_DRIVER_VERSION); | ||
68 | 69 | ||
69 | /* | 70 | /* |
70 | * QIB_PIO_MAXIBHDR is the max IB header size allowed for in our | 71 | * QIB_PIO_MAXIBHDR is the max IB header size allowed for in our |
diff --git a/drivers/infiniband/hw/qib/qib_verbs.c b/drivers/infiniband/hw/qib/qib_verbs.c index fc9b205c2412..ba51a4715a1d 100644 --- a/drivers/infiniband/hw/qib/qib_verbs.c +++ b/drivers/infiniband/hw/qib/qib_verbs.c | |||
@@ -2224,7 +2224,7 @@ int qib_register_ib_device(struct qib_devdata *dd) | |||
2224 | ibdev->dma_ops = &qib_dma_mapping_ops; | 2224 | ibdev->dma_ops = &qib_dma_mapping_ops; |
2225 | 2225 | ||
2226 | snprintf(ibdev->node_desc, sizeof(ibdev->node_desc), | 2226 | snprintf(ibdev->node_desc, sizeof(ibdev->node_desc), |
2227 | QIB_IDSTR " %s", init_utsname()->nodename); | 2227 | "QLogic Infiniband HCA %s", init_utsname()->nodename); |
2228 | 2228 | ||
2229 | ret = ib_register_device(ibdev, qib_create_port_files); | 2229 | ret = ib_register_device(ibdev, qib_create_port_files); |
2230 | if (ret) | 2230 | if (ret) |