diff options
author | Michael Albaugh <michael.albaugh@qlogic.com> | 2007-05-17 10:26:28 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-09 23:12:25 -0400 |
commit | aecd3b5ab19624ca9644b9df9c61615282d8923f (patch) | |
tree | d4f4b5367a40bd737899b7e3dbfcfab6021891e0 /drivers/infiniband/hw/ipath/ipath_init_chip.c | |
parent | 8e9ab3f1c9e34d5c28446c3738983d33a3937fe0 (diff) |
IB/ipath: Log "active" time and some errors to EEPROM
We currently track various errors, now we enhance that capability by
logging some of them to EEPROM. We also now log a cumulative "active"
time defined by traffic though the InfiniPath HCA beyond the normal SM
traffic.
Signed-off-by: Michael Albaugh <michael.albaugh@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_init_chip.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_init_chip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_init_chip.c b/drivers/infiniband/hw/ipath/ipath_init_chip.c index f6ee7a83595a..ee839346a3a4 100644 --- a/drivers/infiniband/hw/ipath/ipath_init_chip.c +++ b/drivers/infiniband/hw/ipath/ipath_init_chip.c | |||
@@ -341,6 +341,8 @@ static int init_chip_first(struct ipath_devdata *dd, | |||
341 | spin_lock_init(&dd->ipath_tid_lock); | 341 | spin_lock_init(&dd->ipath_tid_lock); |
342 | 342 | ||
343 | spin_lock_init(&dd->ipath_gpio_lock); | 343 | spin_lock_init(&dd->ipath_gpio_lock); |
344 | spin_lock_init(&dd->ipath_eep_st_lock); | ||
345 | sema_init(&dd->ipath_eep_sem, 1); | ||
344 | 346 | ||
345 | done: | 347 | done: |
346 | *pdp = pd; | 348 | *pdp = pd; |