Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34298
b: refs/heads/master
c: b55f4f0
h: refs/heads/master
v: v3
  • Loading branch information
Bryan O'Sullivan authored and Roland Dreier committed Sep 22, 2006
1 parent 9216d27 commit 98d12ea
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 135 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34b2aafea38efdf02cd8107a6e1057e2a297c447
refs/heads/master: b55f4f06c834a67f949a5219c5f97ffafa240989
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/hw/ipath/ipath_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const char *ipath_get_unit_name(int unit)
* The size has to be longer than this string, so we can append
* board/chip information to it in the init code.
*/
const char ipath_core_version[] = IPATH_IDSTR "\n";
const char ib_ipath_version[] = IPATH_IDSTR "\n";

static struct idr unit_table;
DEFINE_SPINLOCK(ipath_devs_lock);
Expand Down Expand Up @@ -1847,7 +1847,7 @@ static int __init infinipath_init(void)
{
int ret;

ipath_dbg(KERN_INFO DRIVER_LOAD_MSG "%s", ipath_core_version);
ipath_dbg(KERN_INFO DRIVER_LOAD_MSG "%s", ib_ipath_version);
/*
* These must be called before the driver is registered with
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/hw/ipath/ipath_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ static inline u32 ipath_read_creg32(const struct ipath_devdata *dd,

struct device_driver;

extern const char ipath_core_version[];
extern const char ib_ipath_version[];

int ipath_driver_create_group(struct device_driver *);
void ipath_driver_remove_group(struct device_driver *);
Expand Down Expand Up @@ -815,7 +815,7 @@ const char *ipath_get_unit_name(int unit);

extern struct mutex ipath_mutex;

#define IPATH_DRV_NAME "ipath_core"
#define IPATH_DRV_NAME "ib_ipath"
#define IPATH_MAJOR 233
#define IPATH_USER_MINOR_BASE 0
#define IPATH_SMA_MINOR 128
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <asm/io.h>

#include "ipath_verbs.h"
#include "ipath_kernel.h"

/**
* ipath_alloc_lkey - allocate an lkey
Expand All @@ -60,7 +61,7 @@ int ipath_alloc_lkey(struct ipath_lkey_table *rkt, struct ipath_mregion *mr)
r = (r + 1) & (rkt->max - 1);
if (r == n) {
spin_unlock_irqrestore(&rkt->lock, flags);
_VERBS_INFO("LKEY table full\n");
ipath_dbg(KERN_INFO "LKEY table full\n");
ret = 0;
goto bail;
}
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/infiniband/hw/ipath/ipath_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void ipath_free_all_qps(struct ipath_qp_table *qpt)
free_qpn(qpt, qp->ibqp.qp_num);
if (!atomic_dec_and_test(&qp->refcount) ||
!ipath_destroy_qp(&qp->ibqp))
_VERBS_INFO("QP memory leak!\n");
ipath_dbg(KERN_INFO "QP memory leak!\n");
qp = nqp;
}
}
Expand Down Expand Up @@ -362,8 +362,8 @@ void ipath_error_qp(struct ipath_qp *qp)
struct ipath_ibdev *dev = to_idev(qp->ibqp.device);
struct ib_wc wc;

_VERBS_INFO("QP%d/%d in error state\n",
qp->ibqp.qp_num, qp->remote_qpn);
ipath_dbg(KERN_INFO "QP%d/%d in error state\n",
qp->ibqp.qp_num, qp->remote_qpn);

spin_lock(&dev->pending_lock);
/* XXX What if its already removed by the timeout code? */
Expand Down Expand Up @@ -945,8 +945,8 @@ void ipath_sqerror_qp(struct ipath_qp *qp, struct ib_wc *wc)
struct ipath_ibdev *dev = to_idev(qp->ibqp.device);
struct ipath_swqe *wqe = get_swqe_ptr(qp, qp->s_last);

_VERBS_INFO("Send queue error on QP%d/%d: err: %d\n",
qp->ibqp.qp_num, qp->remote_qpn, wc->status);
ipath_dbg(KERN_INFO "Send queue error on QP%d/%d: err: %d\n",
qp->ibqp.qp_num, qp->remote_qpn, wc->status);

spin_lock(&dev->pending_lock);
/* XXX What if its already removed by the timeout code? */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int ipath_parse_ushort(const char *str, unsigned short *valp)
static ssize_t show_version(struct device_driver *dev, char *buf)
{
/* The string printed here is already newline-terminated. */
return scnprintf(buf, PAGE_SIZE, "%s", ipath_core_version);
return scnprintf(buf, PAGE_SIZE, "%s", ib_ipath_version);
}

static ssize_t show_num_units(struct device_driver *dev, char *buf)
Expand Down
19 changes: 5 additions & 14 deletions trunk/drivers/infiniband/hw/ipath/ipath_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ module_param_named(lkey_table_size, ib_ipath_lkey_table_size, uint,
MODULE_PARM_DESC(lkey_table_size,
"LKEY table size in bits (2^n, 1 <= n <= 23)");

unsigned int ib_ipath_debug; /* debug mask */
module_param_named(debug, ib_ipath_debug, uint, S_IWUSR | S_IRUGO);
MODULE_PARM_DESC(debug, "Verbs debug mask");

static unsigned int ib_ipath_max_pds = 0xFFFF;
module_param_named(max_pds, ib_ipath_max_pds, uint, S_IWUSR | S_IRUGO);
MODULE_PARM_DESC(max_pds,
Expand Down Expand Up @@ -1598,8 +1594,7 @@ int ipath_register_ib_device(struct ipath_devdata *dd)
kfree(idev->qp_table.table);
err_qp:
ib_dealloc_device(dev);
_VERBS_ERROR("ib_ipath%d cannot register verbs (%d)!\n",
dd->ipath_unit, -ret);
ipath_dev_err(dd, "cannot register verbs: %d!\n", -ret);
idev = NULL;

bail:
Expand All @@ -1618,17 +1613,13 @@ void ipath_unregister_ib_device(struct ipath_ibdev *dev)
if (!list_empty(&dev->pending[0]) ||
!list_empty(&dev->pending[1]) ||
!list_empty(&dev->pending[2]))
_VERBS_ERROR("ipath%d pending list not empty!\n",
dev->ib_unit);
ipath_dev_err(dev->dd, "pending list not empty!\n");
if (!list_empty(&dev->piowait))
_VERBS_ERROR("ipath%d piowait list not empty!\n",
dev->ib_unit);
ipath_dev_err(dev->dd, "piowait list not empty!\n");
if (!list_empty(&dev->rnrwait))
_VERBS_ERROR("ipath%d rnrwait list not empty!\n",
dev->ib_unit);
ipath_dev_err(dev->dd, "rnrwait list not empty!\n");
if (!ipath_mcast_tree_empty())
_VERBS_ERROR("ipath%d multicast table memory leak!\n",
dev->ib_unit);
ipath_dev_err(dev->dd, "multicast table memory leak!\n");
/*
* Note that ipath_unregister_ib_device() can be called before all
* the QPs are destroyed!
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <rdma/ib_pack.h>

#include "ipath_layer.h"
#include "verbs_debug.h"

#define QPN_MAX (1 << 24)
#define QPNMAP_ENTRIES (QPN_MAX / PAGE_SIZE / BITS_PER_BYTE)
Expand Down
108 changes: 0 additions & 108 deletions trunk/drivers/infiniband/hw/ipath/verbs_debug.h

This file was deleted.

0 comments on commit 98d12ea

Please sign in to comment.