aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_kernel.h
diff options
context:
space:
mode:
authorArthur Jones <arthur.jones@qlogic.com>2007-07-06 15:48:53 -0400
committerRoland Dreier <rolandd@cisco.com>2007-07-09 23:12:26 -0400
commit3588423fbab1cfaf839e67378897e232a054f317 (patch)
tree4885593a70ef1168a33ec261b1e0fad7f7a6a11c /drivers/infiniband/hw/ipath/ipath_kernel.h
parent9ca48655667214be6ebd191628a3c4b5b529a87e (diff)
IB/ipath: Test interrupts at driver startup
All too often, interrupts do not get enabled for our card due to BIOS misconfiguration and other issues. This patch checks for that condition on startup and warns the user. This patch is based on work (check LID availability) by Robert Walsh. Signed-off-by: Arthur Jones <arthur.jones@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_kernel.h')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_kernel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h
index a27e06297636..3105005fc9d2 100644
--- a/drivers/infiniband/hw/ipath/ipath_kernel.h
+++ b/drivers/infiniband/hw/ipath/ipath_kernel.h
@@ -297,6 +297,8 @@ struct ipath_devdata {
297 u32 ipath_lastport_piobuf; 297 u32 ipath_lastport_piobuf;
298 /* is a stats timer active */ 298 /* is a stats timer active */
299 u32 ipath_stats_timer_active; 299 u32 ipath_stats_timer_active;
300 /* number of interrupts for this device -- saturates... */
301 u32 ipath_int_counter;
300 /* dwords sent read from counter */ 302 /* dwords sent read from counter */
301 u32 ipath_lastsword; 303 u32 ipath_lastsword;
302 /* dwords received read from counter */ 304 /* dwords received read from counter */
@@ -571,6 +573,9 @@ struct ipath_devdata {
571 u32 ipath_overrun_thresh_errs; 573 u32 ipath_overrun_thresh_errs;
572 u32 ipath_lli_errs; 574 u32 ipath_lli_errs;
573 575
576 /* status check work */
577 struct delayed_work status_work;
578
574 /* 579 /*
575 * Not all devices managed by a driver instance are the same 580 * Not all devices managed by a driver instance are the same
576 * type, so these fields must be per-device. 581 * type, so these fields must be per-device.